function validateForm(){

  if  (document.form1.courseName.value == "blank") 
  {                                         
	alert("You must provide the course name.");   
	document.form1.courseName.focus();                                      
	return false;                                         
  }
  
  if  (document.form1.courseSection.value == "blank") 
  {                                         
	alert("You must provide the course section.");   
	document.form1.courseSection.focus();                                      
	return false;                                         
  }

  if  (document.form1.instructor.value == "") 
  {                                         
	alert("You must provide the instructor's name.");   
	document.form1.instructor.focus();                                      
	return false;                                         
  }

  if  (document.form1.instructorEmail.value == "") 
  {                                         
	alert("You must provide the instructor's email address.");   
	document.form1.instructorEmail.focus();                                      
	return false;                                         
  }
  

  if ( (document.form1.instructorEmail.value.indexOf("@") == "-1") || (document.form1.instructorEmail.value.indexOf(".") == "-1") ) 
  {
  	alert ("Please enter a valid email address.");	
    document.form1.instructorEmail.focus();                                      
	return false; 
  }

  if  (document.form1.semester.value == "blank") 
  {                                         
	alert("You must provide the semester.");   
	document.form1.semester.focus();                                      
	return false;                                         
  }

  if  (document.form1.first1.value == "") 
  
  {                                         
	alert("You must provide a first name for student 1.");   
	document.form1.first1.focus();                                      
	return false;                                         
  }
  
  if  (document.form1.last1.value == "") 
  {                                         
	alert("You must provide a last name for student 1.");   
	document.form1.last1.focus();                                      
	return false;                                         
  }
  
  if  (document.form1.username1.value == "") 
  {                                         
	alert("You must provide a valid username for student 1.");   
	document.form1.username1.focus();                                      
	return false;                                         
  }
  
  if  (document.form1.username1.value.indexOf("@") == "-1")  
  {
  	alert ("Please enter a valid username for student 1.");	
    document.form1.username1.focus();                                      
	return false; 
  }
  
  /*if ( document.form1.yes1.checked == false )
 

	   {

 	alert("Please choose and answer.");

	document.form1.yes1.focus();

	return false;

  }	*/

document.form1.submit();
}
