function chkForm(fo){
	if(dom){
		submittable = false;
		errorlist = new Array();
		errorlistcount = 0;
		
//Because of the way the form builder use this file to help with the validation
//no code should appear in this page other than functions in this format
//
// chkName(fo.fieldname,'Error Message')
//
//If there is a requirement to put other code in, place it after the //STOP line

		chkText(fo.business,'Please enter your Business Name');

//START

		//Page 01
		chkSelect(fo.taxi_type,'Please tell the type of taxi you drive');
		
		chkText(fo.first_name,'Please enter your First Name');
		chkText(fo.surname,'Please enter your Surname');
		chkPhoneNums(fo.telephone,'Please enter your Telephone Number');
		chkEmail(fo.email,'Please enter a valid Email address');
		chkPostcodeFirstPart(fo.postcode,'Please enter a valid Postcode');

		chkYourBadge(fo.blackcab_badge, 'Please select a badge type', 'taxi_type', 'publichirelondon');
		
		chkRadio(fo.cover,'Please select cover')
		chkSelect(fo.startdate,'Please select a Start Date');
		chkSelect(fo.drivers,'Please tell us how many drivers you wish to insure');
		
		chkFieldStateIfMatch(fo.drivers,'No more than 4 drivers can be covered for the taxi type you have selected','greater_than','4','taxi_type','publichirelondon');

		chkSingleCheckbox(fo.ChkArray_contact_me,'Please confirm that Tradex may contact you to discuss your quote');					
//STOP
//This stop line stops the form builder from reading any more js
		
		
		chkFocus();
		
		return submittable;	
	}
}

function InitiateHide ()
{
	if(document.quote.taxi_type[document.quote.taxi_type.selectedIndex].value!='publichirelondon')
	{
		HideDiv('YourBadge');
	}
	else
	{
		document.quote.cover_c.checked=true;
		document.quote.cover_tpft.disabled=true;
		document.quote.cover_tpo.disabled=true;	
	}
}

function CheckTaxiType ()
{
	if(document.quote.taxi_type[document.quote.taxi_type.selectedIndex].value=='publichirelondon')
	{
		ShowDiv('YourBadge');
		
		document.quote.cover_c.checked=true;
		document.quote.cover_tpft.disabled=true;
		document.quote.cover_tpo.disabled=true;
		
	}
	else
	{
		HideDiv('YourBadge');
		
		document.quote.cover_c.checked=false;
		document.quote.cover_tpft.disabled=false;
		document.quote.cover_tpo.disabled=false;
	}
}

function chkYourBadge(field, message, ignore1, ignore2)
{
	if(document.quote.taxi_type[document.quote.taxi_type.selectedIndex].value=='publichirelondon')
	{
		chkSelect(field,message);;
	}
}
