function submitIt(){

if (document.form1.ParticipantsName.value == "") {
       window.alert("Please enter the Participants Name")
	  document.form1.ParticipantsName.focus();
       return false;
 }
 if (document.form1.Address.value == "") {
       window.alert("Please enter your address")
	  document.form1.Address.focus();
       return false;
 }

if (document.form1.email.value=="" )
		{ 
		alert("Please enter an email address!");
		document.form1.email.focus();
                    return false; 
         } 
		 
	var x = document.form1.email.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(x)){
		alert('Please enter a valid email address');
		document.form1.email.focus();
		return false; 
	}
 
if (document.form1.Telephone.value == "") {
       window.alert("Please enter your tel no.")
	  document.form1.Telephone.focus();
       return false;
 }
 
if (document.form1.ParentGuardianMobile.value == "") {
       window.alert("Please enter the Parent/Guardian mobile.")
	  document.form1.ParentGuardianMobile.focus();
       return false;
 }
if (document.form1.ParentGuardianConsent.value == "") {
       window.alert("Please enter the Parent/Guardian name in the consent declaration.")
	  document.form1.ParentGuardianConsent.focus();
       return false;
 }	

if (document.form1.Allergy[0].checked == true) {
	if (document.form1.AllergyDetails.value == ""){
       window.alert("Please enter details of the allergy your child has.")
	  document.form1.AllergyDetails.focus();
       return false;
	}
 }	

if (document.form1.Medicine[0].checked == true) {
	if (document.form1.MedicineDetails.value == ""){
       window.alert("Please enter details of the medicine your child takes.")
	  document.form1.MedicineDetails.focus();
       return false;
	}
 }	
 
<!--This is for the terms and conditions-->
if (document.form1.check1.checked==false )
		{document.form1.TermsConditions.value="dontagree";} 
else
		{document.form1.TermsConditions.value="agree";}
		
if (document.form1.TermsConditions.value=="dontagree") { 
		alert("You must agree to the terms and conditions before you can continue");
                    return false; 
         }


return true;
}
