<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="/Scripts/jquery-latest.js"></script>
<script type="application/javascript">
var allAgent;
var agId;
var auId;
var IsMobileConfig;
var mobile_addr = "http://" + window.location.host + "/m/";
$(function () {
saveAgentId();
try {
var urlhash = window.location.hash;
if (!urlhash.match("fromapp")) {
if (
navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i) &&
"" != "1"
) {
if (allAgent != "") {
window.location.href = "/m/#/Register?allAgent=" + allAgent;
} else if (agId != "") {
window.location.href = "/m/#/Register?at=" + agId;
} else if (auId != "") {
window.location.href = "/m/#/?au=" + auId;
} else {
window.location.href = "/m/";
}
} else {
getWebInfo();
}
}
} catch (err) {}
});
function getWebInfo() {
if (allAgent != "") {
window.location.href = "/v/#/register?allAgent=" + allAgent;
} else if (agId != "") {
window.location.href = "/v/#/register?at=" + agId;
} else if (auId != "") {
window.location.href = "/v/#/home?au=" + auId;
} else {
window.location.href = "/v/";
}
}
function saveAgentId() {
var Request = new Object();
Request = GetRequest();
allAgent = Request["allAgent"];
agId = Request["at"];
auId = Request["au"];
IsMobileConfig = Request["IsMobileConfig"];
if (
allAgent != null &&
allAgent != "null" &&
allAgent != "" &&
allAgent != "undefined"
) {
if (window.localStorage) {
localStorage.setItem("allAgent", allAgent);
} else {
}
} else {
allAgent = "";
}
if (
agId != null &&
agId != "null" &&
agId != "" &&
agId != "undefined"
) {
if (window.localStorage) {
localStorage.setItem("agId", agId);
} else {
}
} else {
agId = "";
}
if (
auId != null &&
auId != "null" &&
auId != "" &&
auId != "undefined"
) {
if (window.localStorage) {
localStorage.setItem("auId", auId);
} else {
}
} else {
auId = "";
}
if (
IsMobileConfig != null &&
IsMobileConfig != "null" &&
IsMobileConfig != "" &&
IsMobileConfig != "undefined"
) {
if (window.localStorage) {
localStorage.setItem("IsMobileConfig", IsMobileConfig);
} else {
}
} else {
IsMobileConfig = "";
}
}
function GetRequest(url) {
if (typeof url == "undefined") {
url = location.search;
} else {
url = url.substr(url.indexOf("?"), url.length - url.indexOf("?"));
}
var theRequest = new Object();
if (url.indexOf("?") != -1) {
var str = url.substr(1);
strs = str.split("&");
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}
}
return theRequest;
}
</script>
</head>
<body></body>
</html>