function invalidcheck() {	
	if (document.Entry.level_of_education.selectedIndex < 4)
	{
		invalidPop("bach_for_mast")
		return false;
	}
	if (document.Entry.program.options[document.Entry.program.selectedIndex].value == "Teaching - MA")
	{
		if (document.Entry.state.options[document.Entry.state.selectedIndex].value !="FL")
		{
			invalidPop("saintleoflorida");
			return false;
		}
	}
}
	
function checkForm()
{
	//Program checker			
	if (document.Entry.program.options[document.Entry.program.selectedIndex].value=="0")
	{
		alert("\nYou must select a program.");
		document.Entry.program.focus();
		return false;
	} 
	
	//check the basic info
	var state = CheckBasicInfo();
	if(state == false){
		return false;
	}
		
	//level_of_education check
	if (document.Entry.level_of_education.options[document.Entry.level_of_education.selectedIndex].value =="")
	{
		alert("\nYou must select your level of education.");
		document.Entry.level_of_education.focus();
		return false;
	} 
	
	if ((document.Entry.level_of_education.selectedIndex < 4))
	{
		invalidcheck();
		return false;
	} 

	//accept only Masters in Teaching for Florida leads ONLY -09/26/06 lyi
	if (document.Entry.program.options[document.Entry.program.selectedIndex].value == "Teaching - MA")
	{
		if (document.Entry.state.options[document.Entry.state.selectedIndex].value !="FL")
		{
			invalidcheck();
			return false;
		}
	}
	
	//WhenStart check
	if (document.Entry.WhenStart.options[document.Entry.WhenStart.selectedIndex].value=="")
	{
		alert("\nYou must select a start time period.");
		document.Entry.WhenStart.focus();
		return false;
	} 
	
	//MilitaryStatus check
	if (document.Entry.MilitaryStatus.options[document.Entry.MilitaryStatus.selectedIndex].value=="")
	{
		alert("\nYou must select a Military Status.");
		document.Entry.MilitaryStatus.focus();
		return false;
	} 
		
	
function e(s) {

	rex=true;

	if (window.RegExp) 
	{st="a";ex=new RegExp(st);
		if (st.match(ex)) {
		r1=new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
		r2=new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
		b=(!r1.test(s)&&r2.test(s));
		}
		else 
		{rex=false;
		}
	} 
	else
	{	rex=false;
	}
	if(!rex) b=(s.indexOf("@")>0 && s.indexOf(".")>0 && s!="" && s!="enter e-mail");
	return (b);
}

setBool();

// Pressnall Dupe Stopper
if ( typeof ( formSubmission ) == "number" )
{
	return false;
}
formSubmission = 1;
}


