function validate_enquiry(form){
var err= false;
var msg = "";
var colOK = "";
var colERR = "#cccccc";
	
	
	if (form.name.value==""){
		msg +="- Name \n";
		form.name.style.backgroundColor=colERR;
		err= true;
	}
	else form.name.style.backgroundColor=colOK;
	
	if (form.company.value==""){
		msg +="- Company \n";
		form.company.style.backgroundColor=colERR;
		err= true;
	}
	else form.company.style.backgroundColor=colOK;
	
	if (form.postcode.value==""){
		msg +="- Postcode \n";
		form.postcode.style.backgroundColor=colERR;
		err= true;
	}
	else form.postcode.style.backgroundColor=colOK;
	
	if (form.tel.value==""){
		msg +="- ContactTelephone \n";
		form.tel.style.backgroundColor=colERR;
		err= true;
	}
	else form.tel.style.backgroundColor=colOK;
	
	
	/*if (form.Company.value==""){
		msg +="- Company\n";
		form.Company.style.backgroundColor=colERR;
		err= true;
	}
	else form.Company.style.backgroundColor=colOK;
*/
	/* 
	*/
	//
	/*
	if (form.Address1.value==""){
		msg +="- Address \n";
		form.Address1.style.backgroundColor=colERR;
		err= true;
	}
	else form.Address1.style.backgroundColor=colOK;
*/

	if (form.email.value==""){
		msg +="- Email\n";
		form.email.style.backgroundColor=colERR;
		form.email.focus();
		err= true;
	}
	else form.email.style.backgroundColor=colOK;

	 if (!isEmail(form.email.value)){
		msg += "- Email has not been supplied in correct format\n  e.g. name@companyname.co.uk\n";
		form.email.style.backgroundColor=colERR;
		form.email.focus();
		err = true;
	}
	else form.email.style.backgroundColor=colOK;
	/*
  	if (form.Enquiry.value==""){
		msg +="- Your Enquiry\n";
		form.Enquiry.style.backgroundColor=colERR;
		err= true;
	}
	else form.Enquiry.style.backgroundColor=colOK;
	*/
	
  	if (form.extra.value==""){
		msg +="- NumberOfCoolersRequired \n";
		form.extra.style.backgroundColor=colERR;
		err= true;
	}
	else form.extra.style.backgroundColor=colOK;
	
	
	if (err){
		alert('Please ensure the following information has been supplied:\n' + msg);
		return false;
	}
	//submitonce(form);
	return true;
}
