<!--
// (c) http://insighteye.com
function checkCheckBox(f)
{
	if (f.Name.value == "" )
	{
		alert("Please enter your full name.");
		f.Name.focus();
		return false;
	}
	
	if (f.postcode.value == "" )
	{
		alert("Please enter your postcode.");
		f.postcode.focus();
		return false;
	}
	
	if (f.Email.value == "" )
	{
		alert("Please enter your email address.");
		f.Email.focus();
		return false;
	}
	
	
	
	if (!validEmail(f.Email.value) )
	{
		alert("Please enter a valid email address.");
		f.Email.focus();
		return false;
	}
	
	if (f.agree.checked == false )
	{
		alert("Before continuing, please tick the box to confirm your acceptance of our terms and conditions.");
		return false;
	}
	
	
	
	return true;
}


function validEmail(email)
{
		
	if ((email.length < 3) || (email.length > 50) || 
		(email.charAt(0) == '@') || (email.charAt(email.length-1) == '@') || 
		(email.charAt(0) == '.') || (email.charAt(email.length-1) == '.') || 
		(email.indexOf('.') == -1) || (email.indexOf('@') == -1) ||
		(email.indexOf('@') != email.lastIndexOf('@')) || 
		(email.indexOf(' ') > 0) || (email.indexOf('?') > 0) || (email.indexOf('..') > 0)
		)
	{
		return false;
	}
	else
	{
		return true;
	}
}


//-->

function emptyvalidation(entered, alertbox)
{

// Emptyfield Validation by Henrik Petersen / NetKontoret
// Explained at www.echoecho.com/jsforms.htm
// Please do not remove this line and the two lines above.
with (entered)
{
if (value==null || value=="")
{if (alertbox!="") {alert(alertbox);} document.contactform.Name.focus(); return false;}
else {return true;}
}
} 
