jQuery.fn.DefaultValue = function(text){
    return this.each(function(){
		//Make sure we're dealing with text-based form fields
		if(this.type != 'text' && this.type != 'password' && this.type != 'textarea')
			return;
		
		//Store field reference
		var fld_current=jQuery(this);
		
		//Set value initially if none are specified
        if(jQuery(this).val()=='') {
        	jQuery(this).attr("value",text);
		} else {
			//Other value exists - ignore
			return;
		}
		
		//Remove values on focus
		jQuery(this).focus(function() {
			if(jQuery(this).val().match(text) || jQuery(this).val()=='') {
				jQuery(this).attr("value","");
			}
		});
		
		//Place values back on blur
		jQuery(this).blur(function() {
			//if(jQuery(this).val().match(text)) {
			//	jQuery(this).attr("value",jQuery(this).val().replace(text,""));
			//} else
			if (jQuery(this).val()=='') {
				jQuery(this).attr("value",text);
			}
		});
		
		//Capture parent form submission
		//Remove field values that are still default
		jQuery(this).parents("form").each(function() {
			//Bind parent form submit
			jQuery(this).submit(function() {
				//if(fld_current.value==text) {
				//	fld_current.value='';
				//}
				fld_current.attr("value",fld_current.val().replace(text,""))
			});
		});
    });
};