//var userName = 'username'; 
var blankPassword = '------';
function onUserNameFocus()								
{				
	var ctrl = document.ToolbarLogonForm.UserCode; 
	if(ctrl.select && ctrl.value == userName)
	{
		ctrl.value = '';
	}
}
function onUserNameBlur()
{
	var ctrl = document.ToolbarLogonForm.UserCode; 
	if(ctrl.select && ctrl.value == '')
	{
		ctrl.value = userName;
	}
}
function onPasswordFocus()
{
	var ctrl = document.ToolbarLogonForm.Password;
	if(ctrl.select && ctrl.value == blankPassword)
	{
		ctrl.value = '';
	}
}
function onPasswordBlur()
{
	var ctrl = document.ToolbarLogonForm.Password;
	if(ctrl.select && ctrl.value == '')
	{
		ctrl.value = blankPassword;
	}
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

function gd(id){
	var x=document.getElementById(id);
	return x;
}
function numeric(a, b){return a - b}
function is_all_ws( nod )
{
  return !(/[^\t\n\r ]/.test(nod.data));
}
function is_ignorable( nod )
{
  return ( nod.nodeType == 8) || 
         ( (nod.nodeType == 3) && is_all_ws(nod) );
}
function node_before( sib )
{
  while ((sib = sib.previousSibling)) {
    if (!is_ignorable(sib)) return sib;
  }
  return null;
}
function node_after( sib )
{
  while ((sib = sib.nextSibling)) {
    if (!is_ignorable(sib)) return sib;
  }
  return null;
}
function helpWin(url){

 return newPopUp(url,'helpWin','scrollbars=yes,width=815,height=500');
}
function newPopUp(url,windowName,features){

var newWin = window.open(url,windowName,features);
newWin.focus();
return false;
}
<!--Menu -->
var cSel = null;
function SetUpMenu(x) {
var allLinks = gd('navMenu').getElementsByTagName('a');
for (i=0;i<allLinks.length;i++){if (allLinks[i].className=='closed'){initNode(allLinks[i])}}
if(x!=null){setDefault(x)}
}
function setDefault(x){
if(gd(x)){
var xnode=gd(x);
xnode.style.fontWeight='bold';
xnode.style.textDecoration='underline';
var parentMenu = node_before(xnode.parentNode.parentNode);
cSel=parentMenu;
}}

function initNode(x){
var actuator = x;
var childMenu = node_after(x);
actuator.onclick=function(){toggleMenu(this);return false}}
function toggleMenu(x){
var newS = null;
var sNode = x;
if (sNode.className=='closed'){newS=sNode}
else if(sNode.className=='open'){newS=node_before(sNode.parentNode.parentNode)}
if(cSel!= null){closeFrom(cSel)}
if(cSel!=newS){openTo(newS);cSel=newS;}
}
function closeFrom(x){
if(x!=null){
x.className='closed';
var cMenu = node_after(x);
cMenu.style.display='none';
if(x.parentNode.parentNode.nodeName=='UL' && x.parentNode.parentNode.id!='navMenu'){
var nextUp = node_before(x.parentNode.parentNode);
closeFrom(nextUp)}}
}
function openTo(x){
if(x!=null){
x.className='open';
var cMenu = node_after(x);
cMenu.style.display='block';
if(x.parentNode.parentNode.nodeName=='UL' && x.parentNode.parentNode.id!='navMenu'){
var nextUp = node_before(x.parentNode.parentNode);
openTo(nextUp)}
}
}