var vstrings=parent.ary_strings;function DictionaryStrings(){this.dicObj={};if(typeof(vstrings)=="undefined"){alert("Load strings failure for js!!");return}for(var a=0;vstrings[a][0]!="";a++){this.dicObj[vstrings[a][0]]=vstrings[a][1]}this.getstring=function(b){if(typeof(this.dicObj[b])!="undefined"){return this.dicObj[b]}else{alert(b+":has not be defined in language string array!");return""}}}var langtxt=new DictionaryStrings();window._=function(a){return langtxt.getstring(a)};function doValidIPAndMask(c,b,a){if((c=="")&&(b!="")){if(a==1){alert(_("DesIPInvalid")+c)}else{if(a==2){alert(_("SorIPInvalid"))}else{alert(_("IPIsEmpty"))}}return false}else{if((c!="")&&(b=="")){if(a==1){alert(_("DesNetInvalid"))}else{if(a==2){alert(_("SorNetInvalid"))}else{alert(_("SubMaskInvalid")+b)}}return false}else{return true}}}function chineseCheck(b,a){var f=document.getElementById(a);var e=f.innerText;var d=b.value;var c;if(e==undefined){e="Warning : input"}for(c=0;c<d.length;c++){if(d.charCodeAt(c)<0||d.charCodeAt(c)>255){alert(e+_("ContentCHN"));return true}}return false}function isValidAscii(c){for(var a=0;a<c.length;a++){var b=c.charAt(a);if(b<" "||b>"~"){return b}}return""}function isNumeric(c){var a=c.length;var b;if(a==0){return false}for(i=0;i<a;i++){b=c.charAt(i);if(b>"9"||b<"0"){return false}}return true}function isValidUrlName(b){var c=0;var a=new Array();a[c++]="www";a[c++]="com";a[c++]="org";a[c++]="net";a[c++]="edu";a[c++]="www.";a[c++]=".com";a[c++]=".org";a[c++]=".net";a[c++]=".edu";if(isValidAscii(b)!=""){return false}for(c=0;c<b.length;c++){if(b.charAt(c)=="\\"||b.charAt(c)==" "||b.charAt(c)=="#"||b.charAt(c)=="@"||b.charAt(c)==","||b.charAt(c)=="%"){return false}}if(b==""){return false}if(b.length<3){return false}for(j=0;j<a.length;j++){if(b==a[j]){return false}}return true};