/ / The verification is fully consisting of function isdigit (s) {var patrn = / ^ [0-9] {1, 20} $ /; if (! Patn.exec (s)) Return Falsereturn True} // School Introductory name: You can only enter 5-20 strings that start with letters, numbers, "_", "." (S) {var pATRN = / ^ [A-ZA-Z] {1} ([A-ZA-Z0-9] | [._]) {4,19} $ /; if (! patrn.exec (s)) Return Falsereturn True} // Check User Name: You can only enter 1- 30 strings beginning with letters Function istrumename (s) {var pATRN = / ^ [a-za-z] {1, 30} $ /; if (! Patn.exec (s)) Return Falsereturn True} // Calibration password: You can only enter 6-20 letters, numbers, underscore function ispasswd (s) {var patrn = / ^ (/ w) {6, 20} $ /; if (! Patrn.exec (s)) Return Falsereturn True} // Verify normal phone, fax number: " " start, in addition to the digital "-" function istel (s) {// var patrn = / ^ [ ] {0,1} / d) {1,3} []? ([-]? (/ d) {1, 12}) $ /; var patrn = / ^ [ ] {0,1} (/ d) {1, 3} []? ([-]? ((/ D) | []) {1,12}) $ /; if (! Patn.exec (s)) Return Falsereturn True} // Check the mobile number: You must start with the beginning, in addition to the numbers, can be "-" function ismobil (s) {var paN = / ^ [ ] {0, 1} (/ d) {1,3} []? ([-]? ((/ d) | []) {1, 12}) $ /; if (! patrn.exec (s)) Return Falsereturn true} // Check Postal Code Function ISPOstalcode (s) {// var patrn = / ^ [A-ZA-Z0-9] {3,12} $ /; var pATRN = / ^ [A-ZA-Z0-9] {3,12} $ /; if (! patrn.exec (s) Return Falsereturn True} // Check Search Keyword ISSearch (s) {var PATRN = / ^ [^ `~! @ # $% ^ & * () = | ///] [/] / {/} :; / '/ ,. <> /?] {1} [^ `~! @ $% ^ & () = | ///] [/] / {/}:; /' / ,. <>?] {0,19} $ /; if (! Patrn.exec (s)) Return Falsereturn True} Function isip (s) // by zergling {var patrn = / ^ [0-9.] {1,20} $ / ; if (! patrn.exec (s)) Return Falsereturn True}