﻿// JScript 文件
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function ValidationFunctionlx(objSource, arguments) {
    var loginid = document.getElementById("login1_login_id");
    var loginpwd = document.getElementById("login1_login_pwd");
    var radio = document.getElementById("login1_login_type_0");
    var radio1 = document.getElementById("login1_login_type_1");
    var chkcode = document.getElementById("login1_login_chkcode");
    if (loginid.value == "") {
        arguments.IsValid = false;
        alert("请输入帐号")
        loginid.focus();
        return false;
    }
    if (loginpwd.value == "") {
        arguments.IsValid = false;
        alert("请输入密码")
        loginpwd.focus();
        return false;
    }
    if (radio.checked == false && radio1.checked == false) {
        arguments.IsValid = false;
        document.getElementById('LoginTypeLayer').style.display = 'block';
        radio.focus();
        return false;
    }
    

   if (chkcode != null){
     if (chkcode.value == ""){
        arguments.IsValid = false;
        alert("请输入验证码");
        chkcode.focus();
        return false;
     }
   }
    else
        objSource.IsValid = true;
}


function Logtype(tp) {
    var radio = document.getElementById("login1_login_type_0");
    var radio1 = document.getElementById("login1_login_type_1");
    if (tp == "jw") {
        radio.checked = true;
        document.getElementById('login1_logsubmit').click();
    } else {
        radio1.checked = true;
        document.getElementById('login1_logsubmit').click();
    }
    document.getElementById('LoginTypeLayer').style.display = 'none';

}  
        
   $(document).ready(function(){
            $(".show2010menu,.hide2010menu").each(function(i){
                var type=$(this).attr("tag");
                $(this).click(function(){//open
                    var bopen= $(this).hasClass("show2010menu");
                    if(!bopen){
                    $(".show2010menu,.hide2010menu").each(function(i){
                        $(this).removeClass("show2010menu").addClass("hide2010menu");
                        $("div#"+$(this).attr("tag")).removeClass("showhotbox").addClass("hidehotbox");
                    });
                        $(this).removeClass("hide2010menu").addClass("show2010menu");
                        $("div#"+type).removeClass("hidehotbox").addClass("showhotbox");
                    }
                });
            });
        });

