/*
 * on focus, remove the text
 */
$.fn.focusHide = function() {
    //on focus
    $(this).unbind('focus').bind('focus',function() {
        if ($(this).is('input') || $(this).is('textarea')) {
            if ($(this).val() == this.defaultValue) {
                $(this).val('');
            }
        }
    });

    //on blur
    $(this).unbind('blur').bind('blur',function() {
        if ($(this).is('input') || $(this).is('textarea')) {
            if ($(this).val() == '') {
                $(this).val(this.defaultValue);
            }
        }
    });
}
