// JavaScript Document

// Login Form Clear Field
// Usage:  onfocus="clearOnFocus(this);" - Add the a text field

function clearOnFocus( TheField ) { // clear the field the first time only
	if (TheField.value == TheField.defaultValue) {
	   TheField.value = "";
	}
}

function clearOnFocusPassword( TheField ) { // Clear and change into password field (needs div box for IE)
	if (TheField.type == "text") {
		document.getElementById("passwordbox").innerHTML = "<input id=\"login_password\" type=\"password\" name=\"password\" tabindex=\"2\" />";
		var refocusfield = document.getElementById("login_password");
	    refocusfield.value = "";
	    refocusfield.focus();
	}
}