function validate_enquiry(form){
var err= false;
var msg = "";
var colOK = "";
var colERR = "";
	
	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.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;

 // var Email = form.elements[emailform].value ;//Send position where email is in form i.e. send a number
  //alert(Email);
  
	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.elements[emailform].style.backgroundColor=colERR;
		form.Email.focus();
		err = true;
	}
	else form.Email.style.backgroundColor=colOK;
	//form.elements[emailform].style.backgroundColor=colOK;

//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;
	
//alert("Result: " + err);
	if (err){
		alert('Please ensure the following information has been supplied:\n' + msg);
		return false;
	}
	//submitonce(form);
	return true;
}
