(function($){

    $.fn.formvalue = function () {
        return this.each(function() {
            var $this = $(this);
            var value = $this.val();
            
            $this.focus(function() {
                if ($this.val() == value) $this.val('');
            });
            
            $this.blur(function() {
                if ($this.val() == '') $this.val(value);
            });
        });
    }

})(jQuery)
