function validFormSup(passForm)
{
	function mandCheck (formElement, errorText)
	{
		if(formElement.value == "")
		{
			alert(errorText);
			formElement.focus();
			return false;
		}
	}
	function isValidEmail (sText)
	{
		var reEmail = /^(?:\w+\.?)*[-_]?\w+@(?:[-\w]+\.)+\w+$/;
		if (reEmail.test(sText) == false)
		{
			alert("Your e-mail address doesn't seem to be in a standard format.\nPlease double-check it and try again.");
			passForm.cemail.focus();
			return false;
		}
	}
	function dropDownCheck (formElement, errorText)
	{
		if (formElement.value == "NO")
		{
			alert("Please select the " + errorText + " from the drop-down list.");
			formElement.focus();
			return false;
		}
	}

	if (mandCheck(passForm.cname, "Please enter your name.") == false)
	{
		return false;
	}
	if ((mandCheck(passForm.cemail, "Please enter your e-mail address.") == false) || (isValidEmail(passForm.cemail.value) == false))
	{
			return false;
	}
	if (mandCheck(passForm.town, "Please enter your town or city, it will help us to put you in contact with the right person more quickly.") == false)
	{
		return false;
	}
	if (dropDownCheck(passForm.reason, "type of your enquiry") == false)
	{
		return false;
	}
	if (mandCheck(passForm.cdetail, "Please describe the nature of your enquiry.") == false)
	{
		return false;
	}
	else if (passForm.cdetail.value.length < 15)
	{
		if (confirm("If your enquiry description is too short, it may take us longer to work out how best to help.\nWould you like to add anything?"))
		{
			passForm.cdetail.focus();
			return false;
		}
	}
	return true;
}

