// JavaScript Document
				function validate(theForm)
				{
				  var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;	

				  if (theForm.programs.value == "")
				  {
				    alert("Please choose a program.");
					$("#form2").hide();
		            $("#form1").fadeIn(100);
					theForm.programs.focus();
				    return (false);
				  }
				  
				  if (theForm.highestlevel.value == "")
				  {
				    alert("Please choose your education level.");
					$("#form2").hide();
		            $("#form1").fadeIn(100);
					theForm.highestlevel.focus();
				    return (false);
				  }
				  
				  if (theForm.graduation.value == "")
				  {
				    alert("Please enter your graduation year.");
					$("#form2").hide();
		            $("#form1").fadeIn(100);
					theForm.graduation.focus();
				    return (false);
				  }
				  
				  if (theForm.begintime.value == "")
				  {
				    alert("Please select a class start time.");
					$("#form2").hide();
		            $("#form1").fadeIn(100);
					theForm.begintime.focus();
				    return (false);
				  }
				  
				  if (theForm.fname.value == "")
				  {
				    alert("Please enter your First Name.");
				    theForm.fname.focus();
				    return (false);
				  }
				  
				  if (theForm.lname.value == "")
				  {
				    alert("Please enter your Last Name.");
				    theForm.lname.focus();
				    return (false);
				  }
				  
				  if (!theForm.email.value.match(emailExp))
				  {
		           alert("Not a Valid Email!");
		           theForm.email.focus();
		           return (false);
	               }
				  
				  
				  if (theForm.phone1.value == "")
				  {
				    alert("Please enter your phone number.");
				    theForm.phone1.focus();
				    return (false);
				  }
				  				  
				  if (theForm.contacttime.value == "")
				  {
				    alert("Please choose the best time to contact you.");
				    theForm.contacttime.focus();
				    return (false);
				  }
				  
				  if (theForm.address.value == "")
				  {
				    alert("Please enter your address.");
				    theForm.address.focus();
				    return (false);
				  }
				  
				  if (theForm.city.value == "")
				  {
				    alert("Please enter your city.");
				    theForm.city.focus();
				    return (false);
				  }
				  
				  if (theForm.state.value == "")
				  {
				    alert("Please choose your state.");
				    theForm.state.focus();
				    return (false);
				  }
				  
				  if (theForm.zip.value == "")
				  {
				    alert("Please enter your zip code.");
				    theForm.zip.focus();
				    return (false);
				  }

				  document.federicoform.submit();
				  
				  }
				  
