$.fn.extend({
        automessage: function(){
               $(this).each(function(){
                    $(this).attr('label',$(this).val());
                    $(this).bind('blur',function(){
                           if($(this).val() == "") $(this).val($(this).attr('label'));
                    }).bind('focus',function(){
                           if($(this).val() == $(this).attr('label')) $(this).val("");
                    });
              });
              return this;
       }
});

