function getPassword() {
	if (document.getElementById('loginForm:username').value == '') {
		alert('Please enter your e-mail address first.');
		document.getElementById('loginForm:username').focus();
		return false;
	} else {
	 	//NEED TO CREATE NEW FUNCTION FOR THIS... reported in Mantis
	}
}

function enableMe(which) {
	if (which.name == "scholarshipsForm:tuitionReimburse") {
		if (which.value == "N") {
			document.getElementById('scholarshipsForm:amountReimburse').disabled="disabled";
			document.getElementById('scholarshipsForm:amountReimburse').value="";
		} else {
			document.getElementById('scholarshipsForm:amountReimburse').disabled="";
		}
	}
	if (which.name == "applicantForm:programList") {
		if (which.selectedIndex != 0) {
			document.getElementById('applicantForm:termList').disabled="";
			
		} else {
			document.getElementById('applicantForm:termList').disabled="disabled";
			document.getElementById('applicantForm:termList').selectedIndex=0;
			
		}
	}
	if (which.name == "applicantForm:previousSubmissionMenu") {
		if (which.value == "no") {
			document.getElementById('applicantForm:yearAppliedMenu').disabled="disabled";
		} else {
			document.getElementById('applicantForm:yearAppliedMenu').disabled="";
		}
	}
	if (which.name == "applicantForm:countryMenu") {
		if (which.selectedIndex > 1) {
			document.getElementById('applicantForm:status').disabled="";
		} else {
			document.getElementById('applicantForm:status').disabled="disabled";
			document.getElementById('applicantForm:status').selectedIndex=0;
		}
	}
	if (which.name == "applicantForm:countryOfResidence") {
		if (which.selectedIndex == 1 || which.selectedIndex == 40) {
			document.getElementById('applicantForm:state').disabled="";
		} else {
			document.getElementById('applicantForm:state').disabled="disabled";
			document.getElementById('applicantForm:state').selectedIndex=0;
		}
	}
}

function enableInstitution(which) {
	document.getElementById('academicsForm:institutionList:'+which+':institutionName').disabled="";
	document.getElementById('academicsForm:institutionList:'+which+':city').disabled="";
	document.getElementById('academicsForm:institutionList:'+which+':state').disabled="";
	document.getElementById('academicsForm:institutionList:'+which+':country').disabled="";
	return false;
}

function checkApplicantEnabled() {
	if (document.getElementById('applicantForm:countryMenu').selectedIndex > 1)  {
		document.getElementById('applicantForm:status').disabled="";
	}
	if (document.getElementById('applicantForm:countryOfResidence').selectedIndex == 1) {
		document.getElementById('applicantForm:state').disabled="";
	}
}
