(function($) {
    $.fn.defaultvalue = function() {
        var elements = this;
        var args = arguments;
        var c = 0;
        return(
            elements.each(function() {
                var el = $(this);
                var def = args[c++];
                el.css({'color' : '#888888'});
                el.val(def).focus(function() {
                    if(el.val() == def) {
                        el.css({'color' : '#333333'});
                        el.val("");
                    }
                    el.blur(function() {
                        if(el.val() == "") {
                            el.css({'color' : '#888888'});
                            el.val(def);
                        }
                    });
                });

            })
        );
    }
})(jQuery)
