if (y.charAt(0)!="9"||y.charAt(0)!="8"||y.charAt(0)!="7"||y.charAt(0)!="6") { alert("it should with 9 or 8 or 7 or 6"); theForm.txtPhone.focus(); return false }
var y = theForm.txtPhone.value; if (theForm.txtPhone.value == "") { alert("Enter phone number"); theForm.txtPhone.focus(); return false; } if(isNaN(y)||y.indexOf(" ")!=-1) { alert("Enter numeric value"); theForm.txtPhone.focus(); return false; } if (y.length != 10) { alert("enter 10 characters"); theForm.txtPhone.focus(); return false; } if (y.charAt(0)!="9"||y.charAt(0)!="8"||y.charAt(0)!="7"||y.charAt(0)!="6") { alert("it should with 9 or 8 or 7 or 6"); theForm.txtPhone.focus(); return false }
if (y.charAt(0)!="9" && y.charAt(0)!="8" && y.charAt(0)!="7" && y.charAt(0)!="6")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)