jQuery.noConflict();
function Focus(controlName) {
    try {
        jQuery('#' + controlName).focus();
    }
    catch (ex) {
        // alert("Error: " + ex);
    }
}

// Watermark
// http://plugins.jquery.com/project/TinyWatermark
(function (jQuery) {
    jQuery.fn.watermark = function (css, text) {
        return this.each(function () {
            var i = jQuery(this), w;
            i.focus(function () {
                w && !(w = 0) && i.removeClass(css).data('w', 0).val('');
            })
            .blur(function () {
                !i.val() && (w = 1) && i.addClass(css).data('w', 1).val(text);
            })
            .closest('form').submit(function () {
                w && i.val('');
            });
            i.blur();
        });
    };
    jQuery.fn.removeWatermark = function () {
        return this.each(function () {
            jQuery(this).data('w') && jQuery(this).val('');
        });
    };
})(jQuery);


