function echeck(str) { var at="@" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ alert("Invalid E-mail ID") return false } if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){ alert("Invalid E-mail ID") return false } if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){ alert("Invalid E-mail ID") return false } if (str.indexOf(at,(lat+1))!=-1){ alert("Invalid E-mail ID") return false } if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){ alert("Invalid E-mail ID") return false } if (str.indexOf(dot,(lat+2))==-1){ alert("Invalid E-mail ID") return false } if (str.indexOf(" ")!=-1){ alert("Invalid E-mail ID") return false } return true } function ValidateForm(){ var cnt = -1; if ((document.form1.email.value==null)||(document.form1.email.value=="")){ alert("Please Enter your Email"); document.form1.email.focus(); return false; } if (echeck(document.form1.email.value)==false){ document.form1.email.value=""; document.form1.email.focus(); return false; } if ((document.form1.name.value == "") || (document.form1.name.value==null)){ alert("Please Enter your Name"); document.form1.name.focus(); return false; } for (var i=0; i < document.form1.RateService.length; i++) { if (document.form1.RateService[i].checked) {cnt = i; i = document.form1.RateService.length;} } if (cnt > -1); else { alert("Please select from rate the service options") ; return false; } document.form1.submit(); }
Information Technology
 Home  |  Services  |  Support  |  News & Pubs  | About Us  |  Projects  |  Forms 

Computing Labs & Classroom Technology

Comments

Software Lists | Hours | Employment | Printing |
Comments | Contact Info/Staff & Consultants | Wireless Printing |

Name:
Email Address
 
How would you rate the service you received?





 
 

Updated: 10/26/2009 1:16:08 PM