InputStartValueStore = Class.create();

InputStartValueStore.prototype = {
	
	initialize: function (target) {
		this.target = target;
		this.value = $(target).value;
		Event.observe($(target), "focus", this.onFocus.bindAsEventListener(this));
		Event.observe($(target), "blur", this.onBlur.bindAsEventListener(this));
	},
	
	onFocus: function () {
		$(this.target).value = "";
	},
	
	onBlur: function () {
		if ($F(this.target)=="") $(this.target).value = this.value;
	}
	
}