jQuery.fn.DefaultValue = function(text){
  return this.each(function(){
    //store field reference
      var fld_current=this;
      var defval=text;
    //Set value initially if none are specified
      if(this.value=='') {
          this.value=text;
      }
      else {
      //Other value exists - ignore
      }
      //Remove values on focus
      $(this).focus(function() {
          if(this.value==defval || this.value=='')
              this.value='';
          });
      //Place values back on blur
      $(this).blur(function() {
          if(this.value=='')
              this.value=defval;
      });
      //Capture parent form submission
      //Remove field values that are still default
      $(this).parents("form").each(function() {
      //Bind parent form submit
          $(this).submit(function() {
              if(fld_current.value==defval) {
                  fld_current.value='';
              }
          });
      });
  });
};

