function checkRegisterForm() {
	var failed = false;
	if (!checkTextField("register", "forename") && !failed) failed = true;
	if (!checkTextField("register", "surname") && !failed) failed = true;
	if (!checkTextField("register", "email") && !failed) failed = true;
	if (failed) {
		alert("One or more required fields were not filled in. Please fill in all the required fields before submitting.");
		return false;
	}
}

function checkUnsubForm() {
	var failed = false;
	if (!checkTextField("unsub", "email") && !failed) failed = true;
	if (failed) {
		alert("One or more required fields were not filled in. Please fill in all the required fields before submitting.");
		return false;
	}
}