<!--
// form-validation-utf-8.js is the brain, customize it to fit your needs

function checkFormContactUs()
{
	var m_customer_name = document.contactUsForm.customer_name.value;
	var m_email = document.contactUsForm.email.value;
	var m_message = document.contactUsForm.message.value;
	var m_telephone = document.contactUsForm.telephone.value;

	if (!isBlank(m_customer_name))
	{
		if (isValidName(m_customer_name))
		{
			if (!isBlank(m_email) || !isBlank(m_telephone))
			{
				if (!isBlank(m_message))
				{
					if (!isBlank(m_telephone) && !isValidPhoneNumber(m_telephone))
					{
						alert("Please check the telephone number, removing any letters and unusual characters\n(the number should be more than 5 and less than 32 characters long)");
						document.contactUsForm.telephone.focus();
					}
					else if (!isBlank(m_email) && !isValidEmailAddress(m_email))
					{
						alert("Please enter a valid e-mail address");
						document.contactUsForm.email.focus();
					}
					else
					{
						document.contactUsForm.submit();
					}
				}
				else
				{
					alert("Please enter a message");
					document.contactUsForm.message.focus();
				}
			}
			else
			{
				alert("Please enter either your e-mail address or your telephone number");
				document.contactUsForm.telephone.focus();
			}
		}
		else
		{
			alert("Invalid character in name - please remove");
			document.contactUsForm.customer_name.focus();
		}
	}
	else
	{
		alert("Please enter your name");
		document.contactUsForm.customer_name.focus();
	}

	return false;
}

// Copyright (c) 2000-2008 Atolis Ltd, 2008-2009 Comtec (Europe) Ltd.
// -->

