
// contact form checker script

	// is browser sufficiently advanced for true W3C DOM scripting ?
	if (document.getElementById && document.createElement && document.childNodes)
		W3CDOM = true;
	else
		W3CDOM = false;


	function ResetFocus()
	{
		if (W3CDOM)
		{
			// focus on Text Box using the W3C DOM
			document.getElementById("mnuContact").focus();
		}
	}


	function CheckForm()
	{
		if (W3CDOM)
		{
			txtName = document.getElementById("txtName").value;
			txtPhone = document.getElementById("txtPhone").value;
			txtMessage = document.getElementById("txtMessage").value;

			if ((txtName != "") && (txtPhone != "") && (txtMessage != ""))
			{
				return true;
			}
			else
			{
				if (txtName == "") document.getElementById("txtName").focus();
				if (txtPhone == "") document.getElementById("txtPhone").focus();
				if (txtMessage == "") document.getElementById("txtMessage").focus();
				strMsg = 'Please select an option from the Enquiry type list \n';
				strMsg+= 'and then complete all the required form fields ...\n\n';
				strMsg+= '(an email address is not required, but may help a quicker response) \n';
				alert(strMsg);
				return false;
			}
		}
	}

