﻿window.IncludeFile={};
window.JsModule=["system/jqframe.js","plugins/n2menu/js/n2menu.js"]; 
function WebMain()
{
    $("#logindiv").login({type:0,callback:loginback,arrID:['txtUserName','txtPwd','','','','btlogin'],strField:'<@euser%16username%16[password]%16permission@>',isReqval:0});
}
function loginback(re)
{
    if(re[0][0]=="3") window.location.href="admin.html";
    else if(re[0][0]=="2") window.location.href="xyadmin.html";
    else if(re[0][0]=="1") window.location.href="jbadmin.html";
    else 	
    {
        alert("用户名密码错误");
        $.SendMessage({type:"LoginOut",pm :"<@@>"},true);
    } 
}
