function validate(theForm)
{var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;if(theForm.a_campus.value=="")
{alert("Please choose a campus.");return(false);}
if(theForm.program.value=="- select one -")
{alert("Please choose a program.");return(false);}
if(theForm.fname.value=="")
{alert("Please enter your First Name.");return(false);}
if(theForm.lname.value=="")
{alert("Please enter your Last Name.");return(false);}
if(!theForm.email.value.match(emailExp))
{alert("Not a Valid Email!");return(false);}
if(theForm.phone1.value=="")
{alert("Please enter your Cell Phone.");return(false);}
if(theForm.contact_time.value=="")
{alert("Please select a contact time.");return(false);}
if(theForm.address1.value=="")
{alert("Please enter your Address.");return(false);}
if(theForm.city.value=="")
{alert("Please enter your City.");return(false);}
if(theForm.zip.value=="")
{alert("Please enter your Zip.");return(false);}
if(theForm.state.value=="")
{alert("Please enter your State.");;return(false);}
if(theForm.gradyear.value=="")
{alert("Please enter your Graduation Year.");return(false);}
if(theForm.educationlevel.value=="")
{alert("Please choose your previous education.");return(false);}
if(theForm.start_time.value=="")
{alert("Please select a class start time.");return(false);}
document.form1.submit();}
var campus=new Array(3);campus["Los Angeles"]=["- select one -","Dental Assisting","Health Claims/Medical Biller","Massage Therapy","Medical Assistant","Optical Dispensing","Pharmacy Technician","Surgical Technology","Vocational Nursing"];campus["Orange County"]=["- select one -","Dental Assisting","Health Claims/Medical Biller","Health Information Technology","Massage Therapy","Medical Assistant","Optical Dispensing","Pharmacy Technician","Respiratory Therapy","Surgical Technology","Vocational Nursing"];campus["Ontario"]=["- select one -", "Dental Assisting","Health Claims/Medical Biller","Massage Therapy","Medical Assistant","Optical Dispensing","Pharmacy Technician","Respiratory Therapy","Surgical Technology"];function removeOptions(optionMenu)
{for(i=0;i<optionMenu.options.length;i++)
optionMenu.options[i]=null;}
function addOptions(optionList,optionMenu)
{var i=0;removeOptions(optionMenu);for(i=0;i<optionList.length;i++)
optionMenu[i]=new Option(optionList[i],optionList[i]);}