
function inputfocus()
{
	var inputs = document.getElementsByTagName('input');
	for(var i = 0; i < inputs.length; i++) {
		if (inputs[i].className.indexOf('empty-on-focus') != -1) {
			inputs[i].onfocus = function() {
				this.tmpvalue = this.value;
				this.value = '';
			}
			inputs[i].onblur = function() {
				if (this.value == '') {
					this.value = this.tmpvalue;
				} else {
					this.onfocus = '';
				}
			}
		}
	}
}


addEvent(window, "load", inputfocus);
