function toggleServiceReqSelect(){
	var strServiceReqSelected=document.getElementById('selectservicereq').options[document.getElementById('selectservicereq').selectedIndex].value;

	if(strServiceReqSelected=='Service'){ // hide and disable repair options, reveal and enable service options.
		document.getElementById('areamakemodelrepair').disabled=true;
		document.getElementById('repairoptions').style.display='none';

		document.getElementById('selecttypemachine').disabled=false;
		document.getElementById('serviceoptions').style.display='block';

		document.getElementById('serviceinfo').style.display='block';
	}else{ // the opposite of the above block - it's that simple
		document.getElementById('selecttypemachine').disabled=true;
		document.getElementById('serviceoptions').style.display='none';

		document.getElementById('serviceinfo').style.display='none';

		document.getElementById('areamakemodelrepair').disabled=false;
		document.getElementById('repairoptions').style.display='block';
	}
}

function checkDisclaimer(objForm){
	if(document.getElementById('inputdisclaimer').checked){
		setServiceRepairVal();
		return checkform(objForm);
	}else{
		alert('Please confirm you have read and understood our Disclaimer');
		return false;
	}
}

function setServiceRepairVal(){
	setvalidation([''],[''],['']);

	var strServiceReqSelected=document.getElementById('selectservicereq').options[document.getElementById('selectservicereq').selectedIndex].value;

	if(strServiceReqSelected=='Repair'){
		addvalidation('Repair Make Model',',1','Repair\/Make\/Model of your Machine');
	}

	addvalidation('First Name',',1','First Name');
	addvalidation('Surname',',1','Surname');
	addvalidation('Email','email,1','Email');
	addvalidation('Contact Telephone 1',',1','Contact Telephone 1');
	addvalidation('Address',',1','Address');
}

