﻿
//如果在中国,则需要进行登录 cn
if (navigator.userLanguage == "zh-cn") {
var client = new AJAXRPC_Client('/ajaxrpc/Server.aspx');
     var result = client.Proxy.GetSession("User");
    if (result == "") {
        location.href = "Login.htm";
    }
}

////如果是中国文化，且没有登录则需要返回到登录界面
//var client = new AJAXRPC_Client('/ajaxrpc/Server.aspx');
//client.Proxy.GetCultureName(function (cultureName) {
//    if (cultureName == "zh-CN") {
//        var result = client.Proxy.GetSession("User");
//        if (result == "") {
//            location.href = "Login.htm";
//        }
//    }
//});
