jQuery.fn.defaultValue = function(text){
    return this.each(function(){
		if(this.type != 'text' && this.type != 'password' && this.type != 'textarea')
			return;

		var fld_current=this;

		$(this).focus(function() {
			if(this.value==text || this.value=='')
				$(this).val('').removeClass("is-default");
		});

		$(this).blur(function() {
			if(this.value==text || this.value=='')
				$(this).val(text).addClass("is-default");
		});
		
		$(this).blur();

		$(this).parents("form").each(function() {
			$(this).submit(function() {
				if(fld_current.value==text) {
					fld_current.value='';
				}
			});
		});
    });
};