1function password(pass, field) { 2 if(pass.length < 6) { 3 document.getElementById(field).innerHTML = "* Password should be at least 6 characters"; 4 return false; 5 } 6 document.getElementById(field).innerHTML = ''; 7 //alert("password test success!"); 8 return true; 9} 10 11function username(user) { 12 if(user.length < 3) { 13 document.getElementById('userError').innerHTML = "Username should be at least 3 characters"; 14 return false; 15 } 16 if(!/^[A-z0-9._%+-]+@[A-z0-9.-]+\.[A-z]{2,4}$/.test(user) ) { 17 document.getElementById('userError').innerHTML = "Invalid username! - js"; 18 return false; 19 } 20 document.getElementById('userError').innerHTML = ''; 21 return true; 22} 23 24function mail(email) { 25 if(email.length < 5){ 26 document.getElementById('emailError').innerHTML = "Invalid email address!"; 27 return false; 28 } 29 if(!/^[A-z0-9._%+-]+@[A-z0-9.-]+\.[A-z]{2,4}$/.test(email)) { 30 document.getElementById('emailError').innerHTML = "Invalid email address! - js"; 31 return false; 32 } 33 //alert("I made it this far"); 34 return true; 35} 36 37function checkpass(pass, repass) { 38 if(pass !== repass) { 39 document.getElementById('repassError').innerHTML = "Passwords do not match!" 40 return false; 41 } 42 return true; 43}
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.