function frmContact_Focus() {
	document.frmContact.strCompany.focus();
}

function frmContact_Val(theForm) {
	var validator = new(Validate);
	var strName = theForm.strName.value;
	var strPhone = theForm.strPhone.value;
	var strFax = theForm.strFax.value;
	var strEmail = theForm.strEmail.value;

	if (strName.length == 0) {
		alert("Please enter your name.");
		theForm.strName.focus();
		return false;
	}

	if (strPhone.length == 0) {
		alert("Please enter your phone number.");
		theForm.strPhone.focus();
		return false;
	}

	if (validator.isValidNTelephoneNum(strPhone)) {
	}
	else {
		alert("Phone number must match the form 999-999-9999. Please check the syntax.");
		theForm.strPhone.focus();
		return false;
	}

	if (strFax.length > 0) {
		if (validator.isValidNTelephoneNum(strFax)) {
		}
		else {
			alert("Fax number must match the form 999-999-9999. Please check the syntax.");
			theForm.strFax.focus();
			return false;
		}
	}

	if (strEmail.length > 0) {
		if (validator.isValidEmail(strEmail)) {
		}
		else {
			alert("Please check the syntax of your e-mail address.");
			theForm.strEmail.focus();
			return false;
		}
	}

	return true;
}