function CheckForm(theForm) {
  
  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.Name.value == "")
  {
    alert("You have not entered your name.");
    theForm.Name.focus();
    return (false);
  }

  
  

check_email = confirm(" Is your email address, \"" +  theForm.Email.value + "\" correct?")
  if (check_email != "0")
  {
    theForm.submit.value="Processing...";
    theForm.submit.disabled = true;
    return (true);
  }
  else
  {
    theForm.Email.focus();
    return (false);
  }

return (true);
}

