function initInput (){
	var inputs = document.getElementsByTagName("input");
	for (var i = 0; i < inputs.length; i++ ){
		if (inputs[i].id=='username' || inputs[i].id=='password') { 
			if(inputs[i].type == "text" ) {
				inputs[i].valueHtml = inputs[i].value;
				inputs[i].onfocus = function (){
					this.value = "";
				}
				inputs[i].onblur = function (){
					this.value != ""? this.value = this.value: this.value = this.valueHtml;
				}
			}
			if(inputs[i].type == "password" ) {
				inputs[i].valueHtml = inputs[i].value;
				inputs[i].onfocus = function (){
					this.value = "";
				}
				inputs[i].onblur = function (){
					this.value != ""? this.value = this.value: this.value = this.valueHtml;
				}
			}
		}
	}
}if (window.addEventListener) window.addEventListener("load", initInput, false);
else if (window.attachEvent) window.attachEvent("onload", initInput);
