
function onLoaded(field) {
	if (document.getElementById("passwdinput").value == "") {
		document.getElementById("passwdinput").style.display = "none";
	}
}

function useridBlurHandler(field) {
	if(field.value == "") {
		field.value = field.defaultValue;
	}
}

function useridFocusHandler(field) {
	if(field.value == field.defaultValue) {
		field.value = "";
	}
}

function passwdBlurHandler(field) {
	if (document.getElementById("passwdinput").value == "") {
		document.getElementById("dummyinput").style.display = "block";
		document.getElementById("passwdinput").style.display = "none";
	}
}

function passwdFocusHandler(field) {
	document.getElementById("dummyinput").style.display = "none";
	document.getElementById("passwdinput").style.display = "block";
	document.getElementById("passwdinput").focus();
}

function dummyFocusHandler(field) {
	document.getElementById("dummyinput").style.display = "none";
	document.getElementById("passwdinput").style.display = "block";
	document.getElementById("passwdinput").focus();
}

function turnSticky() {
	document.getElementById("stickycheckbox").checked = !document.getElementById("stickycheckbox").checked;
}

