
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);
}

	
function checkForm1(theForm) {
	
	var pop = false;
	if (theForm.cat_id.options[theForm.cat_id.selectedIndex].value == "--")
	{
		alert("\nYou must select your area of study.");
		return false;
	}
	else
	{
		pop=true;
	}
	
	
	setBool();
	// Pressnall Dupe Stopper
/*	if ( typeof ( formSubmission ) == "number" ){
	  return false;
	}
	formSubmission = 1;*/
	
/*	pop=false;
	if(pop == true)
	{
	
		key=document.Entry2.key.value;
		cat_id=document.Entry2.cat_id.options[document.Entry2.cat_id.selectedIndex].value;
		conc_id=document.Entry2.Concentration.options[document.Entry2.Concentration.selectedIndex].value;
		fid=document.Entry2.fid.value;
		sid=document.Entry2.sid.value;
		type_id=document.Entry2.type_id.value;

		//document.location='http://www.earnmydegree.com/index.cfm?action=hom.degree&cat_id='+cat_id+'&key='+key+'&landing=1&conc_id='+conc_id+'&type_id='+type_id+'&fid='+fid+'&sid='+sid;
	
	}*/

			
}

	