1function formValidator(){ 2 // Make quick references to our fields 3// var formSubject = document.getElementById('formSubject'); 4 var fullName = document.getElementById('fullName'); 5 var emailID = document.getElementById('emailID'); 6 var city = document.getElementById('city'); 7 var transfer = document.getElementById('transfer'); 8 var mobile = document.getElementById('mobile'); 9// var country = document.getElementById('country'); 10// var phone = document.getElementById('phone'); 11// var fax = document.getElementById('fax'); 12// var message = document.getElementById('message'); 13 var security_code = document.getElementById('security_code'); 14 15 // Check each input in the order that it appears in the form! 16// if(isEmpty(formSubject, "Please enter the subject")){ 17 if(isEmpty(fullName, "Please enter your name")){ 18 if(emailValidator(emailID, "Please enter your valid Email address")){ 19 if(isEmpty(city, "Please enter your city")){ 20 if(isEmpty(transfer, "Please enter city/town to where shifting is to be done")){ 21 if(isEmpty(mobile, "Please enter your mobile no.")){ 22 if(isNumeric(mobile, "Please enter your valid 10 digit mobile no.")){ 23 if(lengthRestriction(mobile, 10, 10, "Please enter your valid 10 digit mobile no.")){ 24 if(stringPosAllowed(mobile, 0, 1, "0", "mobile no.")){ 25// if(isEmpty(country, "Please enter your country")){ 26// if(isEmpty(phone, "Please enter your phone no.")){ 27// if(isEmpty(fax, "Please enter your fax no.")){ 28// if(isEmpty(message, "Please enter details")){ 29 if(isEmpty(security_code, "Please enter security code for human verification")){ 30 return true; 31 }}}}}}}}} 32 return false; 33} 34
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.