/* ENQUIRY VALIDATION */
	function fq_check()
	{
		if(document.enquiry.name.value == "" || document.enquiry.name.value == "Name:*")
		{
			alert("Please provide your Name");
			document.enquiry.name.focus();
			return false;
		}
		if(document.enquiry.phone.value.length < 8 || document.enquiry.phone.value == "Phone:*")
		{
			alert("Please provide a valid contact number");
			document.enquiry.phone.focus();
			return false;
		}

		if (document.enquiry.email.value.length < 7 || document.enquiry.email.value == "Email:*" )
		{
			alert("Please enter your email address");
			document.enquiry.email.focus();
			return false;
		}
		else
		{
			if(emailIsValid(document.enquiry.email.value))
			{	
				alert("Please check you have entered a valid Email address");
				document.enquiry.email.focus();
				return false;
			}
		}
	}
	function emailIsValid(s)
	{
		if(!(s.match(/^[\w]+([_|\.-][\w]{1,})*@[\w]{2,}([_|\.-][\w]{1,})*\.([a-z]{2,4})$/i) ))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
// JavaScript Document


function marketing_check()
	{
		if(document.marketing.firstname.value == "" || document.marketing.firstname.value == "Your first name")
		{
			alert("Please provide your first name");
			document.marketing.firstname.focus();
			return false;
		}
		
		if (document.marketing.email.value.length < 7 || document.marketing.email.value == "Email:" )
		{
			alert("Please enter your email address");
			document.marketing.email.focus();
			return false;
		}
		else
		{
			if(emailIsValid(document.marketing.email.value))
			{	
				alert("Please check you have entered a valid Email address");
				document.marketing.email.focus();
				return false;
			}
		}
	}
	function emailIsValid(s)
	{
		if(!(s.match(/^[\w]+([_|\.-][\w]{1,})*@[\w]{2,}([_|\.-][\w]{1,})*\.([a-z]{2,4})$/i) ))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
