var RecaptchaOptions = {
   theme : 'custom',
   lang: 'en',
   custom_theme_widget: 'recaptcha_widget'
};
function Validate(sitename) {
	if (document.getElementById('txtName').value == "") {
		alert('Please enter your name');
		document.getElementById('txtName').focus();
		document.getElementById('txtName').style.border = "1px solid red";
		return false;
	}
	if (document.getElementById('txtTelephone').value == "") {
		alert('Please enter your telephone number');
		document.getElementById('txtTelephone').focus();
		document.getElementById('txtTelephone').style.border = "1px solid red";
		return false;
	}
	if (document.getElementById('txtEmail').value == "") {
		alert('Please enter your email address');
		document.getElementById('txtEmail').focus();
		document.getElementById('txtEmail').style.border = "1px solid red";
		return false;
	}
	if (document.getElementById('txtCompany').value == "") {
		alert('Please enter your company name');
		document.getElementById('txtCompany').focus();
		document.getElementById('txtCompany').style.border = "1px solid red";
		return false;
	}
	if (document.getElementById('txtEmployees').value == "") {
		alert('Please enter the amount of employees your company has');
		document.getElementById('txtEmployees').focus();
		document.getElementById('txtEmployees').style.border = "1px solid red";
		return false;
	}
	if (document.getElementById('txtEnquiry').value == "") {
		alert('Please enter your enquiry');
		document.getElementById('txtEnquiry').focus();
		document.getElementById('txtEnquiry').style.border = "1px solid red";
		return false;
	}
	if(document.enquiry.txtSelect.options[document.enquiry.txtSelect.selectedIndex].value == "NONE") {
		alert("Please tell us how you found us");
		return false;
	}
	if (document.getElementById('recaptcha_response_field').value == "") {
		alert('Please enter the CAPTCHA');
		document.getElementById('recaptcha_response_field').focus();
		document.getElementById('recaptcha_response_field').style.border = "1px solid red";
		return false;
	}
	if(document.getElementById('txtData').checked == false) {
		if(!confirm("You have selected that "+sitename+" cannot contact you using the details you have supplied, do you still want to continue?")) return false;
	}
	return true;
}