function checkAgentsForm(){		
	
	if (trim(document.agentsForm.companyName.value).length < 2){
		alert("Please enter the company name.");
		document.agentsForm.companyName.value = trim(document.agentsForm.companyName.value);
		document.agentsForm.companyName.focus();
		return false;
	}
	
	if (trim(document.agentsForm.city.value).length < 2){
		alert("Please enter the name of the city in which the head office is based.");
		document.agentsForm.city.value = trim(document.agentsForm.city.value);
		document.agentsForm.city.focus();
		return false;
	}
	
	if (trim(document.agentsForm.physicalAddress.value).length < 2){
		alert("Please enter the head office address.");
		document.agentsForm.physicalAddress.value = trim(document.agentsForm.physicalAddress.value);
		document.agentsForm.physicalAddress.focus();
		return false;
	}
	
	if (trim(document.agentsForm.areasCovered.value).length < 2){
		alert("Please specify which areas the company covers.");
		document.agentsForm.areasCovered.value = trim(document.agentsForm.areasCovered.value);
		document.agentsForm.areasCovered.focus();
		return false;
	}
	
	if (trim(document.agentsForm.tel.value).length < 2){
		alert("Please enter the company contact number.");
		document.agentsForm.tel.value = trim(document.agentsForm.tel.value);
		document.agentsForm.tel.focus();
		return false;
	}
	
	if (trim(document.agentsForm.shopFronts.value).length < 2){
		alert("Please enter the shop fronts for the company.");
		document.agentsForm.shopFronts.value = trim(document.agentsForm.shopFronts.value);
		document.agentsForm.shopFronts.focus();
		return false;
	}
	
	if (trim(document.agentsForm.outline.value).length < 2){
		alert("Please enter the outline for the company.");
		document.agentsForm.outline.value = trim(document.agentsForm.outline.value);
		document.agentsForm.outline.focus();
		return false;
	}
	
	if (trim(document.agentsForm.prop.value).length < 2){
		alert("Please enter the contact information for partnership proposals.");
		document.agentsForm.prop.value = trim(document.agentsForm.prop.value);
		document.agentsForm.prop.focus();
		return false;
	}
	
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(trim(document.agentsForm.email.value)))){
		alert("Please enter a valid email address.\n");
		document.agentsForm.email.value = trim(document.agentsForm.email.value);
		document.agentsForm.email.focus();
		return false;
	}
	
	if (trim(document.agentsForm.web.value).length < 2){
		alert("Please enter the company website address.");
		document.agentsForm.web.value = trim(document.agentsForm.web.value);
		document.agentsForm.web.focus();
		return false;
	}

	if (!document.agentsForm.terms.checked){
		alert("Please verify that the information you have entered above is correct.");
		document.agentsForm.terms.focus();
		return false;
	}
	
	return true;
}