function validate(theForm) {
 if(theForm.name.value == "") {
  alert("Please Enter Name");
  theForm.name.focus();
  return false;
 }
 if(theForm.email.value == "") {
  alert("Enter your Email Id");
  theForm.email.focus();
  return false;
  }
   strEmail = theForm.email.value;
  if (strEmail.indexOf(".") == -1 || strEmail.indexOf("@") == -1)
  {
	alert("Please enter a valid email");
    theForm.email.focus();
	return false;
 }
 
    return true;
}
