﻿<!-- hide from non-JavaScript browsers
function SetError(msg)
{
    var curr = $("[id$='pnlMasterErrors']:first").children('div');
    if (curr.html().length > 0)
        msg = curr.html() + "<br />" + msg;
    $("[id$='pnlMasterErrors']:first").children('div').html(msg);
    $("[id$='pnlMasterErrors']:first").show();
}
function SetMessage(msg)
{
    var curr = $("[id$='pnlMasterMessages']:first").children('div');
    if (curr.html().length > 0)
        msg = curr.html() + "<br />" + msg;
    $("[id$='pnlMasterMessages']:first").children('div').html(msg);
    $("[id$='pnlMasterMessages']:first").show();
}
function SetSuccessMessage(msg)
{
    var curr = $("[id$='pnlMasterSuccess']:first").children('div');
    if (curr.html().length > 0)
        msg = curr.html() + "<br />" + msg;
    $("[id$='pnlMasterSuccess']:first").children('div').html(msg);
    $("[id$='pnlMasterSuccess']:first").show();
}
function ResetError()
{
    $("[id$='pnlMasterErrors']:first").children('div').empty();
    $("[id$='pnlMasterErrors']:first").hide();
}
function ResetMessage()
{
    $("[id$='pnlMasterMessages']:first").children('div').empty();
    $("[id$='pnlMasterMessages']:first").hide();
}
function ResetSuccessMessage()
{
    $("[id$='pnlMasterSuccess']:first").children('div').empty();
    $("[id$='pnlMasterSuccess']:first").hide();
}
function ResetAll()
{
    ResetError();
    ResetMessage();
    ResetSuccessMessage();
}
// end Hide-->