	function ValidateDoc()
	{
		var ErrorMsg = "";
		ErrorMsg =  "_________________________________________________\n\n";
		ErrorMsg += Localize("The form was not submitted because the following error(s).") + "\n";
		ErrorMsg += Localize("Please correct these error(s) and resubmit.") + "\n";
		ErrorMsg += "_________________________________________________\n\n";
		ErrorMsg += Localize("The following required field(s) were left empty or invalid:") + "\n\n";
		var InitLen   = ErrorMsg.length;
		var TheForm   = document.ReportError;

		//name - required field validation
		if (trim(TheForm.name.value).length < 1)
			ErrorMsg = ErrorMsg + Localize("- Please provide your full name") + "\n";
		
		//email - format validation
		if ((trim(TheForm.email.value).length < 1)||(!CheckEmailFormat(TheForm.email.value)))
			ErrorMsg = ErrorMsg + Localize("- Email Address") + "\n" + Localize("  For example: yourname@domain.com") + "\n";

		//phone - format validation
		if (trim(TheForm.phone.value).length >= 1) 
		{
			if (!IsPhoneNumber(TheForm.phone.value))
			{
				ErrorMsg = ErrorMsg + Localize("- Please enter a valid phone number") + "\n";
			}
		}

        //heard about - required field validation
		if (trim(TheForm.heardabout.value).length < 1)
			ErrorMsg = ErrorMsg + Localize("- Please tell us how you heard about ZHMICRO") + "\n";

		if ( ErrorMsg.length > InitLen )
		{
			alert( ErrorMsg );
			return (false);
		}
	}

