function validateContactUs(theform) {
	
	theform.Name.required = true;
	theform.Name.requiredError = 'Your Name must be entered.';
	
	theform.Email.required = true;
	theform.Email.requiredError = 'Your E-mail must be entered.';
	theform.Email.pattern = 'email';
	theform.Email.patternError = 'A valid E-mail must be entered.';
	
	theform.Subject.required = true;
	theform.Subject.requiredError = 'A Subject must be entered.';
	
	theform.Message.required = true;
	theform.Message.requiredError = 'A Message must be entered.';
	
	var errors = getFormErrors(theform);
	if (errors.length > 0) {
		var errorMessage = 'The form was not submitted due to the following problem' + ((errors.length > 1) ? 's' : '') + ':\n\n';
		for (var errorIndex = 0; errorIndex < errors.length; errorIndex++) {
			errorMessage += '* ' + errors[errorIndex] + '\n';
		}
		errorMessage += '\nPlease fix ' + ((errors.length > 1) ? 'these' : 'this') + ' problem' + ((errors.length > 1) ? 's' : '') + ' and resubmit the form.';
		alert(errorMessage);
		return false;
	}
	
	return true;
}