jQuery.fn.defaultValue = function(text) {
	return $(this).each(function(){
		if(this.type != 'text' && this.type != 'password' && this.type != 'textarea') {
			return;
		}
		if($(this).val()=='') {
			$(this).val(text);
		}
		var fld_current=this;
		$(this).focus(function() {
			if($(this).val()==text || $(this).val()=='')
				$(this).val('');
		});
		$(this).blur(function() {
			if($(this).val()==text || $(this).val()=='')
				$(this).val(text);
		});
		$(this).parents("form").each(function() {
			$(this).submit(function() {
				if(fld_current.value==text) {
					fld_current.value='';
				}
			});
		});
	});
}
