<!--
	document.WM = new Object();
	document.WM.menu = new Object();
	document.WM.menu.dropdown = new Array();

	function WM_initializeToolbar()
		{
    		var i;
    		if (document.all)
    			{
			for(i = 0; i < document.all('container').all.length; i++)
				{
	    			if ((document.all('container').all[i].className == 'header') || (document.all('container').all[i].className == 'links'))
	    				{
							document.WM.menu.dropdown[document.WM.menu.dropdown.length] = document.all('container').all[i];
	    				}
				}
    	} 
    		else if (document.getElementsByTagName && document.getElementById)
    			{    			
					var contained = document.getElementById('container').getElementsByTagName('DIV');
					for(i = 0; i < contained.length; i++)
						{
							if ((contained[i].getAttribute('class') == 'header') || (contained[i].getAttribute('class') == 'links'))
								{
									document.WM.menu.dropdown[document.WM.menu.dropdown.length] = contained[i];
	    						}
						}
    			}
		}

	function WM_collapse(item)
		{
			if(document.WM.menu.dropdown.length)
				{
					if (document.WM.menu.dropdown[item + 1].style.display == 'none')
						{
							document.WM.menu.dropdown[item + 1].style.display = '';
							document.images[document.WM.menu.dropdown[item].id + 'Img'].src = '../images/minus.gif';
						} 
					else 
						{
							document.WM.menu.dropdown[item + 1].style.display = 'none';
							document.images[document.WM.menu.dropdown[item].id + 'Img'].src = '../images/plus.gif';
						}
    			}
		}
		
//Pop Up Script 		

function popUp(url,wheight,wwidth) {
var openString
openString = "'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + wwidth + ",height=" + wheight + "'"
sealWin=window.open(url,"",openString);
}

//Disable Form Script

function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}
setTimeout('alert("Your request has been submitted.  Please be patient as processing could take a few seconds.")', 2000);
return true;
}
else {
alert("The form has been submitted.  But, since you're not using IE 4+ or NS 6, the submit button was not disabled on form submission.");
return false;
   }
}

//Calculator Script

	function reCalc()
		{
			var int1 = Math.abs(document.form1.b2.value)
			var int2 = Math.abs(document.form1.b3.value)
			var int3 = Math.abs(document.form1.b4.value)
			var int4 = Math.abs(document.form1.b5.value)
			var int5 = Math.abs(document.form1.b6.value)
			var int6 = Math.abs(document.form1.b7.value)
			var total = int1 + int2 + int3 + int4 + int5 + int6
			document.form1.btotal.value = total
		}

//MaxLength AutoTab Script		

var isNN = (navigator.appName.indexOf("Netscape")!=-1);
function autoTab(input,len, e) {
var keyCode = (isNN) ? e.which : e.keyCode; 
var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
if(input.value.length >= len && !containsElement(filter,keyCode)) {
input.value = input.value.slice(0, len);
input.form[(getIndex(input)+1) % input.form.length].focus();
}
function containsElement(arr, ele) {
var found = false, index = 0;
while(!found && index < arr.length)
if(arr[index] == ele)
found = true;
else
index++;
return found;
}

//First Form Field Script

function getIndex(input) {
var index = -1, i = 0, found = false;
while (i < input.form.length && index == -1)
if (input.form[i] == input)index = i;
else i++;
return index;
}
return true;
}		

//Jump Menu Script

function jumpMenu(s)	
	{
		var d = s.options[s.selectedIndex].value;
   	  	window.location.href = d;
      	s.selectedIndex=0;
	}	

// End the hiding -->

