function tiffinCheckForm(form) {
	if (form.gradYear && form.gradYear.value == '') {
        alert("Please specify high school graduation year.");
        return (false);
    }
	if (form.program && form.program.value.indexOf("B") != 0 && form.educationLevel && form.educationLevel.value != "Bachelors"
		&& form.educationLevel.value != "Masters" && form.educationLevel.value != "Doctoral") {
		alert("To select this program, you must have Bachelor's Degree or higher.")
		return (false);
    }
	if (form.program && form.program.value=='CACG' && form.educationLevel && form.educationLevel.value != "Masters" && form.educationLevel.value != "Doctoral") {
		alert("To select this program, you must have Master's Degree or higher.")
		return (false);
    }
	if (form.custom1 && form.custom1.value == '') {
		alert("Please specify start date.");
		return (false);
    }
	if (form.ageRange && form.ageRange.value == '') {
		alert("Please specify age.");
		return (false);
    }
	if (form.program.value.indexOf("B") == 0) {
		if (form.custom2 && form.custom2.value == '') {
			alert("Please specify Transfer Credits.");
			return (false);
		}
		if (form.custom2 && (form.custom2.value == '0-20'||form.custom2.value == '21-38'||form.custom2.value == '39-44')) {
			alert("To select this program, you must have 45 credit hours and more to transfer.");
			return (false);
		}
    }
    return true;
}

function tiffinProgramChange(form)
{
	if (form.program.value.indexOf("B") == 0) {
		document.getElementById("bsDiv").style.display = "block";
    }
    else {
		document.getElementById("bsDiv").style.display = "none";
    }
}