﻿<!-- Hide script from old browsers

function checkData2()
{

var str=document.KCCform.email.value;
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
var holder=document.KCCform.email2.value;
var maxchars = 200;

if(document.KCCform.firstname.value=="")
	{
	alert("Please enter your first name.");
	document.KCCform.firstname.focus()
	document.KCCform.firstname.select()
	return (false);
	}
if(document.KCCform.lastname.value=="")
	{
	alert("Please enter your last name.");
	document.KCCform.lastname.focus()
	document.KCCform.lastname.select()
	return (false);
	}
if(document.KCCform.email.value=="")
	{
	alert("Please input an email address.");
	document.KCCform.email.focus()
	document.KCCform.email.select()
	return (false);
	}
if (!(filter.test(str)))
	{
	alert("Please input a valid email address!");
	document.KCCform.email.focus()
	document.KCCform.email.select()
	return (false);
	}
if(document.KCCform.email2.value=="")
	{
	alert("Please verify your email address.");
	document.KCCform.email2.focus()
	document.KCCform.email2.select()
	return (false);
	}
if (document.KCCform.email2.value != document.KCCform.email.value)
	{
	alert("Email addresses don't match. Please re-enter.");
	document.KCCform.email2.focus()
	document.KCCform.email2.select()
	return (false);
	}
if(document.KCCform.interest.value=="")
	{
	alert("Please enter your interests.");
	document.KCCform.interest.focus()
	document.KCCform.interest.select()
	return (false);
	}
if(document.KCCform.interest.value.length > maxchars) {
   alert('Too much data in the text box! Please remove '+
    (document.KCCform.interest.value.length - maxchars)+ ' characters');
	document.KCCform.interest.focus()
	document.KCCform.interest.select()
   return false; }
  			
			
else{return true}			
}
	

		
function checkData()
{
if(document.KCCform.firstname.value=="")
	{
	alert("Please enter your first name.");
	document.KCCform.firstname.focus()
	document.KCCform.firstname.select()
	return (false);
	}
if(document.KCCform.lastname.value=="")
	{
	alert("Please enter your last name.");
	document.KCCform.lastname.focus()
	document.KCCform.lastname.select()
	return (false);
	}
if(document.KCCform.address.value=="")
	{
	alert("Please enter your street address.");
	document.KCCform.address.focus()
	document.KCCform.address.select()
	return (false);
	}	
if(document.KCCform.city.value=="")
	{
	alert("Please enter your city name.");
	document.KCCform.city.focus()
	document.KCCform.city.select()
	return (false);
	}	
if(document.KCCform.state.value=="")
	{
	alert("Please enter your state abbreviation.");
	document.KCCform.state.focus()
	document.KCCform.state.select()
	return (false);
	}		
if(document.KCCform.zip.value=="")
	{
	alert("Please enter your zip code.");
	document.KCCform.zip.focus()
	document.KCCform.zip.select()
	return (false);
	}
if(document.KCCform.school.value=="")
	{
	alert("Please enter your High School name.");
	document.KCCform.school.focus()
	document.KCCform.school.select()
	return (false);
	}
if(document.KCCform.grad.value=="")
	{
	alert("Please enter your Graduation Year.");
	document.KCCform.grad.focus()
	document.KCCform.grad.select()
	return (false);
	}
//if((document.KCCform.viewbook.checked == false) && (document.KCCform.catalog.checked == false) && (document.KCCform.app.checked == false) && (document.KCCform.finaid.checked == false) && (document.KCCform.act.checked == false) && (document.KCCform.fsched.checked == false) && (document.KCCform.spsched.checked == false) && (document.KCCform.ssched.checked == false) && (document.KCCform.program.value==""))
if((document.KCCform.catalog.checked == false) && (document.KCCform.app.checked == false) && (document.KCCform.finaid.checked == false) && (document.KCCform.act.checked == false) && (document.KCCform.program.value==""))
	{
	alert ("Please make an Information Request choice!")
	document.KCCform.viewbook.focus()
	return (false);
	}
  			
			
else{return true}			
}
	
// End hiding script from old browsers -->
