

function valForm(){
		
// 	PERSONAL INFORMATION
	
	if( document.FellowRegForm.nom_firstName.value == "" ){
		alert ("Please enter a nominator first name.");
		document.FellowRegForm.nom_firstName.focus();
		return false;
	}
	
	if( document.FellowRegForm.nom_lastName.value == "" ){
		alert ("Please enter a nominator last name.");
		document.FellowRegForm.nom_lastName.focus();
		return false;
	}
	
	if( document.FellowRegForm.nom_homePhone.value == "" ){
		alert ("Please enter a nominator home phone number.");
		document.FellowRegForm.nom_homePhone.focus();
		return false;
	}
	
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.FellowRegForm.nom_personalEmail.value)){
		alert("Invalid nominator E-mail Address! Please re-enter.");
		document.FellowRegForm.nom_personalEmail.focus();
		return (false)
		}
	
	if( document.FellowRegForm.nom_personalEmail.value == "" ){
		alert ("Please enter a nominator personal e-mail.");
		document.FellowRegForm.nom_personalEmail.focus();
		return false;
	}
	
	if( document.FellowRegForm.firstName.value == "" ){
		alert ("Please enter a first name.");
		document.FellowRegForm.firstName.focus();
		return false;
	}
	
	if( document.FellowRegForm.lastName.value == "" ){
		alert ("Please enter a last name.");
		document.FellowRegForm.lastName.focus();
		return false;
	}
	
	if( document.FellowRegForm.homeAdd.value == "" ){
		alert ("Please enter a home address.");
		document.FellowRegForm.homeAdd.focus();
		return false;
	}
	
	if( document.FellowRegForm.homeCity.value == "" ){
		alert ("Please enter a home city.");
		document.FellowRegForm.homeCity.focus();
		return false;
	}
	
	if( document.FellowRegForm.homeState.selectedIndex == 0 ){
		alert ("Please enter a home state.");
		document.FellowRegForm.homeState.focus();
		return false;
	}
	
	if( document.FellowRegForm.homeZip.value == "" ){
		alert ("Please enter a home zip.");
		document.FellowRegForm.homeZip.focus();
		return false;
	}
	
	if( document.FellowRegForm.dobMonth.selectedIndex == 0 || document.FellowRegForm.dobDay.selectedIndex == 0 || document.FellowRegForm.dobYear.selectedIndex == 0){
		alert ("Please enter a correct date of birth.");
		document.FellowRegForm.dobMonth.focus();
		return false;
	}
	
	if( document.FellowRegForm.gender.selectedIndex == 0 ){
		alert ("Please enter a gender.");
		document.FellowRegForm.gender.focus();
		return false;
	}
	
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.FellowRegForm.personalEmail.value)){
		alert("Invalid E-mail Address! Please re-enter.");
		document.FellowRegForm.personalEmail.focus();
		return (false)
		}
	
	if( document.FellowRegForm.personalEmail2.value != document.FellowRegForm.personalEmail.value ){
		alert ("Please double check your personal email and email verification.");
		document.FellowRegForm.personalEmail.focus();
		return false;
	}
	
	if( document.FellowRegForm.personalEmail.value == "" ){
		alert ("Please enter a personal e-mail.");
		document.FellowRegForm.personalEmail.focus();
		return false;
	}
	
	if( document.FellowRegForm.homePhone.value == "" ){
		alert ("Please enter a home phone number.");
		document.FellowRegForm.homePhone.focus();
		return false;
	}
	
	if( (document.FellowRegForm.nomSelf[0].checked == false) && (document.FellowRegForm.nomSelf[1].checked == false) ){
		alert ("Please specify whether you are nominating yourself, or someone else.");
		return false;
	}
	
	if( (document.FellowRegForm.activeTrainer[0].checked == false) && (document.FellowRegForm.activeTrainer[1].checked == false) ){
		alert ("Please state whether applicant is currently an active trainer.");
		return false;
	}
	
	if( document.FellowRegForm.yearsTraining.selectedIndex == 0 ){
		alert ("Please select nubmer of years applicant has been training.");
		document.FellowRegForm.yearsTraining.focus();
		return false;
	}
		
	if( document.FellowRegForm.trainingComment.value == ''){
		alert ("Please describe applicant's training practice.");
		document.FellowRegForm.trainingComment.focus();
		return false;
	}
	
}

function toggleNomSelf(){
	
	//alert(document.FellowRegForm.nomSelf[0].checked);
	
	//if user selects check box to nominate self copy nom info to app info
	if(document.FellowRegForm.nomSelf[0].checked)
	{
		document.FellowRegForm.firstName.value = document.FellowRegForm.nom_firstName.value;
		document.FellowRegForm.middleInitial.value = document.FellowRegForm.nom_middleInitial.value;
		document.FellowRegForm.lastName.value = document.FellowRegForm.nom_lastName.value;
		document.FellowRegForm.homePhone.value = document.FellowRegForm.nom_homePhone.value;
		document.FellowRegForm.personalEmail.value = document.FellowRegForm.nom_personalEmail.value;
	}
	
}