function initInputs () {
	var inputs = jQuery('#header input');
	for (var i = 0; i < inputs.length; i++ ){
		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;
			};
		}else if(inputs[i].type == "password" ) {
			inputs[i].valueHtml = inputs[i].value;
			
			inputs[i].onfocus = function (){
				this.value = "";
			};
			inputs[i].onblur = function (){ 
				if(this.value != "") {
					this.value = this.value;
				}else{
					this.value = this.valueHtml;
				}
			};
		}
	}
}

if (window.addEventListener){
	window.addEventListener("load", initInputs, false);
}
else if (window.attachEvent){
	window.attachEvent("onload", initInputs);
}

