var sysOPMode=0; var FIRMWAREVER=[ {model:"NP800n",clonedMac:"true",webtitle:"TEW-671BR Wireless 11n Broadband Router",hasAutoChan:"1",pwrEth:"1",showDhcpName:"0",portbaseQoS:"1"} ]; function gotoUrlTest(x) { if(evaltF()==true){ location.href=x; } } function gotoUrl(x) { location.href=x; } function submitIWizardSetting() { if(evaltF()==true) { document.tF.submit(); } } function checkSSID(ssid) { return (ssid.length >0 && ssid.length <=32); } function checkWEPKey(key) { var type; if (key.length != 5 && key.length != 10 && key.length != 13 && key.length != 26) return 0; switch(key.length) { case 10: type = 0; break; case 26: type = 1; break; case 5: type = 2; break; case 13: type = 3; break; } var checkReg = [/^([a-f]|[A-F]|[0-9]){10}$/,/^([a-f]|[A-F]|[0-9]){26}$/,/^[^ ]{5}$/,/^[^ ]{13}$/]; return checkReg[type].test(key); } function checkWPAKey(key) { var type; if (key.length < 8 || key.length > 64) return 0; if(key.length == 64) type=1; else type=0; var checkReg = [/^([^ ]){8,63}$/,/^([a-f]|[A-F]|[0-9]){64}$/]; return checkReg[type].test(key); } function checkMac(mac) { var MAC_REGX =new RegExp("^([0-9a-fA-F][0-9a-fA-F]){6}$"); return MAC_REGX.test(mac); } function checkIP(ip) { var IPRegEx=new RegExp("^(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]{1}\\d{1}|[1-9])\\.(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]{1}\\d{1}|\\d)\\.(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]{1}\\d{1}|\\d)\\.(25[0-4]|2[0-4]\\d|1\\d{2}|[1-9]{1}\\d{1}|[1-9])$"); return IPRegEx.test(ip); } function wanTypeList(index) { var selectArry=new Array(); for(i=1;i<=4;i++) { selectArry[i]=(i==index)?"selected":""; } document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); } function strRule(name, str) { if(name.value=="") { alert(str + ' ' + showText(372)); return false; } return true; }