
// make sure the form meets with our approval
function validate(f) {
	errors = "";
	
	// run our checks
	if(f.name.value == "") { errors += "\n- Must complete the Name field."; }
	if(f.email.value == "") { errors += "\n- Must complete the Email field."; }
	if(f.email.value != f.email_confirm.value) { errors += "\n- Your Emails don't match."; }
	if(f.message.value == "") { errors += "\n- Must complete the Message field."; }
	
	// if error found, complain
	if(errors != "") {
		errors = "The following problems were found with your details:\n" + errors + "\n\nPlease correct and try again.";
		alert(errors);
		return false;
	}
	
	// otherwise cool, let's go
	else {
		return true;
	}
}