
function clearTextBox(elem, val) 
{
	if (elem.value == val)
		elem.value = "";
}

function fillTextBox(elem, val) 
{
	if (elem.value == "")
		elem.value = val;
}


// Mac + PC Hover state support

<!--//--><![CDATA[//><!--
browser_type = navigator.appName;
var agent = navigator.userAgent;
var platform = navigator.platform;
sfHover = function() {
	// Grab all the dropdown select items in the page
	if ((document.getElementById("bodyBlock")) && (document.getElementById("bodyBlock").getElementsByTagName("select")))
		var dropdown = document.getElementById("bodyBlock").getElementsByTagName("select");
	else var dropdown = false;
	
	if (browser_type == "Microsoft Internet Explorer") {		
		var sfEls = document.getElementById("nav").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				//hide all dropdowns upon rollover
				if (dropdown) {
					for (i = 0; i < dropdown.length; i++){
						dropdown[i].style.visibility = "hidden";
					}
				}
				this.className = "sfhover";
				if ((platform == "Win32") && (this.childNodes[2]))
					this.style.marginBottom = "-3px";  //fixes IE "drop" bug
			}
			sfEls[i].onmouseout=function() {
				//display all dropdowns upon rollout
				if (dropdown) {
					for (i = 0; i < dropdown.length; i++){
						dropdown[i].style.visibility = "visible";
					}
				}
				this.className = "";
				this.style.marginBottom = "0";  //returns to normal state
			}
		}
		if ((platform == "Win32") && (document.getElementById("bodyBlock"))) {
			var leftHeight = document.getElementById("left").offsetHeight;
			var bodyHeight = document.getElementById("bodyBlock").offsetHeight;
			if (bodyHeight > leftHeight)
				document.getElementById("left").style.height = bodyHeight;
		}
	}	
}
//--><!]]>