var PassiveInputLabel = new Class({
	initialize: function(element, label) {
		this.element = $(element);
		this.label = label;
		this.element.addEvents({
			'blur': this.test.bind(this),
			'focus': function(e){
				if (this.element.get('value') == this.label)
				{
					this.element.set('value', '');
					this.element.removeClass('inactive');
				}
			}.bind(this),
		});
		this.test();
	},
	test: function(){
		if (!this.element.get('value') || this.element.get('value') == this.label) {
			this.element.set('value', this.label);
			this.element.addClass('inactive');
		}
		else {
			this.element.removeClass('inactive');
		}
	}
});