1// JavaScript Document 2<!-- 3 4//MM Jump Menu 5 function MM_jumpMenu(targ,selObj,restore) 6 { //v3.0 7 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 8 if (restore) selObj.selectedIndex=0; 9 } 10 11function MM_goToURL() { //v3.0 12 var i, args=MM_goToURL.arguments; document.MM_returnValue = false; 13 for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); 14} 15 16 17 function formValidator(f) 18 { 19 var errormsg = ''; 20 21// Form Functions - Verify Valid E-mail Syntax 22 function validEmail(email) 23 { 24 invalidChars = " /:,#'`$~!%^&*()+\"\;<>?\\| " 25 if (email == "") { // cannot be empty 26 return false 27 } 28 for (i = 0; i < invalidChars.length; i++) { // does it contain any invalid characters? 29 badChar = invalidChars.charAt(i) 30 if (email.indexOf(badChar,0) > -1) { 31 return false 32 } 33 } 34 atPos = email.indexOf("@",1) // there must be one "@" symbol 35 if (atPos == -1) { 36 return false 37 } 38 if (email.indexOf("@",atPos+1) != -1) { // and only one "@" symbol 39 return false 40 } 41 periodPos = email.indexOf(".",atPos) 42 if (periodPos == -1) { // and at least one "." after the "@" 43 return false 44 } 45 if (periodPos+3 > email.length) { // must be at least 2 characters after the "." 46 return false 47 } 48 return true 49 } 50 51// Check Email Address Is Valid 52 { 53 if (validEmail(f.EmailAddress.value) == false) 54 {errormsg = errormsg + '* Please enter a valid email Address.\n';} 55 } 56 57 58// If All Fields are OK - Process or Popup Alert 59 if (errormsg.length == 0 ) 60 { 61 return true; 62 } 63 else 64 { 65 alert(errormsg); 66 return false; 67 } 68 } 69 70//-->
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.