function clearInput(){
	var _list = document.getElementsByTagName('input');
	for(var i = 0; i < _list.length; i++){
		if(_list[i].type == 'text' || _list[i].type == 'password')
		{
			_list[i]._val = _list[i].value;
			_list[i].onfocus = function()
			{
				if(this.value == this._val) this.value = '';
			}
			_list[i].onblur = function()
			{
				if(this.value == '') this.value = this._val;
			}
		}
	}
}
function initPage(){
	clearInput();
}
if (window.addEventListener) window.addEventListener("load", initPage, false);
else if (window.attachEvent && !window.opera) window.attachEvent("onload", initPage);
