function suoCheckForm(form) {

	if (form.state && (form.state.value == "MN"||form.state.value == "TN")) {
      alert("We're sorry but South University does not currently accept students in your state.");
      return (false);
    }

	if (form.program && (form.program.value == 'RNMSN'||form.program.value == 'MSNR')) {
		if (form.state && form.state.value == "RI") {
			alert("We're sorry but this program is not offered in your state. Please select another program.");
			return (false);
		}
	}

    if (form.program && (form.program.value == 'NRBA'||form.program.value == 'RNMSN')) {

        if (form.custom1 && !form.custom1[0].checked && !form.custom1[1].checked) {
            alert("Please specify whether you are a licensed RN.");
            return (false);
        }

        if (form.custom2 && !form.custom2[0].checked && !form.custom2[1].checked) {
            alert("Please specify whether you are a graduate of an NLNAC accredited nursing program leading to an Associate Degree in Nursing or Diploma in Nursing.");
            return (false);
        }

    }
	if (form.program && form.program.value == 'MSNR') {
		if (form.custom1 && !form.custom1[0].checked && !form.custom1[1].checked) {
            alert("Please specify whether you are a licensed RN.");
            return (false);
        }
		if (form.custom1 && !form.custom1[0].checked) {
            alert("To be eligible, you must be a licensed RN.");
            return (false);
        }
	}
    if (form.gradYear && form.gradYear.value == "") {
		alert("Please specify your graduation year.");
		return (false);
	}
	if (form.gradYear && form.gradYear.value > "2009") {
		if(document.getElementById("validation_container")) {
			$(".page_margins").prepend($('#validation_container'));
			scroll(0,0);
			$('#validation_container').show('slide' ,'',500);

			$('#validation_container a').bind('click', function() {
				$('#validation_container').hide('slide' ,'',500);
				$('#validation_container a').unbind();
			});
		}
		else 
			alert("To be eligible, your graduation year should be 2009 or earlier.");
		if(window.trackValidationErrors) {
			trackValidationErrors(form, 'suo', '2009');
		}
		return (false);
	}
	if (form.educationLevel && form.program) {
		if(form.program.value.indexOf("M")==0||form.program.value.indexOf("RNMSN")==0) {
			if(form.educationLevel.value != "Bachelors" && form.educationLevel.value != "Masters" && form.educationLevel.value != "Doctoral") {
				alert("Based on the information you provided, you do not currently meet the application requirements for South University.");
				return (false);
			}
		}
		if(form.program.value.indexOf("DBA")==0) {
			if(form.educationLevel.value != "Masters" && form.educationLevel.value != "Doctoral") {
				alert("Based on the information you provided, you do not currently meet the application requirements for South University.");
				return (false);
			}
		}
    }
    return true;
}

function suoProgramChange(form)
{
	if(document.getElementById("NRBA")!=null){
		if (form.program.options[form.program.selectedIndex].value == 'NRBA' || form.program.options[form.program.selectedIndex].value == 'RNMSN' || form.program.options[form.program.selectedIndex].value == 'MSNR')
			document.getElementById("NRBA").style.display = "block";
		else
			document.getElementById("NRBA").style.display = "none";
	}
}
