/* Script to validate the contact form */
<!-- Start Validate Script -->

function Validate()
{
	missinginfo = "";

	if (document.contact_us.name.value == "")
	{
		missinginfo += "\n     -  Name";
	}

	if (document.contact_us.email.value == "")
	{
		missinginfo += "\n     -  Email Address";
	}

	if (document.contact_us.phone.value == "")
	{
		missinginfo += "\n     -  Phone Number";
	}

	if (document.contact_us.question.value == "")
	{
		missinginfo += "\n     -  Question text";
	}

	if (missinginfo != "")
	{
		missinginfo =
			"The following information must be filled out:\n"
			+ missinginfo
			+ "\nPlease enter the missing information and try again!";

		alert(missinginfo);

		return false;
	}
	else
		return true;
}

<!-- End Validate Script -->