// Set default values for input elements
$(document).ready(function () {
    $('input[title], textarea[title]').each(function () {
        if ($(this).val() === '') {
            $(this).val($(this).attr('title'));
        }

        $(this).focus(function () {
            if ($(this).val() == $(this).attr('title')) {
                $(this).val('');
            }
        });
        $(this).blur(function () {
            if ($(this).val() === '') {
                $(this).val($(this).attr('title'));
            }
        });
    });
    $('form').submit(function () {
        $('input[title], textarea[title]', this).each(function () {
            if ($(this).val() == $(this).attr('title')) {
                $(this).val("");
            }
        });
        return true;
    });
});
