﻿jQuery.fn.hint = function () {
    return this.each(function (){
        var title = $(this).attr('title'); 
        if (title)
        { 
            $(this).blur(function (){
                if ($(this).val() == ''){ $(this).val(title); }
            });

            $(this).focus(function (){
                if ($(this).val() == title){ $(this).val(''); }
            });

            $(this).blur();
        }
    });
}