function validateForm(cForm) {
	var reason = "";
	reason += chkEmptyFirst(cForm.cFirst);
	reason += chkEmptyLast(cForm.cLast);
	reason += chkEmail(cForm.cEmail);
	reason += chkMessage(cForm.cMessage);
	if (reason != "") {
		alert("There were errors submitting the form:\n\n" + reason);
		return false;
	}
	return true;
}
function chkEmptyFirst(fld) {
	var error = "";
	if (fld.value.length == 0) {
		fld.style.background = 'white';
		error = "Your first name is required!\n"
	} else {
		fld.style.background = 'White';
	}
	return error;
}
function chkEmptyLast(fld) {
	var error = "";
	if (fld.value.length == 0) {
		fld.style.background = 'white';
		error = "Your last name is required!\n"
	} else {
		fld.style.background = 'White';
	}
	return error;
}
function chkMessage(fld) {
	var error = "";
	if (fld.value == "") {
		fld.style.background = 'white';
		error = "You must enter a message!\n"
	} else {
		fld.style.background = 'White';
	}
	return error;
}
function chkEmail(fld) {
	var error = "";
	if (fld.value == "") {
		fld.style.background = 'white';
		error = "You must enter a valid email address!\n";
	} else {
		fld.style.background = 'White';
	}
	return error;
}
