function checkcareerday (form)
{
  // BEGIN DATE CHOICE BLOCK
  // Comment the following block out if only one date is scheduled: 
  /* */
  myOption = -1;
  for (i=form.dateAttending.length-1; i > -1; i--) {
    if (form.dateAttending[i].checked) {
    myOption = i; i = -1;
    }
  }
  if (myOption == -1) {
    alert("Please tell us which Career Day event you'll be attending.");
    return false;
  }
  
  // END DATE CHOICE BLOCK
  
  if (form.firstName.value == "") {
    alert( "Please tell us your first name." );
    form.firstName.focus();
    return false ;
  }
  if (form.lastName.value == "") {
    alert( "Please tell us your last name." );
    form.lastName.focus();
    return false ;
  }
  if (form.Email.value == "") {
    alert( "Please tell us your email address." );
    form.Email.focus();
    return false ;
  }
  var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
  var address = form.Email.value;
   if(reg.test(address) == false) {
      alert('Invalid email address!\r\nPlease re-enter your email address.');
	  form.Email.focus();
      return false;
   }
  if (form.homePhone.value.search(/\d{3}\-\d{3}\-\d{4}/)==-1)
   {
      alert("The home phone number you entered is not valid.\r\nPlease enter a home phone number with the format xxx-xxx-xxxx.");
	  form.homePhone.focus();
      return false;
   }
  if (form.HighSchool.value == "") {
    alert( "Please tell us the name of the high school from which you did or will graduate." );
    form.HighSchool.focus();
    return false ;
  }
  if (form.GraduationYear.value == "") {
    alert( "Please select the year in which you graduated from high school or received your GED." );
    form.GraduationYear.focus();
    return false ;
  }
  if (form.Campus.selectedIndex == 0) {
    alert( "Please select the South Hills location where you will be attending Career Day." );
    form.Campus.focus();
    return false ;
  }
  if (form.program.selectedIndex == 0) {
    alert( "Please select the program in which you are most interested." );
    form.program.focus();
    return false ;
  }
  return true ;
}

