<!---->
function validator(){
  var theForm=document.form2;

  if (theForm.fname.value == "")
  {
    alert("Please Enter The First Name ");
    theForm.fname.focus();
    return (false);
  }


    if (theForm.lname.value == "")
  {
    alert("Please Enter The Last Name ");
    theForm.lname.focus();
    return (false);
  }


     if (theForm.company.value == "")
  {
    alert("Please Enter The Company Name ");
    theForm.company.focus();
    return (false);
  }
    if (theForm.position.value == "" )
  {
    alert("Please Enter The Position ");
    theForm.position.focus();
    return (false);
  }
   if (theForm.tel.value == "")
  {
    alert("Please Enter a Telephone Number");
    theForm.tel.focus();
    return (false);
  }



     if (theForm.email.value == "" )
  {
    alert("Please Enter Your E_mail ");
    theForm.email.focus();
    return (false);
  }

    if(theForm.email.value != ""){
   if ( !isEmail(theForm.email.value) )
  {
    alert("Please enter a valid Email for the Email Address Field.");
    theForm.email.focus();
    return (false);
  }}


    if (theForm.address.value == "")
  {
    alert("Please fill the Address Field");
    theForm.address.focus();
    return (false);
  }

    if (theForm.city.value == "" )
  {
    alert("Please Enter The City Name ");
    theForm.city.focus();
    return (false);
  }

    if (theForm.country.value == "" )
  {
    alert("Please Enter The Country Name ");
    theForm.country.focus();
    return (false);
  }

  if (theForm.biography1.value == "" )
  {
    alert("Please Enter Professional Biography (100 words) ");
    theForm.biography1.focus();
    return (false);
  }

theForm.submit();
return (true);
}




<!---->
function validator1(){
  var theForm=document.form2;

   if (theForm.password.value == "")
  {
    alert("Please Enter The Password ");
    theForm.password.focus();
    return (false);
  }
  
  
  if (theForm.fname.value == "")
  {
    alert("Please Enter The First Name ");
    theForm.fname.focus();
    return (false);
  }


    if (theForm.lname.value == "")
  {
    alert("Please Enter The Last Name ");
    theForm.lname.focus();
    return (false);
  }


     if (theForm.company.value == "")
  {
    alert("Please Enter The Company Name ");
    theForm.company.focus();
    return (false);
  }
    if (theForm.position.value == "" )
  {
    alert("Please Enter The Position ");
    theForm.position.focus();
    return (false);
  }
   if (theForm.tel.value == "")
  {
    alert("Please Enter a Telephone Number");
    theForm.tel.focus();
    return (false);
  }



     if (theForm.email.value == "" )
  {
    alert("Please Enter Your E_mail ");
    theForm.email.focus();
    return (false);
  }

    if(theForm.email.value != ""){
   if ( !isEmail(theForm.email.value) )
  {
    alert("Please enter a valid Email for the Email Address Field.");
    theForm.email.focus();
    return (false);
  }}


    if (theForm.address.value == "")
  {
    alert("Please fill the Address Field");
    theForm.address.focus();
    return (false);
  }

    if (theForm.city.value == "" )
  {
    alert("Please Enter The City Name ");
    theForm.city.focus();
    return (false);
  }


if (theForm.address1.value == ""){
    alert("Please Enter the address of permanent residence  ");
    theForm.address1.focus();
    return (false);
}

if (theForm.city1.value == ""){
    alert("Please Enter The city Name ");
    theForm.city1.focus();
    return (false);
  }

      if (theForm.bplace1.value == "")
  {
    alert("Please Enter The Place of Birth");
    theForm.bplace1.focus();
    return (false);
  }
    if (theForm.bdate1.value == "" )
  {
    alert("Please Enter Date of Birth ");
    theForm.bdate1.focus();
    return (false);
  }

    if (theForm.mstatus1.value == "" )
  {
    alert("Please Enter The Marital Status ");
    theForm.mstatus1.focus();
    return (false);
  }


     if (theForm.mother1.value == "" )
  {
    alert("Please Enter The Mother's Name ");
    theForm.mother1.focus();
    return (false);
  }


    if (theForm.father1.value == "")
  {
    alert("Please Enter the Father's Name");
    theForm.father1.focus();
    return (false);
  }

    if (theForm.grandfather1.value == "" )
  {
    alert("Please Enter The Grandfather's Name ");
    theForm.grandfather1.focus();
    return (false);
  }



  if (theForm.biography1.value == "" )
  {
    alert("Please Enter Professional Biography (100 words) ");
    theForm.biography1.focus();
    return (false);
  }

theForm.submit();
return (true);
}

