function initInputs() {
	var _inputs = document.getElementsByTagName('input');
	var _value = '';
	if (_inputs) {
		for(var i=0; i<_inputs.length; i++) {
			if (_inputs[i].type == 'text' || _inputs[i].type == 'password') {
				_inputs[i].onfocus = function(){
					_value = this.value;
					this.value = '';
					this.style.color="#000";
				}
				_inputs[i].onblur = function(){
					if (this.value == '')
					this.value = _value;
					_value = '';
					this.style.color="#a1a1a1";
				}
			}
		}
	}
}
if (window.addEventListener)
	window.addEventListener("load", initInputs, false);
else if (window.attachEvent)
	window.attachEvent("onload", initInputs);

