function clearField(fVal) {
	fVal.value = "";
}

function checkF1() {
	var fVal1 = document.RequestInfoForm.name.value;
	if (fVal1 == '') {
		document.RequestInfoForm.name.value = 'name';
	}
}
function checkF2() {
	var fVal2 = document.RequestInfoForm.city.value;
	if (fVal2 == '') {
		document.RequestInfoForm.city.value = 'city';
	}
}
function checkF3() {
	var fVal3 = document.RequestInfoForm.contact.value;
	if (fVal3 == '') {
		document.RequestInfoForm.contact.value = 'phone number/email';
	}
}
function checkF4() {
	var fVal4 = document.RequestInfoForm.comments.value;
	if (fVal4 == '') {
		document.RequestInfoForm.comments.value = 'comments/questions';
	}
}


function checkRequestInfoForm(theform) {
	var theform = document.RequestInfoForm;
	
	theform.name.required = true;
	theform.name.requiredError = 'The name field must be filled in.';
	
	theform.city.required = true;
	theform.city.requiredError = 'The city field must be filled in.';
	
	theform.contact.required = true;
	theform.contact.requiredError = 'The phone number/email field must be filled in.';
	
	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);
		theform.boolUserSubmit.value = 0;
		return false;
	}
	
	// disable all buttons to avoid multi-submit
	//disableButtons(theform);
	
	// no errors: return true
	return true;
}