function validateSendMail() { 
		var errors='';
		//Validate From
			if (document.mailfrm.from.value.length != 0 && !IsEmail(document.mailfrm.from.value)){ //Is formatted as email.
				errors+='- The sender email should be a valid address.\n';
			}
			if (document.mailfrm.mail_1.value.length == 0 && document.mailfrm.mail_2.value.length == 0 && document.mailfrm.mail_3.value.length == 0){
				errors+='- Please enter at least one valid email address.\n';
			}
			if (document.mailfrm.from.value.length == 0){
				errors+='- Please enter an email address that this message should appear from.\n';
			}
		//Validate To
			if (document.mailfrm.mail_1.value.length != 0 && !IsEmail(document.mailfrm.mail_1.value)){ //Is formatted as email.
				errors+='- Email #1 should be a valid email.\n';
			}			
			if (document.mailfrm.mail_2.value.length != 0 && !IsEmail(document.mailfrm.mail_2.value)){ //Is formatted as email.
				errors+='- Email #2 should be a valid email.\n';
			}
			if (document.mailfrm.mail_3.value.length != 0 && !IsEmail(document.mailfrm.mail_3.value)){ //Is formatted as email.
				errors+='- Email #3 should be a valid email.\n';
			}
		//Provide the error list. 
		if (errors) alert('The following error(s) occurred:\n'+errors);  
			document.returnValue = (errors == '');
		}
	function calcEFC() { //calculate and display the EFC
		var thisEFC = 0;
		var thisSC = parseFloat(document.calcfrm.sc.value);
		var thisPC = parseFloat(document.calcfrm.pc.value);

		if (isNaN(thisSC)){thisSC = 0;}
		if (isNaN(thisPC)){thisPC = 0;}
		thisEFC = thisSC + thisPC;
		document.calcfrm.efc.value = thisEFC;
	}
	//Validate the estimation data
	function validateForm() { //v4.0
		var errors='';
		if (document.calcfrm.dep.value == 0){ //Only dependents get both options.
			//Validate PC
				if (document.calcfrm.pc.value.length == 0){
					errors+='- Parental Contribution (PC) is a required field.\n';
				}
				if (!IsNumeric(document.calcfrm.pc.value)){ //Is a number.
					errors+='- Parental Contribution (PC) should be entered as a number.\n';
				}
			//Validate SC	
				if (document.calcfrm.sc.value.length == 0){
					errors+='- Student Contribution (SC) is a required field.\n';
				}
				if (!IsNumeric(document.calcfrm.sc.value)){ //Is a number.
					errors+='- Student Contribution (SC) should be entered as a number.\n';
				}
			 //Validate EFC vs PC
//				if (document.calcfrm.sc.value - 0 < document.calcfrm.pc.value - 0){ //EFC must be larger than PC
//					errors+='- Expected Family Contribution (EFC) should be larger than your parental contribution (PC).\n';
//				}
		}else{ //Independent students only need SC
			//Validate SC	
				if (document.calcfrm.sc.value.length == 0){
					errors+='- Student Contribution (SC) is a required field.\n';
				}
				if (!IsNumeric(document.calcfrm.sc.value)){ //Is a number.
					errors+='- Student Contribution (SC) should be entered as a number.\n';
				}
		}
		if (document.calcfrm.level.value == 1){ //HS info only applies to Freshmen.
				//HS GPA
				if (document.calcfrm.hsgpa.value.length == 0){ //Not blank.
					errors+='- Core high school GPA is a required field.\n';
				}
				if (!IsNumeric(document.calcfrm.hsgpa.value)){ //Is a number.
					errors+='- Core high school GPA should be entered as a number.\n';
				}
				if (document.calcfrm.hsgpa.value > 4){ //Not greater than 4.
					errors+='- Core high school GPA should be on a 4.0 scale.\n';
				}				
				//Validate SAT and ACT
				if (document.calcfrm.satread.value.length == 0 && document.calcfrm.act.value.length == 0){
					errors+='- Either an SAT or ACT score is required.\n';
				}else{
					if (document.calcfrm.satread.value.length == 0){
						//Validate ACT
						if (!IsNumeric(document.calcfrm.act.value)){ //Is a number.
							errors+='- ACT composite score should be entered as a number.\n';
						}
						if (document.calcfrm.act.value-0 > 36){
							errors+='- ACT composite score should be less than 36.\n';
						}
						if (!IsNumeric(document.calcfrm.wact.value)){ //Is a number.
							errors+='- ACT English/Writing Score should be entered as a number.\n';
						}
						if (document.calcfrm.wact.value-0 > 36){
							errors+='- ACT English/Writing Score should be less than 36.\n';
						}
					}else{
						//Validate SAT
						if (!IsNumeric(document.calcfrm.satread.value)){ //Is a number.
							errors+='- SAT should be entered as a number.\n';
						}
						if (document.calcfrm.satread.value > 800 || document.calcfrm.satread.value < 200){
							errors+='- SAT Critical Reading score should be on a 200-800 scale.\n';
						}
						if (document.calcfrm.satmath.value > 800 || document.calcfrm.satmath.value < 200){
							errors+='- SAT Math score should be on a 200-800 scale.\n';
						}
						if (document.calcfrm.satwrite.value > 800 || document.calcfrm.satwrite.value < 200){
							errors+='- SAT Writing score should be on a 200-800 scale.\n';
						}
					}				
				}
		}else{
				//PU GPA
				if (document.calcfrm.pugpa.value > 4){
					errors+='- Purdue GPA should be on a 4.0 scale.\n';
				}
				if (!IsNumeric(document.calcfrm.pugpa.value)){ //Is a number.
					errors+='- Purdue GPA should be entered as a number.\n';
				}	
		}
		//Provide the error list. 
		if (errors) alert('The following error(s) occurred:\n'+errors);  
			document.returnValue = (errors == '');
		}