function validate() 
{

   //must select at least one day of conference unless you're attending pre/post intensive
   if (!(document.form2.agree.checked == true)) 
   {
       alert("You must agree to the conest terms to make an entry.");
	   document.form2.agree.focus();
	   return false;
   }
   if (document.form2.entry_name.value == "") 
   {
       alert("Please enter an entry name.");
	   document.form2.entry_name.focus();
	   return false;
   }

	
   var index = document.form2.entry_type.selectedIndex;
   if (document.form2.entry_type.options[index].value == 0)
    {
       alert("Please choose an entry type.");
	   document.form2.entry_type.focus();
	   return false;
   }
   if (document.form2.file.value == "") 
   {
       alert("Please select a file to upload.");
	   document.form2.file.focus();
	   return false;
   }

   
   return true;
}


