<!--
function validatespam() {

	var x = document.form1.p_surname.value;
	var filter  = /\W/;
	if (filter.test(x)) alert('Please remove inappropriate symbols');
	else validate();}


function validate() {

	var x = document.form1.p_email.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(x)) validatex();
	else alert('Please check you have entered a valid email address');}
	
function validatex() {

	empty = new Boolean;
	empty = false;

    if (document.form1.p_surname.value == '') { empty = true; } 
	if (document.form1.p_name.value == '') { empty = true; } 
	if (document.form1.p_message.value == '') { empty = true; } 
		
	if (empty == true) {
	alert('Please complete all Mandatory fields\nmarked with a * in the form');
	return false;
	} else {
	document.form1.submit();
	return true;
	}
	
}

function validatedis() {
	if (
	document.form1.read.checked == false) 
	{
		alert ('Please Check the box to say you\'ve read and understood the Conditions of Offer of assistance and agree to abide by these conditions');
		return false;
	} else { validatedis1()	
		return true;
	}
}

function validatedis1() {

	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)) validatedis2();
	else alert('Please check you have entered a valid email address');}

function validatedis2() {

	empty = new Boolean;
	empty = false;

    if (document.form1.clubname.value == '') { empty = true; } 
	if (document.form1.title.value == '') { empty = true; } 
	if (document.form1.surname.value == '') { empty = true; } 
	if (document.form1.forenames.value == '') { empty = true; } 
	if (document.form1.homeaddress.value == '') { empty = true; }
	if (document.form1.telnumber.value == '') { empty = true; } 
	
    if (document.form1.whatdes.value == '') { empty = true; }
    if (document.form1.when.value == '') { empty = true; } 
    if (document.form1.where.value == '') { empty = true; } 
	

	if (empty == true) {
	alert('Please complete all Mandatory fields\nmarked with a * in Sections 1 and 2 of this form');
	return false;
	} else { valdrop()	
		return true;
	}
}

function valdrop(){	
	  if ( document.form1.what.selectedIndex == 0 )
    {
        alert ( 'Please complete all Mandatory fields\nmarked with a * in Section 2 of this form');
        valid = false;
		} else { valbutton()	
		return true;
    }
}

function valbutton() {

myOption = -1;
for (i=0; i<document.form1.fundingcharity.length; i++) {
if (document.form1.fundingcharity[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingnatass.length; i++) {
if (document.form1.fundingnatass[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundinggovbody.length; i++) {
if (document.form1.fundinggovbody[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingedgrant.length; i++) {
if (document.form1.fundingedgrant[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingssclot.length; i++) {
if (document.form1.fundingssclot[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingcase.length; i++) {
if (document.form1.fundingcase[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingown.length; i++) {
if (document.form1.fundingown[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingother.length; i++) {
if (document.form1.fundingother[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert('Please complete all Mandatory fields\nmarked with a * in Section 5 of this form');
return false;
} else { valbuttoncpp()	
		return true;
	}
}

function valbuttoncpp() {

myOption = -1;
for (i=0; i<document.form1.childprotection.length; i++) {
if (document.form1.childprotection[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert('Please confirm whether or not your club has an official Child and/or Vulnerable Adult Protection Policy');
return false;
}

{
	document.form1.submit();
	return true;
	}
}  

function validateexcel() {
	if (
	document.form1.read.checked == false) 
	{
		alert ('Please Check the box to say you\'ve read and understood the Conditions of Offer of assistance and agree to abide by these conditions');
		return false;
	} else { validateexcel1()	
		return true;
	}
}

function validateexcel1() {

	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)) validateexcel2();
	else alert('Please check you have entered a valid email address');}

function validateexcel2() {

	empty = new Boolean;
	empty = false;

    if (document.form1.clubname.value == '') { empty = true; } 
	if (document.form1.title.value == '') { empty = true; } 
	if (document.form1.surname.value == '') { empty = true; } 
	if (document.form1.forenames.value == '') { empty = true; } 
	if (document.form1.homeaddress.value == '') { empty = true; } 
	if (document.form1.telnumber.value == '') { empty = true; } 
	
    if (document.form1.nomfullname.value == '') { empty = true; } 
    if (document.form1.nomclub.value == '') { empty = true; } 
    if (document.form1.nomselected.value == '') { empty = true; } 
	if (document.form1.nomcomp.value == '') { empty = true; } 
	if (document.form1.nomvenue.value == '') { empty = true; } 
    if (document.form1.nomdates.value == '') { empty = true; } 

    if (document.form1.costsaccommodation.value == '') { empty = true; } 
    if (document.form1.coststravel.value == '') { empty = true; } 
    if (document.form1.costsmiles.value == '') { empty = true; } 
	if (document.form1.costsmeals.value == '') { empty = true; } 
	if (document.form1.coststraining.value == '') { empty = true; } 

	if (empty == true) {
	alert('Please complete all Mandatory fields\nmarked with a * in Sections 1, 2 and 3 of this form');
	return false;
	} else { valbutton1()	
		return true;
	}
}

function valbutton1() {

myOption = -1;
for (i=0; i<document.form1.fundingcharity.length; i++) {
if (document.form1.fundingcharity[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingnatass.length; i++) {
if (document.form1.fundingnatass[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundinggovbody.length; i++) {
if (document.form1.fundinggovbody[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingedgrant.length; i++) {
if (document.form1.fundingedgrant[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingssclot.length; i++) {
if (document.form1.fundingssclot[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingcase.length; i++) {
if (document.form1.fundingcase[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingtap.length; i++) {
if (document.form1.fundingtap[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingown.length; i++) {
if (document.form1.fundingown[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingother.length; i++) {
if (document.form1.fundingother[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert('Please complete all Mandatory fields\nmarked with a * in Section 4 of this form');
return false;
} else { valbuttoncpp()	
		return true;
	}
}

function valbuttoncpp() {

myOption = -1;
for (i=0; i<document.form1.childprotection.length; i++) {
if (document.form1.childprotection[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert('Please confirm whether or not your club has an official Child and/or Vulnerable Adult Protection Policy');
return false;
}

{
	document.form1.submit();
	return true;
	}
} 

function validatestart() {
	if (
	document.form1.read.checked == false) 
	{
		alert ('Please Check the box to say you\'ve read and understood the Conditions of Offer of assistance and agree to abide by these conditions');
		return false;
	} else { validatestart1()	
		return true;
	}
}

function validatestart1() {

	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)) validatestart2();
	else alert('Please check you have entered a valid email address');}

function validatestart2() {

	empty = new Boolean;
	empty = false;

    if (document.form1.clubname.value == '') { empty = true; } 
	if (document.form1.dateformed.value == '') { empty = true; } 
	if (document.form1.venue.value == '') { empty = true; } 
	if (document.form1.position.value == '') { empty = true; } 
	if (document.form1.title.value == '') { empty = true; } 
	if (document.form1.surname.value == '') { empty = true; } 
	if (document.form1.forenames.value == '') { empty = true; }
	if (document.form1.homeaddress.value == '') { empty = true; } 
	if (document.form1.telnumber.value == '') { empty = true; } 
	
    if (document.form1.membersjunior.value == '') { empty = true; } 
    if (document.form1.membersadult.value == '') { empty = true; } 
    if (document.form1.membersjuniorfee.value == '') { empty = true; }
	if (document.form1.membersadultfee.value == '') { empty = true; } 
	
    if (document.form1.spenddes.value == '') { empty = true; }
    if (document.form1.spendcost.value == '') { empty = true; } 
	
	if (document.form1.commposition1.value == '') { empty = true; } 
	if (document.form1.commtitle1.value == '') { empty = true; } 
	if (document.form1.commsurname1.value == '') { empty = true; } 
	if (document.form1.commforenames1.value == '') { empty = true; } 
	if (document.form1.commaddress1.value == '') { empty = true; } 
	if (document.form1.commtelnumber1.value == '') { empty = true; } 

	if (document.form1.commposition2.value == '') { empty = true; } 
	if (document.form1.commtitle2.value == '') { empty = true; } 
	if (document.form1.commsurname2.value == '') { empty = true; } 
	if (document.form1.commforenames2.value == '') { empty = true; } 
	if (document.form1.commaddress2.value == '') { empty = true; } 
	if (document.form1.commtelnumber2.value == '') { empty = true; } 
    
	if (empty == true) {
	alert('Please complete all Mandatory fields\nmarked with a * in this form');
	return false;
	} else { valbuttoncpp()	
		return true;
	}
}

function valbuttoncpp() {

myOption = -1;
for (i=0; i<document.form1.childprotection.length; i++) {
if (document.form1.childprotection[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert('Please confirm whether or not your club has an official Child and/or Vulnerable Adult Protection Policy');
return false;
}

{
	document.form1.submit();
	return true;
	}
} 

function validatetrav() {
	if (
	document.form1.read.checked == false) 
	{
		alert ('Please Check the box to say you\'ve read and understood the Conditions of Offer of assistance and agree to abide by these conditions');
		return false;
	} else { validatetrav1()	
		return true;
	}
}

function validatetrav1() {

	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)) validatetrav2();
	else alert('Please check you have entered a valid email address');}

function validatetrav2() {

	empty = new Boolean;
	empty = false;

    if (document.form1.clubname.value == '') { empty = true; } 
	if (document.form1.title.value == '') { empty = true; } 
	if (document.form1.surname.value == '') { empty = true; } 
	if (document.form1.forenames.value == '') { empty = true; } 
	if (document.form1.homeaddress.value == '') { empty = true; } 
	if (document.form1.telnumber.value == '') { empty = true; } 
	
    if (document.form1.eventname.value == '') { empty = true; } 
    if (document.form1.eventstatus.value == '') { empty = true; } 
    if (document.form1.eventvenue.value == '') { empty = true; } 
	if (document.form1.eventadults.value == '') { empty = true; } 
	if (document.form1.eventjuniors.value == '') { empty = true; } 
	if (document.form1.eventtravel.value == '') { empty = true; }
    if (document.form1.eventdate.value == '') { empty = true; } 

    if (document.form1.costaccommodation.value == '') { empty = true; } 
    if (document.form1.costmode.value == '') { empty = true; } 
    if (document.form1.costmileage.value == '') { empty = true; } 
	if (document.form1.costfood.value == '') { empty = true; } 
	if (document.form1.costtransport.value == '') { empty = true; } 

	if (empty == true) {
	alert('Please complete all Mandatory fields\nmarked with a * in Sections 1, 2 and 3 of this form');
	return false;
	} else { valbutton2()	
		return true;
	}
}

function valbutton2() {

myOption = -1;
for (i=0; i<document.form1.fundingcharity.length; i++) {
if (document.form1.fundingcharity[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingnatass.length; i++) {
if (document.form1.fundingnatass[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundinggovbody.length; i++) {
if (document.form1.fundinggovbody[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingedgrant.length; i++) {
if (document.form1.fundingedgrant[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingssclot.length; i++) {
if (document.form1.fundingssclot[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingcase.length; i++) {
if (document.form1.fundingcase[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingtap.length; i++) {
if (document.form1.fundingtap[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingown.length; i++) {
if (document.form1.fundingown[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingother.length; i++) {
if (document.form1.fundingother[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert('Please complete all Mandatory fields\nmarked with a * in Section 4 of this form');
return false;
} else { valbuttoncpp()	
		return true;
	}
}

function valbuttoncpp() {

myOption = -1;
for (i=0; i<document.form1.childprotection.length; i++) {
if (document.form1.childprotection[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert('Please confirm whether or not your club has an official Child and/or Vulnerable Adult Protection Policy');
return false;
}

{
	document.form1.submit();
	return true;
	}
} 

function validatecoach() {
	if (
	document.form1.read.checked == false) 
	{
		alert ('Please Check the box to say you\'ve read and understood the Conditions of Offer of assistance and agree to abide by these conditions');
		return false;
	} else { validatecoach1()	
		return true;
	}
}

function validatecoach1() {

	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)) validatecoach2();
	else alert('Please check you have entered a valid email address');}

function validatecoach2() {

	empty = new Boolean;
	empty = false;

    if (document.form1.clubname.value == '') { empty = true; } 
	if (document.form1.title.value == '') { empty = true; } 
	if (document.form1.surname.value == '') { empty = true; } 
	if (document.form1.forenames.value == '') { empty = true; } 
	if (document.form1.homeaddress.value == '') { empty = true; } 
	if (document.form1.telnumber.value == '') { empty = true; } 
	
    if (document.form1.coursename.value == '') { empty = true; } 
    if (document.form1.coursebody.value == '') { empty = true; } 
    if (document.form1.coursevenue.value == '') { empty = true; } 
	if (document.form1.courseadults.value == '') { empty = true; } 
	if (document.form1.coursejuniors.value == '') { empty = true; } 
	if (document.form1.coursetravel.value == '') { empty = true; }
    if (document.form1.coursedate.value == '') { empty = true; } 

    if (document.form1.costaccommodation.value == '') { empty = true; } 
    if (document.form1.costmode.value == '') { empty = true; } 
    if (document.form1.costmileage.value == '') { empty = true; } 
	if (document.form1.costfood.value == '') { empty = true; } 
	if (document.form1.costtransport.value == '') { empty = true; }
	if (document.form1.costadult.value == '') { empty = true; }
	if (document.form1.costjunior.value == '') { empty = true; }
	if (document.form1.costtotal.value == '') { empty = true; }

	if (empty == true) {
	alert('Please complete all Mandatory fields\nmarked with a * in Sections 1, 2 and 3 of this form');
	return false;
	} else { valbutton3()	
		return true;
	}
}

function valbutton3() {

myOption = -1;
for (i=0; i<document.form1.fundingcharity.length; i++) {
if (document.form1.fundingcharity[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingnatass.length; i++) {
if (document.form1.fundingnatass[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundinggovbody.length; i++) {
if (document.form1.fundinggovbody[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingedgrant.length; i++) {
if (document.form1.fundingedgrant[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingssclot.length; i++) {
if (document.form1.fundingssclot[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingcase.length; i++) {
if (document.form1.fundingcase[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingtap.length; i++) {
if (document.form1.fundingtap[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingown.length; i++) {
if (document.form1.fundingown[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingother.length; i++) {
if (document.form1.fundingother[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert('Please complete all Mandatory fields\nmarked with a * in Section 4 of this form');
return false;
}

{
	document.form1.submit();
	return true;
	}
} 

function validateapp() {

	var x = document.form1.p_secretaryemail.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(x)) validatexapp();
	else alert('Please check you have entered a valid email address');}
	
	
function validatexapp() {

	empty = new Boolean;
	empty = false;

    if (document.form1.p_clubname.value == '') { empty = true; } 
	if (document.form1.p_numadults.value == '') { empty = true; } 
	if (document.form1.p_numjuniors.value == '') { empty = true; }
	if (document.form1.p_numdisabled.value == '') { empty = true; } 
	if (document.form1.p_sport.value == '') { empty = true; } 
	if (document.form1.p_where.value == '') { empty = true; }	
	if (document.form1.p_when.value == '') { empty = true; } 	
	if (document.form1.p_secretaryname.value == '') { empty = true; }	
	if (document.form1.p_secretarytelephone.value == '') { empty = true; }	
	if (document.form1.p_secretaryaddress.value == '') { empty = true; }	
	if (document.form1.p_contactname.value == '') { empty = true; } 
	if (document.form1.p_contacttelephone.value == '') { empty = true; }
	if (document.form1.p_contactemail.value == '') { empty = true; }
		
	if (empty == true) {
	alert('Please complete all Mandatory fields\nmarked with a * in the form');
	return false;
	} else {
	document.form1.submit();
	return true;
	}
	
}

function validateequip() {
	if (
	document.form1.read.checked == false) 
	{
		alert ('Please Check the box to say you\'ve read and understood the Conditions of Offer of assistance and agree to abide by these conditions');
		return false;
	} else { validateequip1()	
		return true;
	}
}

function validateequip1() {

	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)) validateequip2();
	else alert('Please check you have entered a valid email address');}

function validateequip2() {

	empty = new Boolean;
	empty = false;

    if (document.form1.clubname.value == '') { empty = true; } 
	if (document.form1.title.value == '') { empty = true; } 
	if (document.form1.surname.value == '') { empty = true; } 
	if (document.form1.forenames.value == '') { empty = true; } 
	if (document.form1.address.value == '') { empty = true; }
	if (document.form1.telnumber.value == '') { empty = true; } 
	
    if (document.form1.item1.value == '') { empty = true; }
    if (document.form1.cost1.value == '') { empty = true; } 
    if (document.form1.supportinfo.value == '') { empty = true; } 
	

	if (empty == true) {
	alert('Please complete all Mandatory fields\nmarked with a * in Sections 1,2 and 3 of this form');
	return false;
	} else { valbutton()	
		return true;
	}
}

function valbutton() {

myOption = -1;
for (i=0; i<document.form1.fundingcharity.length; i++) {
if (document.form1.fundingcharity[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingnatass.length; i++) {
if (document.form1.fundingnatass[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundinggovbody.length; i++) {
if (document.form1.fundinggovbody[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingedgrant.length; i++) {
if (document.form1.fundingedgrant[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingssclot.length; i++) {
if (document.form1.fundingssclot[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingcase.length; i++) {
if (document.form1.fundingcase[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingown.length; i++) {
if (document.form1.fundingown[i].checked) {
myOption = i;
}
}
myOption = -1;
for (i=0; i<document.form1.fundingother.length; i++) {
if (document.form1.fundingother[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert('Please complete all Mandatory fields\nmarked with a * in Section 4 of this form');
return false;
} else { valbuttoncpp()	
		return true;
	}
}

function valbuttoncpp() {


myOption = -1;
for (i=0; i<document.form1.childprotection.length; i++) {
if (document.form1.childprotection[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert('Please confirm whether or not your club has an official Child and/or Vulnerable Adult Protection Policy');
return false;
}


{
	document.form1.submit();
	return true;
	}
} 
//-->