function initInputs() {
	var _inputs = document.getElementsByTagName('input');
	var _txt_inputs = document.getElementsByTagName('textarea');
	var _value = '';
	if (_inputs) {
		for(var i=0; i<_inputs.length; i++) {
			if (_inputs[i].type == 'text' || _inputs[i].type == 'password') {
				if(_inputs[i].className.indexOf('not-clear')==-1) {
					_inputs[i].onfocus = function(){
						_value = this.value;
						this.value = '';
					}
					_inputs[i].onblur = function(){
						if (this.value == '')
							this.value = _value;
						_value = '';
					}
				}
			}
		}
	}
	if (_txt_inputs) {
		for(var i=0; i<_txt_inputs.length; i++) {
			if (_txt_inputs[i].className.indexOf('not-clear')==-1) {
				_txt_inputs[i].onfocus = function(){
					_value = this.value;
					this.value = '';
				}
				_txt_inputs[i].onblur = function(){
					if (this.value == '')
						this.value = _value;
					_value = '';
				}
			}
		}
	}
}
if (window.addEventListener)
	window.addEventListener("load", initInputs, false);
else if (window.attachEvent)
	window.attachEvent("onload", initInputs);
	
	
