function ValidateForm()
{
var i, tcheck;
if (document.Form1.FirstName.value=="") 
{
   alert("Sorry, Please fill in First Name.");
   document.Form1.FirstName.focus();return false;
}
if (document.Form1.LastName.value=="") 
{
   alert("Sorry, Please fill in Last Name.");
   document.Form1.LastName.focus();return false;
}
var dateStr = document.Form1.Email.value;
var datePat = /^([A-Za-z0-9_.-]*)(\@)([A-Za-z0-9_-]*)(\.)(([A-Za-z0-9_-]{2})|([A-Za-z0-9_.-]*)\4([A-Za-z0-9_-]{2,3}))$/;
//if (document.Form1.Email.value!="") 
//   {
//    var matchArray = dateStr.match(datePat);
//   if (matchArray == null) 
//	 {
//      alert(dateStr + " Email is not in a valid format.")
//      document.Form1.Email.focus();
//	  return false;
//     }
//    else 
//	 {
//      return true;
//     }
//   }
//else
//   {
//    alert("Sorry, your email address is not valid.");
//    document.Form1.Email.focus();
//    return false;
//   }
  return true;
}	

