<!--
function validateForm() {
if (document.form1.yourName.value == "") {
		alert("Please enter name.");
   document.form1.yourName.focus( );
   return false;
   }
 if (document.form1.Topic.value == '1'){
 	alert('Please select a topic');
 	return false;
 	}
var emailID=document.form1.emailID
if ((emailID.value==null)||(emailID.value=="")){
		alert("Please enter Email ID.")
		emailID.focus()
		return false;
	}
if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false;
	}

}
function validateForm2() {
if (document.form2.FName.value == "") {
		alert("Please enter first name.");
   document.form2.FName.focus( );
   return false;
   }
if (document.form2.LName.value == "") {
		alert("Please enter last name.");
   document.form2.LName.focus( );
   return false;
   }
var emailID=document.form2.emailID
if ((emailID.value==null)||(emailID.value=="")){
		alert("Please enter Email.")
		emailID.focus()
		return false;
	}
if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false;
	}
if (document.form2.vsecc.value == "") {
		alert("Please enter security code.");
   document.form2.vsecc.focus( );
   return false;
   }

}

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 validateFields() {
if (document.login.uname.value == "") {
	alert("Please enter username.");
   document.login.uname.focus( );
   return false;
   }
 if (document.login.passwd.value == "") {
	alert("Please enter password.");
   document.login.passwd.focus( );
   return false;
   }
 }
//-->