jQuery.fn.clearforms = function() {
    jQuery(this)
        .bind('focus', function() {
            if ( !this.defaultValue ) this.defaultValue = this.value;
            if ( this.defaultValue && this.defaultValue != this.value ) return;
            this.value = '';
        })
        .bind('blur', function() {
            if ( this.value.match(/^\s*$/) )
                this.value = this.defaultValue;
        });
};