function ctuonlineCheckForm(form) {
	if(form.emailAddress && form.confirm_emailAddress && form.emailAddress.value != form.confirm_emailAddress.value) {
		alert("Confirm email address field does not match email address field.")
		return (false);
	}
	if(form.homePhone && form.confirm_homePhone && form.homePhone.value != form.confirm_homePhone.value) {
		alert("Confirm home phone field does not match home phone field.")
		return (false);
	}
	if(form.educationLevel && form.educationLevel.value != "Bachelors" && form.educationLevel.value != "Masters" && form.educationLevel.value != "Doctoral"
		&& form.program && (form.program.value=='1009'||form.program.value=='1017'||form.program.value=='1018'
		||form.program.value=='1015'||form.program.value=='1013'||form.program.value=='1025'||form.program.value=='1041'
		||form.program.value=='1027'||form.program.value=='1001'||form.program.value=='1000'
		||form.program.value=='1002'||form.program.value=='1003'||form.program.value=='1028'
		||form.program.value=='1030'||form.program.value=='1031'||form.program.value=='1032'||form.program.value=='1033'
		||form.program.value=='2004'||form.program.value=='2005'||form.program.value=='2006')) {
		alert("Based on the information you provided, you do not currently meet the application requirements for Colorado Technical University Online.");
		return (false);
	}
	if(form.educationLevel && form.educationLevel.value != "Masters" && form.educationLevel.value != "Doctoral"
		&& form.program && (form.program.value=='2001'
		||form.program.value=='2002'||form.program.value=='2003')) {
		alert("Based on the information you provided, you do not currently meet the application requirements for Colorado Technical University Online.");
		return (false);
	}
	if (form.program && form.program.value == "1035") {
        if (form.registerednurse && !form.registerednurse[0].checked && !form.registerednurse[1].checked) {
            alert("Please specify whether you possess a current, unrestricted license to practice as a registered nurse in at least one U.S. state.");
            return (false);
        }
    }
	if (form.citizen && form.citizen.value == '') {
        alert("Please specify whether you are a US citizen.");
        return (false);
    }
	if (form.contactRequest && !form.contactRequest.checked) {
        alert("To request more information, you must understand an Admissions Advisor will contact you within the next few days to provide you with additional information related to your specific goals.");
        return (false);
    }
    return true;
}

function ctuonlineProgramChange(form)
{
	if (form.program.value == '1035') {
		document.getElementById("NursingDiv").style.display = "block";
    }
    else {
		document.getElementById("NursingDiv").style.display = "none";
    }
}
