日期:2014-05-16 浏览次数:20676 次
function validateAcc() {
var Email = document.getElementById("myEmail").value.trim();
if (isEmail(Email)) {
var Psw = document.getElementById("mypassword").value;
var arg = document.getElementsByName("radUser")[1].checked ? "login" : "createAccount";
$.ajax({
type: "GET",
url: "ajaxforlogin.aspx",
data: "todo=" + arg + "&email=" + Email + "&psw=" + Psw,
success: function (html) {
PopupLogin_Complete(html);
}
});
}
else {
document.getElementById("ErrorMsg").innerHTML = "<%= Resources.lang.mvalidLogin%>";
}
}
function PopupLogin_Complete(result) {
if (result != "") {
var sValues = result.split('|');
var sMsg = sValues[0];
var sType = sValues[2];
var sUserName = sValues[3];
if (sType == "loginSuccess") {
$("#wel_Info").html("<%=Resources.lang.mHeader_Welcome%>" + sUserName);
$("#yourFirstName").html("<%=Resources.lang.mHey %> " + sUserName);
closePop();
//getObj("yourimage").innerHTML=sValues[1];
}
else if (sType == "loginFail") {
document.getElementById("