﻿showLoginForm = function() {
    jQuery("#LoginForm1_LoginForm").show();
}
closeLoginForm = function() {
    jQuery("#LoginForm1_LoginForm").hide();
}
changeMyMenu = function(n) {
    jQuery(jQuery("#myMenuList").find("A")[n]).addClass("current");
}
changeChargeIndex = function(n) {
    jQuery("#currentChargeIndex").find("LI").removeClass("current");
    jQuery(jQuery("#currentChargeIndex").find("LI")[n]).addClass("current");
}
changeSearchMenu = function(n) {
    jQuery("#SearchMenuList").find("LI").removeClass("current");
    jQuery(jQuery("#SearchMenuList").find("LI")[n]).addClass("current");
}
showErrorMessage = function(flag, textID, message) {
    var p = jQuery("#" + textID).parent();
    var span = p.find("SPAN");
    if (span.length == 0) { p.append("<span style='color:Red;font-size:12px' />"); span = p.find("SPAN"); }
    span.text(message);
    if (!flag) { span.show(); } else { span.hide(); }
}