﻿var VerifyShow = 0;
function changeVerifyCode() {
    $("#vCode").attr("src", "verifyCode.aspx?_t=" + Math.random());
}

function ShowVerify() {
    if (VerifyShow == 0) {
        $("#ver1").show();
        $("#ver2").show();
    }
}

function a() {
    alert("x");
}
function fEvent(sType, oInput) {
    switch (sType) {
        case "focus":
            oInput.isfocus = true;
            if (oInput == "txtPwd") {
                ShowVerify();
            }
            $("#" + oInput).attr('class', 'inputBox1');
            break;
        case "blur":
            oInput.isfocus = false;
            $("#" + oInput).attr('class', 'inputBox');
            break;
    }
}
$(document).ready(function() {
  
    var error = parseInt(location.href.request("error"));
    switch (error) {
        case -11:
            $("#Error").text('验证码输入错误！');
            break;
        case -12:
            $("#Error").text('请重新登陆！');
            break;
        case -1:
            $("#Error").text('用户名不存在！');
            break;
        case -2:
            $("#Error").text('密码错误！');
            break;
        case -4:
            $("#Error").text('当前帐号正在使用！');
            break;
        case -13:
            $("#Error").text('系统繁忙，请稍后在重试！');
            break;
    }
});
function CheckBox1() {
    if ($("#<%=checkAll1.ClientID %>").attr("checked") == true) {
        $("#PrintArea input[type=checkbox]").each(function() {
            $(this).attr("checked", true);
        })
    }
    else {
        $("#PrintArea input[type=checkbox]").each(function() {
            $(this).attr("checked", false);
        })
    }
}

function CheckBox() {
    if ($("#<%=ckbSelectAll.ClientID %>").attr("checked") == true) {
        $("#PrintArea input[type=checkbox]").each(function() {
            $(this).attr("checked", true);
        })
    }
    else {
        $("#PrintArea input[type=checkbox]").each(function() {
            $(this).attr("checked", false);
        })
    }
}
