function checkSubmit()
{   

   // check to see if email address field is of valid syntax
   substremail = document.frmAnalysis.email.value.split("@");
   if (substremail.length > 1)
   {
      index = substremail[1].indexOf(".");
      if (index == -1)
      {
         alert("Please enter your full email address");
         document.frmAnalysis.email.focus();
	     document.frmAnalysis.email.select();
         return false;
      }
   }  
   else
   {
      alert("Please enter your full email address");
      document.frmAnalysis.email.focus();
	  document.frmAnalysis.email.select();
      return false;
   }
   
	//check to see if name is filled out and valid
	if (document.frmAnalysis.name.value=="")
	{ 
       	alert("Please enter your name \(letters only\)");
	   	document.frmAnalysis.name.focus();
	   	document.frmAnalysis.name.select();
	   	return false;
	}
	
	//check to see if address has been filled out
    if (document.frmAnalysis.address.value=="")
	{
		alert("Please enter your address");
		document.frmAnalysis.address.focus();
		document.frmAnalysis.address.select();
		return false;
	}
	
	//check to see if city has been filled out
    if (document.frmAnalysis.city.value=="")
	{
		alert("Please enter your city");
		document.frmAnalysis.city.focus();
		document.frmAnalysis.city.select();
		return false;
	}
	
	//check to see if state has been filled out
    if (document.frmAnalysis.state.value=="")
	{
		alert("Please enter your state");
		document.frmAnalysis.state.focus();
		document.frmAnalysis.state.select();
		return false;
	}
	
	//check to see if zip has been filled out
    if (document.frmAnalysis.zip.value=="")
	{
		alert("Please enter your zip");
		document.frmAnalysis.zip.focus();
		document.frmAnalysis.zip.select();
		return false;
	}
	
	//check to see if home telephone has been filled out
    if (document.frmAnalysis.home_phone.value=="")
	{
		alert("Please enter your home telephone number");
		document.frmAnalysis.home_phone.focus();
		document.frmAnalysis.home_phone.select();
		return false;
	}
	
	//check to see if work telephone has been filled out
    if (document.frmAnalysis.work_phone.value=="")
	{
		alert("Please enter your work telephone number");
		document.frmAnalysis.work_phone.focus();
		document.frmAnalysis.work_phone.select();
		return false;
	}
	
	//check to see if date has been entered
    if (document.frmAnalysis.date.value=="")
	{
		alert("Please enter the desired appointment date");
		document.frmAnalysis.date.focus();
		document.frmAnalysis.date.select();
		return false;
	}	
    else
	{
		return true;
    }
}