function checkForm(obj) {
	var toCheck = obj.elements;
	var objList = "";
	for (i = 0, len = toCheck.length; i < len; i++) {
		if (toCheck[i].className.indexOf("req") > -1) {
			if (toCheck[i].value == "") {
				objList += " - " + toCheck[i].name + "\n";

			}
		}
	}
	if (objList.length > 1) {
		alert("Please fill in the following:\n" + objList);
		return false;
	}
	
	var emailVal = document.getElementById("contact-form-email-address").value;
	if(!emailVal.match(/([\w-\.]+)@((?:[\w]+\.)+)([a-zA-Z]{2,4})/g) && emailVal != "") {
		alert("Please provide an accurate email address");
		return false;
	}
	
	return true;	
}
