<!--
var date = new Date();
var firstName = "";
var lastName = "";
var minit = "";
var pid = "";
var street = "";
var city = "";
var state = "";
var zip = "";
var phone = "";
var email = "";
var hschool = "";
var hs_honors = "";
var num_hs_honors = "";
var hs_ap = "";
var num_hs_ap = "";
var hs_ib = "";
var num_hs_ib = "";
var college = "";
var college_where = "";
var num_college = "";
var activities = "";
var comm_activities = "";
var leadership_roles = "";
var awards="";
var statement = "";

function CheckPassword(){
		//alert ("Check password function!");
		
		appForm2.firstName.value =        appForm.firstName.value;
		appForm2.lastName.value =         appForm.lastName.value;
		appForm2.minit.value =            appForm.minit.value;
		appForm2.pid.value =              appForm.pid.value;
		appForm2.street.value =           appForm.street.value;
		appForm2.city.value =             appForm.city.value;
		appForm2.state.value =            appForm.state.value;
		appForm2.zip.value =              appForm.zip.value;
		appForm2.phone.value =            appForm.phone.value;
		appForm2.email.value =            appForm.email.value;
		appForm2.hschool.value =          appForm.hschool.value;
		appForm2.hs_honors.value =        appForm.hs_honors.value;
		appForm2.num_hs_honors.value =    appForm.num_hs_honors.value;	
		appForm2.hs_ap.value =            appForm.hs_ap.value;
		appForm2.num_hs_ap.value =        appForm.num_hs_ap.value;
		appForm2.hs_ib.value =            appForm.hs_ib.value;
		appForm2.num_hs_ib.value =        appForm.num_hs_ib.value;
		appForm2.college.value =          appForm.college.value;
		appForm2.college_where.value =    appForm.college_where.value;
		appForm2.num_college.value =      appForm.num_college.value;
		appForm2.activities.value =       appForm.activities.value; 
		appForm2.comm_activities.value =  appForm.comm_activities.value;
		appForm2.leadership_roles.value = appForm.leadership_roles.value;
		appForm2.awards.value = appForm.awards.value;
		appForm2.statement.value =        appForm.statement.value;
		
		if (appForm2.pid.value == ""){
		alert ("Please enter your CSU PID number.");
		}
		else if (appForm2.pid.value.length !=9){
		alert ("You must enter all nine digits of your PID.");
		}
		else if (appForm2.pid.value.charAt(0)!='8'){
		alert ("Your pid number must start with 8.");
		}
		else if (appForm2.retrpass.value == ""){
		alert ("Your Password cannot be blank.");
		}
		else if (appForm2.confpass.value != appForm2.retrpass.value){
		alert ("Your Passwords do not match.");
		}
		else if (appForm2.firstName.value == ""){
		alert ("You must enter your first name.");
		}
		else if (appForm2.lastName.value == ""){
		alert ("You must enter your last name.");
		}
		else if (appForm2.email.value == ""){
		alert ("You must enter your email address.");
		}
		else{
		appForm2.submit();
		}
	}

function ValidateappForm() {
	var pid_check = appForm.pid.value;
	var statement_check = appForm.statement.value;
	var FieldList = "";
	var digits = "0123456789";
 
	if (appForm.firstName.value == ""){
		FieldList = "First Name\n"; // Message to user.
	}
	if (appForm.lastName.value == ""){
		FieldList = FieldList + "Last Name\n"; // Message to user.
	}
	if (appForm.pid.value == ""){
		FieldList = FieldList + "Social Security Number\n"; // Message to user.
	}
	if (appForm.street.value == ""){
		FieldList = FieldList + "Street\n"; // Message to user.
	}
	if (appForm.city.value == ""){
		FieldList = FieldList + "City\n"; // Message to user.
	}
	if (appForm.state.value == ""){
		FieldList = FieldList + "State\n"; // Message to user.
	}
	if (appForm.zip.value == ""){
		FieldList = FieldList + "Zip Code\n"; // Message to user.
	}
	if (appForm.email.value == ""){
		FieldList = FieldList + "Email Address\n"; // Message to user.
	}
	if (appForm.phone.value == ""){
		FieldList = FieldList + "Phone Number\n"; // Message to user.
	}
	if (appForm.hschool.value == ""){
		FieldList = FieldList + "High School\n"; // Message to user.
	}
	if (appForm.hs_honors.value == ""){
		FieldList = FieldList + "High school honors course information\n"; // Message to user.
	}
	if (appForm.hs_ap.value == ""){
		FieldList = FieldList + "High school AP course information\n"; // Message to user.
	}
	if (appForm.hs_ib.value == ""){
		FieldList = FieldList + "High school IB course information\n"; // Message to user.
	}
	if (appForm.college.value == ""){
		FieldList = FieldList + "College course information\n"; // Message to user.
	}
	if (appForm.activities.value == ""){
		FieldList = FieldList + "High school clubs, organizations, or activities\n"; // Message to user.
	}
	if (appForm.comm_activities.value == ""){
		FieldList = FieldList + "Community activities\n"; // Message to user.
	}
	if (appForm.leadership_roles.value == ""){
		FieldList = FieldList + "Leadership roles\n"; // Message to user.
	}
	if (appForm.awards.value == ""){
		FieldList = FieldList + "Academic or community awards\n"; // Message to user.
	}
	if (appForm.statement.value == ""){
		FieldList = FieldList + "Personal Statement\n"; // Message to user.
	}
	if (pid_check.length != 9) {
		FieldList = "You must enter all NINE digits of your PID Number.\n";
	}
	if ((digits.indexOf(pid_check.charAt(0))) !='8' ) {
		FieldList = FieldList+"Your PID number start with an 8.\n";
			
		}
	for (var i=0; i<10; i++) {
		if ((digits.indexOf(pid_check.charAt(i))) < 0 ) {
			FieldList = "Your PID number must be nine NUMERIC digits.\n";
			break;
		}
	}
	if (statement_check.length > 6000) {
		FieldList = "Your statement must be less than 500 words.\n";
	}
 
	if (FieldList == ""){
		appForm.submit();
	} else 
		{ 
		alert("You must complete or correct the following fields before submitting your application:\n\n" + FieldList);
	}
}
-->


