function validateform() {

/* Enquiry form - fleet_insurance_quotation.htm *******************************/
	
	if (document.URL.match("fleet_insurance_quotation.htm")) {
	
		if (document.commform.name.value == "") {
			window.alert ("Please tell us your name");
			document.commform.name.select();
			return false;
		}
		
		if (document.commform.email.value == "") {
			window.alert ("Please tell us your email address");
			document.commform.email.select();
			return false;
		}
		
		if (document.commform.phone.value == "") {
			window.alert ("Please tell us your telephone number");
			document.commform.phone.select();
			return false;
		}
		
		if (document.commform.details.value == "") {
			window.alert ("Please tell us about your requirements");
			document.commform.details.select();
			return false;
		}
	
	}
	
/* Claim form - fleetclaim2.htm  **********************************************/

// Misssing a check for policy number - do we need one?
	
	if (document.URL.match("fleetclaim2.htm")) {

		if (document.claimform.name.value == "") {
			window.alert ("Please enter your name");
			document.claimform.name.select();
			return false;
		}
		
		if (document.claimform.phone.value == "") {
			window.alert ("Please provide a contact telephone number");
			document.claimform.phone.select();
			return false;
		}
		if (document.claimform.email.value == "") {
			window.alert ("Please enter your email address so we can contact you");
			document.claimform.email.select();
			return false;
		}
		
		if (document.claimform.details.value == "") {
			window.alert ("Please give brief details");
			document.claimform.details.select();
			return false;
		}
	
	}
	
/* Contact form - fleetcontact2.htm *******************************************/

	if (document.URL.match("fleetcontact2.htm")) {
	
		if (document.contactform.name.value == "") {
			window.alert ("Please enter your name");
			document.contactform.name.select();
			return false;
		}
		
		if (document.contactform.phone.value == "") {
			window.alert ("Please provide a contact telephone number");
			document.contactform.phone.select();
			return false;
		}
		
		if (document.contactform.email.value == "") {
			window.alert ("Please enter your email address so we can contact you");
			document.contactform.email.select();
			return false;
		}
		
		if (document.contactform.details.value == "") {
			window.alert ("Please tell us how we can help you");
			document.contactform.details.select();
			return false;
		}
	
	}

/* Commercial enquiry - comm_enq.php ******************************************/

	if (document.URL.match("comm_enq.php")) {
	
		if (document.commform.name.value == "") {
			window.alert ("Please enter your name"); 
			document.commform.name.select();
			return false;
		}
		
		if (document.commform.email.value == "") {
			window.alert ("Please enter your email address so we can contact you"); 
			document.commform.email.select();
			return false;
		}
		
		if (document.commform.phone.value == "") {
			window.alert ("Please provide a contact telephone number"); 
			document.commform.phone.select();
			return false;
		}
		
		if (document.commform.details.value == "") {
			window.alert ("Please tell us how we can help you"); 
			document.commform.details.select();
			return false;
		}
	
	}

/* Contact page - contact_email.php *******************************************/

	if (document.URL.match("contact_email.php")) {
	
		if (document.contactform.name.value == "") {
			window.alert ("Please enter your name");
			document.contactform.name.select();
			return false;
		}
		
		if (document.contactform.phone.value == "") {
			window.alert ("Please provide a contact telephone number");
			document.contactform.phone.select();
			return false;
		}
		
		if (document.contactform.email.value == "") {
			window.alert ("Please enter your email address so we can contact you");
			document.contactform.email.select();
			return false;
		}
		
		if (document.contactform.details.value == "") {
			window.alert ("Please tell us how we can help you");
			document.contactform.details.select();
			return false;
		}
	
	}

/* Fleet quote request form (page 1) - fleetform1.php *************************/

	if (document.URL.match("fleetform1.php")) {
	
		if (document.fleetform1.ContactName.value == "") {
			window.alert ("Please complete company name");
			document.fleetform1.ContactName.select();
			return false;
		}
		
		if (document.fleetform1.Email.value == "") {
			window.alert ("Please fill in your email address email");
			document.fleetform1.Email.select();
			return false;
		}
		
		if (document.fleetform1.Telephone.value == "") {
			window.alert ("Please fill in your telephone number");
			document.fleetform1.Telephone.select();
			return false;
		}
		
		if (document.fleetform1.Occupation.value == "") {
			window.alert ("Please give us your company trade");
			document.fleetform1.Occupation.select();
			return false;
		}
		
		if (document.fleetform1.PostCode.value == "") {
			window.alert ("Please enter a your postcode");
			document.fleetform1.PostCode.select();
			return false;
		}
	
	}

/* Fleet quote request form (page 2) - fleetform2.php *************************/

	if (document.URL.match("fleetform2.php")) {

		if (document.fleetform2.Under25.value == "") {
			window.alert ("Please answer Under 25 question");
			return false;
		}
		if (document.fleetform2.LTerm.value == "") {
			window.alert ("Please answer Short Term Licence question");
			return false;
		}
		if (document.fleetform2.Disabilities.value == "") {
			window.alert ("Please answer Disabilities question");
			return false;
		}
		if (document.fleetform2.Convictions.value == "") {
			window.alert ("Please answer Convictions question");
			return false;
		}
		if (document.fleetform2.LTerm.value == "Yes")
		if (document.fleetform2.U25Name1.value == "") {
			window.alert ("Please give driver details including names");
			document.fleetform2.U25Name1.select();
			return false;
		}
		if (document.fleetform2.Under25.value == "Yes")
		if (document.fleetform2.U25Name1.value == "") {
			window.alert ("Please give driver details including names");
			document.fleetform2.U25Name1.select();
			return false;
		}
		
		if (document.fleetform2.Convictions.value == "Yes")
		if (document.fleetform2.ConvictionDriversName1.value == "") {
			window.alert ("Please give conviction details including names");
			document.fleetform2.ConvictionDriversName1.select();
			return false;
		}
	
	}

/* Fleet quote request form (page 3) - fleetform3.php *************************/

	if (document.URL.match("fleetform3.php")) {
		
		if (document.fleetform3.ClaimsCommunicated.value == "") {
			window.alert ("Please answer 'How you will provide the Information'");
			return false;
		}
	
		if (document.fleetform3.ClaimsCommunicated.value == "online")
		if (document.fleetform3.NoVeh1.value == "") {
			window.alert ("Please give full vehicle and claims details");
			return false;
		}
	
	}

/* Fleet quote request form (page 4) - fleetform4.php *************************/

	if (document.URL.match("fleetform4.php")) {
		
		if (document.fleetform4.ScheduleDelivery.value == "") {
			window.alert ("Please answer 'How you will provide the Information'");
			return false;
		}
		
		if (document.fleetform4.NoVehicles.value == "") {
			window.alert ("Please tell us how many vehicles you want to insure");
			document.fleetform4.NoVehicles.select();
			return false;
		}
		
		if (document.fleetform4.ScheduleDelivery.value == "online")
		if (document.fleetform4.Make1.value == "") {
			window.alert ("Please give details of your vehicles");
			document.fleetform4.Make1.select();
			return false;
		}
	}

/* End ************************************************************************/

}
