<!--
// This function ensures that a user has filled in all of the required fields.
// If they haven't, it returns an error in the form of an alert.
function checkMandatory() {
	var error_string = "";
	// Check the name field
	if(window.document.form_appleaday.name.value == "") {
		error_string += "You must tell us your name.\n";
		}
	// Check the age field
	if(window.document.form_appleaday.age.value == "") {
		error_string += "You must tell us your age.\n";
		}
	// Check the email field
	if(window.document.form_appleaday.email.value == "") {
		error_string += "You must tell us your e-mail address.\n";
		}
	// Check the question field
	if(window.document.form_appleaday.question.value == "") {
		error_string += "You must ask a question.\n";
		}
	if(error_string == "") {
		return true;
		}
	else {
		error_string = "One or more required fields have been left blank!\n\n" + error_string;
		alert(error_string);
			return false;
		}
	}
// -->