
// ========================================================================
//  DROPDOWN MENU
// ========================================================================

	sfHover = function() {
		var sfEls = document.getElementById("menu").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover);
	
// -----------------------------------------------------------------------

	function clickClear(thisfield, defaulttext) {
	    //alert("test 2")

		if (thisfield.value == defaulttext || thisfield.value == "***********") {
			thisfield.value = "";
			if (defaulttext == "Password" || defaulttext == "***********") {
				thisfield.className = "displaynone";
				//alert(document.getElementById("ctl00_PasswordBox").ClassName)
				document.getElementById("ctl00_PasswordBox").ClassName = "formfield";
				document.getElementById("ctl00_PasswordBox").style.display = "block";
				thisfield.style.display = "none";
				
				document.getElementById("ctl00_PasswordBox").focus();
			}
		}
	   }
	
	function clickRecall(thisfield, defaulttext) {
		//alert("test 1")
		if (thisfield.value == "") {
			thisfield.value = defaulttext;
			//if (defaulttext == "Password"){
//				thisfield.className = "displaynone";
//				//alert(document.getElementById("ctl00_PasswordBox").ClassName)
//				document.getElementById("ctl00_PasswordBoxShown").ClassName = "formfield";
//				document.getElementById("ctl00_PasswordBoxShown").style.display = "block";
//				thisfield.style.display = "none";
//				document.getElementById("ctl00_PasswordBoxShown").focus();
//			}
			
		}
	}
	
	function clickClear2(thisfield, defaulttext, otherfield) {
		
		if (thisfield.value == defaulttext) {
		
			thisfield.value = "";
			thisfield.style.display = "none";
			alert(document.getElementById('ctl00$PasswordBox').value)
			document.getElementById('ctl00$PasswordBox').style.display = "block";
			alert("clear")
		}
	   }
	
	function clickRecall2(thisfield, defaulttext, otherfield) {
	    //alert("recall")
		if (thisfield.value == "") {
			thisfield.value = defaulttext;
			thisfield.visible = false;
			document.getElementById('ctl00$PasswordBox').visible = true;
		}
	}
