// JavaScript Document

<!-- 

	function noenter() {
		return !(window.event && window.event.keyCode == 13);
	}
	
	function formCheck() {
		if (document.greekSelection.greek[0].checked == false && document.greekSelection.greek[1].checked == false && document.greekSelection.coed.checked == false ) {
			alert("Please select an option.");	
		} else if (document.greekSelection.greek[0].checked == true && document.greekSelection.greek[1].checked == true) {
			alert("Please select only one gender.");
		} else {
			document.greekSelection.submit();	
		}
	}
	
	function submitCheck() {
		aru = document.greekRecruitment.ruid.value.slice(3,5);
		
		if (document.greekRecruitment.firstName.value == "") {
			alert("Please enter your first name.");	
			document.greekRecruitment.firstName.focus();
		
		} else if (document.greekRecruitment.lastName.value == "") {
			alert("Please enter your last name.");	
			document.greekRecruitment.lastName.focus();
			
		} else if (document.greekRecruitment.email.value == "") {
			alert("Please enter your email address.");	
			document.greekRecruitment.email.focus();
		
		} else if (document.greekRecruitment.ruid.value == "") {
			alert("Please enter your RUID.");	
			document.greekRecruitment.ruid.focus();
		
		} else if (document.greekRecruitment.ruid.value.length < 9) {
			alert("Your RUID is incorrect.");	
			document.greekRecruitment.ruid.focus();
		
		} else if (aru  != "00") {
			alert("Please check to make sure your RUID is typed correctly.");	
			document.greekRecruitment.ruid.focus();
			
		} else if (document.greekRecruitment.cellPhone.value == "") {
			alert("Please enter your cell phone number.");	
			document.greekRecruitment.cellPhone.focus();
			
		} else if (document.greekRecruitment.cellPhone.value.length < 10) {
			alert("Please check to make sure your cell phone number is typed correctly.");	
			document.greekRecruitment.cellPhone.focus();
			
		} else if (document.greekRecruitment.gradYear.value == "") {
			alert("Please select your class year.");	
			document.greekRecruitment.cellPhone.focus();
			
		} else if (document.greekRecruitment.college.value == "") {
			alert("Please select your college affilliation.");	
			document.greekRecruitment.college.focus();
		
		} else if (document.greekRecruitment.studentSts.value == "") {
			alert("Please select your student status.");	
			document.greekRecruitment.studentSts.focus();
				
		} else if (document.greekRecruitment.agree.value < 2) {
			alert("Please sign your initials.");	
			document.greekRecruitment.agree.focus();
			
		} else if (document.greekRecruitment.verify.checked == false) {
			alert("Please verify you have read and agreed to the terms and conditions.");	
			document.greekRecruitment.verify.focus();
		
		} else {
			document.greekRecruitment.submit();	
		}
		
	}
	
	//Makes div areas hide or show
	function appear(spanName, obj) {
		if (obj == "open" && document.getElementById(spanName).style.display == "none") {
			document.getElementById(spanName).style.display = "";
		} else if (obj == "open" && document.getElementById(spanName).style.display == "") {
			document.getElementById(spanName).style.display = "none";
		} else {
			document.getElementById(spanName).style.display == ""
		}
	
	}

	
	function checkAll(field) {
		for (i = 0; i < field.length; i++)
			field[i].checked = true ;
	}

	function uncheckAll(field) {
		for (i = 0; i < field.length; i++)
			field[i].checked = false ;
		}

-->