function login_onclick() { if (document.login_club.username.value == "" || isNaN(document.login_club.username.value)) { alert ("请输入您的数字ID!"); document.login_club.username.value = ""; document.login_club.username.focus(); return false; } if (isEnKong(document.login_club.username.value) == false) { alert ("用户名不能是字母、数字、-、_之外的字符!"); document.login_club.username.focus(); return false; } if (document.login_club.password.value == "") { alert ("请输入您的密码!"); document.login_club.password.focus(); return false; } add_fptt(); } function add_fptt() { var username = document.login_club.username.value; //用户名 var pswd = document.login_club.password.value;//密码 var oXMLDoc = new ActiveXObject('MSXML'); //sURL = 'panduan_fptt.asp?username=' + username + '&pswd=' + pswd; var sURL = '/include/panduan_fptt.asp?username=' + username + '&pswd=' + pswd; oXMLDoc.url = sURL; var oRoot=oXMLDoc.root; //alert(oRoot.children.item(0).text); if(oRoot.children.item(0).text.substring(0,4) == "True") { var address = oRoot.children.item(0).text.substring(4,oRoot.children.item(0).text.length); // alert(address); window.open("/messagecenter/notice_fptt.asp?username="+username+"&address="+address,'', 'width=345,height=425,resizable=0,scrollbars=no') // return false; }else{ document.login_club.submit(); } } function isEnKong(argValue) { var flag1=false; var compStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-1234567890"; var length2=argValue.length; for (var iIndex=0;iIndex