function validate(theform)	{
	if ( theform.forename.value=="" )	{
		alert("Please supply your first name");
		return false;
	}
	if ( theform.email.value.indexOf("@") <1 )	{
		alert("Please supply a valid email address");
		return false;
	}
	return true;
}
		
function requireAll(theform) {
	//availability radio button
	be_available_input = "";
	for (i=0;i<theform.be_available.length;i++) {
		if (theform.be_available[i].checked) {
			be_available_input = theform.be_available[i].value;
		}
	}
	if (be_available_input=="") {
		alert("Please fill in whether you will be available between July - December 2005");
		return false;
	}
	///////////////////////////
	
	//swim radio button
	swim_input = "";
	for (i=0;i<theform.swim.length;i++) {
		if (theform.swim[i].checked) {
			swim_input = theform.swim[i].value;
		}
	}
	if (swim_input=="") {
		alert("Please fill in whether you can swim or not");
		return false;
	}
	///////////////////////////
	
	//smoke radio button
	smoke_input = "";
	for (i=0;i<theform.smoke.length;i++) {
		if (theform.smoke[i].checked) {
			smoke_input = theform.smoke[i].value;
		}
	}
	if (smoke_input=="") {
		alert("Please fill in whether you smoke or not");
		return false;
	}
	///////////////////////////
	//medical conditions radio button
	medical_conditions_input = "";
	for (i=0;i<theform.medical_conditions.length;i++) {
		if (theform.medical_conditions[i].checked) {
			medical_conditions_input = theform.medical_conditions[i].value;
		}
	}
	if (medical_conditions_input=="") {
		alert("Please fill in whether you have any medical conditions or not");
		return false;
	}
	///////////////////////////
			
	//criminal record radio button
	criminal_record_input = "";
	for (i=0;i<theform.criminal_record.length;i++) {
		if (theform.criminal_record[i].checked) {
			criminal_record_input = theform.criminal_record[i].value;
		}
	}
	if (criminal_record_input=="") {
		alert("Please fill in whether you have a criminal record or not");
		return false;
	}
	///////////////////////////
			
	//been on tv radio button
	been_on_tv_input = "";
	for (i=0;i<theform.been_on_tv.length;i++) {
		if (theform.been_on_tv[i].checked) {
			been_on_tv_input = theform.been_on_tv[i].value;
		}
	}
	if (been_on_tv_input=="") {
		alert("Please fill in whether you have been on tv before");
		return false;
	}
	///////////////////////////
	//sending vhs radio button
	vhs_input = "";
	for (i=0;i<theform.vhs.length;i++) {
		if (theform.vhs[i].checked) {
			vhs_input = theform.vhs[i].value;
		}
	}
	if (vhs_input=="") {
		alert("Please confirm whether you will be sending in a VHS tape");
		return false;
	}
	///////////////////////////
	if (theform.forename.value=="") {
		alert("Please fill in your First name");
		return false;
	}
	if (theform.surname.value=="") {
		alert("Please fill in your Surname");
		return false;
	}
	if (theform.street.value=="") {
		alert("Please fill in your Street");
		return false;
	}
	if (theform.town.value=="") {
		alert("Please fill in your Town");
		return false;
	}
	if (theform.postcode.value=="") {
		alert("Please fill in your Postcode");
		return false;
	}
	if (theform.telephone.value=="") {
		alert("Please fill in your Telephone number");
		return false;
	}
	if (theform.email.value.indexOf("@") <1 ) {
		alert("Please supply a valid Email");
		return false;
	}
	if (theform.age.value=="") {
		alert("Please fill in your Age");
		return false;
	}

	if (theform.where_hear_about.value=="") {
		alert("Please fill in where you heard about us");
		return false;
	}
	if (theform.job.value=="" && theform.unemployed_routine.value=="") {
		alert("If you have a job, please fill in what you do.\nIf you are unemployed, please describe your daily routine");
		return false;
	}
	if (theform.spare_time.value=="") {
		alert("Please tell us what you do in your spare time");
		return false;
	}
	if (theform.education.value=="") {
		alert("Please fill in what Education/Qualifications you have");
		return false;
	}
	if (theform.travelled.value=="") {
		alert("Please fill in whether you have travelled or not");
		return false;
	}
	if (theform.change.value=="") {
		alert("Please fill in what you would change about your life");
		return false;
	}
	if (theform.passionate.value=="") {
		alert("Please fill in what you are most passionate about");
		return false;
	}
	if (theform.medical_conditions_explain.value=="" && medical_conditions_input=="yes") {
		alert("Please fill in what medical conditions you have");
		return false;
	}
	if (theform.friends_describe.value=="") {
		alert("Please fill in what your friends would say about you");
		return false;
	}
	if (theform.hardest_thing.value=="") {
		alert("Please fill in what you believe would be the hardest thing about being shipwrecked would be");
		return false;
	}
	if (theform.giving_up.value=="") {
		alert("Please fill in what you would be giving up to be shipwrecked");
		return false;
	}
	if (theform.why_think_shipwreck.value=="") {
		alert("Please fill in why you think we should shipwreck you");
		return false;
	}
	return true;

}