window.addEvent('domready', function(){
	var values = new Array();
	var inputs = new Array();
	inputs = $$('input.watermark');
	
	inputs.each(function (el) {
		values.push(el.value);
		el.addEvent('focus',function(){
			if (el.value === values[inputs.indexOf(el)]){el.value = ''};
		});
		el.addEvent('blur',function(){
			if(this.value === ''){el.value = values[inputs.indexOf(el)]};
		});
	});
});
