var checkList = new Array("full-name", "phone-area", "phone-pre", "phone-suf", "email", "confirm-email", "terms");
function Require() {
	for (count = 0; count < checkList.length; count++) {
		if (document.getElementById(checkList[count]).value == "" || document.getElementById(checkList[count]).value == "Required" || (checkList[count] == "email" && (document.getElementById(checkList[count]).value.indexOf("@") == -1 || document.getElementById(checkList[count]).value.indexOf(".") == -1))) {
			document.getElementById(checkList[count]).value = "Required";
			document.getElementById(checkList[count]).focus();
			alert("Required fields are marked with an asterisk (*).");
			return false;
		}
		else if (document.getElementById("email").value != document.getElementById("confirm-email").value) {
			alert("Please make sure you've entered a valid email address and both email fields match exactly.");
			document.getElementById("confirm-email").focus();
			return false;
		}
		else if (document.getElementById("terms").value == "" || document.getElementById("terms").checked == "") {
			alert("You must agree to the Terms and Conditions.");
			document.getElementById("terms").focus();
			return false;
		}
		else if (document.getElementById("nobots").value != "") {
			alert("Dood, I'm on to you! Don't you ever try to hack my shizzy again!");
			return false;
		}
	}
	if (location.href.indexOf("console.do") != -1) {
		redirect = '<input type=\"hidden\" name=\"redirect\" id=\"redirect\" value=\"ou/herb-chambers/console.do?page=c_contactus_feedback_thanks\" />';
		leadSource = '<input type=\"hidden\" name=\"Leadsource\" id=\"Leadsource\" value="BZ Results Feedback" />';
		subject = '<input type=\"hidden\" name=\"subject\" id=\"subject\" value="BZ Results Feedback" />';
	} else {
		redirect = '<input type=\"hidden\" name=\"redirect\" id=\"redirect\" value=\"custom/feedback/thanks.jsp" />';
		leadSource = '<input type=\"hidden\" name=\"Leadsource\" id=\"Leadsource\" value="BZ | Feedback" />';
		subject = '<input type=\"hidden\" name=\"subject\" id=\"subject\" value="BZ | Feedback" />';
	}
	
	document.getElementById('actions').innerHTML += redirect;
	document.getElementById('actions').innerHTML += leadSource;
	document.getElementById('actions').innerHTML += subject;
	
	return true;
}