﻿// displays hint text on any input element with the 'title' attribute set
function textBoxHints() {
    var el = $('input[Title]');

    // show the display text
    el.each(function(i) {
        $(this).attr('value', $(this).attr('title'));
    });

    // hook up the blur & focus
    el.focus(function() {
        if ($(this).attr('value') == $(this).attr('title'))
            $(this).attr('value', '');
    }).blur(function() {
        if ($(this).attr('value') == '')
            $(this).attr('value', $(this).attr('title'));
    });
}