function CheckForm(theForm) {
	
	 if (theForm.Name.value == "")
  {
    alert("You have not entered your name.");
    theForm.Name.focus();
    return (false);
  }

  
  if (theForm.Email.value == "")
  {
    alert("You have not entered your email address.");
    theForm.Email.focus();
    return (false);
  }

invalidChars = " /:,;"
  for (i=0; i<invalidChars.length; i++)
  	badChar = invalidChars.charAt(i)
  	if (theForm.Email.value.indexOf(badChar,0) > -1) {
  		alert ('email address contains invalid chars.');
  		return (false);
  		}
  		
  atPos = theForm.Email.value.indexOf("@",1)
  if (atPos == -1) {
  	alert ('email address doesn\'t contain \"@\" ');
  	return (false);
  	}
  	
  if (theForm.Email.value.indexOf("@",atPos+1) >	 -1) {
 	alert ('email address contains 2 \"@s\" ');
  	return (false);
  	}
  	
  	periodPos = theForm.Email.value.indexOf(".",atPos)
  	if (periodPos == -1) {
  		alert ('email address doesn\'t contain \".\" ');
		return (false);
  	}
  
  if (periodPos +3 > theForm.Email.value.length) {
		alert ('email address incorrect. ');
		return (false);
	}


 
   if (theForm.comments.value == "")
  {
    alert("You have not entered your comments.");
    theForm.comments.focus();
    return (false);
  }


return (true);
}


