1// JavaScript Document 2function checkvalidation(){ 3 if(document.form1.name.value==""){ 4 alert("Please Fill Your Name!"); 5 document.form1.name.focus(); 6 return false; 7 } 8 if(document.form1.phone.value=="") 9 { 10 alert("Please Fill Your Contact no.!"); 11 document.form1.phone.focus(); 12 return false; 13 } 14 if(isNaN(document.form1.phone.value)) 15 { 16 alert("Please Enter valid Contact no.!"); 17 document.form1.phone.value=''; 18 document.form1.phone.focus(); 19 return false; 20 } 21 if (document.form1.phone.value.length<10) 22 { 23 alert("Enter Ten Digits Contact NO!"); 24 document.form1.phone.value=''; 25 document.form1.phone.focus(); 26 return false; 27 } 28 if(document.form1.email.value=="") 29 { 30 alert("Please Fill Your Email!"); 31 document.form1.email.focus(); 32 return false; 33 } 34 if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.form1.email.value))) 35 { 36 alert("Pls Enter the Correct Email!"); 37 document.form1.email.valuee=""; 38 document.form1.email.focus(); 39 return false; 40 } 41 if(document.form1.message.value==""){ 42 alert("Please Fill Your Query!"); 43 document.form1.message.focus(); 44 return false; 45 } 46 }
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.