if (!jQuery.fn.inputHint) {
    jQuery.fn.inputHint = function(hint) {
        var _this = this;
        if (!_this.val()) { _this.val(hint); }
        _this.focus(function() {
            if (_this.val() === hint) { _this.val(''); }
        }).blur(function() {
            if (_this.val() === '') { _this.val(hint); }
        });
        return this;
    }
}

if (!jQuery.fn.selectOnFocus) {
    jQuery.fn.selectOnFocus = function() {
        this.focus(function() {
            if (this.value == this.defaultValue) {
                this.select();
            }
        });
        return this;
    }
}

