function initInputs () {
	var inputs = document.getElementsByTagName("input");
	for (var i = 0; i < inputs.length; i++ ){
		if(inputs[i].type == "text" ) {
			inputs[i].valueHtml = inputs[i].value;
			inputs[i].onfocus = function (){
				if (this.name == 'url') {
					this.focus();
					var _this = this;
					setTimeout(function(){_this.select()}, 100);
				} else {
					this.value = "";
				}
			}
			inputs[i].onblur = function (){
				this.value != ""? this.value = this.value: this.value = this.valueHtml;
			}
		}
	}
}

if (window.addEventListener){
	window.addEventListener("load", initInputs, false);
}
else if (window.attachEvent){
	window.attachEvent("onload", initInputs);
}
