function openRegWin() { var winWidth = 500; var winHeight = 480; var regWin = window.open("/wait.htm","regWin","toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no,width=" + winWidth + ",height=" + winHeight + ",left=" + ((screen.availWidth - winWidth) / 2) + ",top=" + ((screen.availHeight - winHeight - 12) / 2)); if (regWin) { try { regWin.focus(); } catch (e) { } } return true; } function apply(theform,seller) { if (!seller) seller = ""; if (seller = "") seller = ""; if (document.getElementById) { var e; e = document.createElement("input"); e.type = "hidden"; e.name = "companyID"; e.value = "3"; theform.appendChild(e); e = document.createElement("input"); e.type = "hidden"; e.name = "agentID"; e.value = "1"; theform.appendChild(e); e = document.createElement("input"); e.type = "hidden"; e.name = "member_id"; e.value = ""; theform.appendChild(e); e = document.createElement("input"); e.type = "hidden"; e.name = "seller_id"; e.value = seller; theform.appendChild(e); } else if (document.all) { var e = theform.all; var a = new Array(), b = new Array(); var j = 0; for (var i = 0 ; i < e.length ; i++) { var c = e[i]; if (c.tagName.toLowerCase() != "input" || c.type.toLowerCase() != "radio") continue; if (c.checked) { a[j] = c.name; b[j] = c.value; j++; } } theform.innerHTML = theform.innerHTML + "" + "" + "" + ""; var e = theform.all; for (var i = 0 ; i < e.length ; i++) { var c = e[i]; if (c.tagName.toLowerCase() != "input" || c.type.toLowerCase() != "radio") continue; for (var j = 0 ; j < a.length ; j++) { if (c.name == a[j] && c.value == b[j]) c.checked = true; } } } else { alert("Sorry, your browser doesn't meet the requirements of our website."); return false; } theform.method = "post"; theform.action = "/idc/reg/reg_centre.jsp"; theform.target = "regWin"; openRegWin(); return true; } function login(theform) { var Reg_SID = theform.Reg_SID.value; var Reg_PWD = theform.Reg_PWD.value; Reg_SID = Reg_SID.replace(/^\s*|\s*$/g,"") Reg_PWD = Reg_PWD.replace(/^\s*|\s*$/g,"") if (Reg_SID == "") { alert("请输入你的用户名!"); theform.Reg_SID.value = ""; theform.Reg_SID.focus(); return false; } if (Reg_SID.search(/[<>&]/) != -1) { alert("用户名中不能包括<、>、&三个符号!"); theform.Reg_SID.value = ""; theform.Reg_SID.focus(); return false; } if (Reg_SID.match(/[sS][cC]\d+/)) { theform.action = "http://webman.sitex.cn/servlet/webman.login.loginCheck"; } else { theform.action = "https://61.135.129.88/servlet/webman.login.loginCheck"; } if (Reg_PWD == "") { alert("请输入你的密码!"); theform.Reg_PWD.value=""; theform.Reg_PWD.focus(); return false; } theform.method = "post"; theform.action = "https://61.135.129.88/servlet/webman.login.loginCheck"; theform.target = "_blank"; return true; } function getPWD() { var winWidth = 460; var winHeight = 350; var getPWDWin = window.open("https://61.135.129.88/getpwd/step1.jsp","getPWDWin","toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no,width=" + winWidth + ",height=" + winHeight + ",left=" + ((screen.availWidth - winWidth) / 2) + ",top=" + ((screen.availHeight - winHeight - 12) / 2)); return false; }