function validFormSup(passForm, ismenc)
{
	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.fname, "Please enter your First Name.") == false)
	{
		return false;
	}
	if (mandCheck(passForm.cname, "Please enter your Surname.") == false)
	{
		return false;
	}
	if ((passForm.ctel.value == '') && (passForm.cmob.value == ''))
	{
		alert("Please enter a contact telephone number (either landline or mobile).");
		passForm.ctel.focus();
		return false;
	}
	if ((mandCheck(passForm.cemail, "Please enter your e-mail address.") == false) || (isValidEmail(passForm.cemail.value) == false))
	{
		return false;
	}
	if (dropDownCheck(passForm.county, "county where you live") == false)
	{
		return false;
	}
	if (mandCheck(passForm.cdate, "Please enter the date (or time period) when your accident occured.") == false)
	{
		return false;
	}
	if (dropDownCheck(passForm.cacctype, "the type of accident you wish to claim for") == false)
	{
		return false;
	}
	if (mandCheck(passForm.cdetail, "Please describe your accident and the injuries you sustained.") == false)
	{
		return false;
	}
	else if (passForm.cdetail.value.length < 20)
	{
		if (confirm("If your accident description is too short, your claim will take us longer to process.\nWould you like to add anything?"))
		{
			passForm.cdetail.focus();
			return false;
		}
	}
	if (passForm.cagree.checked == false)
	{
		alert("Please confirm that you have read the Solicitors Introduction Code Statement");
		passForm.cagree.focus();
		return false;
	}		
	return true;
}
