function initPage(){
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++){
		if (inputs[i].type == "text" && inputs[i].name == "password"){
			inputs[i].onfocus = function (){ if (this.value == "Password") this.value = ""; }
			inputs[i].onblur = function (){ if (this.value == "" && this.name == "password") this.value = "Password"; }
		}
		if (inputs[i].type == "text" && inputs[i].name == "username"){
			inputs[i].onfocus = function (){ if (this.value == "Username") this.value = ""; }
			inputs[i].onblur = function (){ if (this.value == "" && this.name == "username") this.value = "Username"; }
		}
	}
}
if (window.addEventListener) { window.addEventListener("load", initPage, false); }
else if (window.attachEvent) { window.attachEvent("onload", initPage); }