function RegFormValidator(form)
{

  if (form.userName.value == "")
  {
    alert("Please enter your Tufts (ending in tufts.edu) email address.");
    form.userName.focus();
    return (false);
  }  

  if (form.fname.value == "")
  {
    alert("Please enter your first name.");
    form.fname.focus();
	return (false);
     }

  if (form.lname.value == "")
  {
    alert("Please enter your last name.");
    form.lname.focus();
    return (false);
  }
   
  if (form.codeval.value == "")
  {
    alert("You must re-enter the code in the box provided");
    form.codeval.focus();
    return (false);
  }    
  
  if (form.license_accept.checked == false)
  {
    alert("If you wish to download the Tufts wordmark, you must check the box affirming you have read and will abide by the Visual Identity Guidelines.");
    form.license_accept.focus();
    return (false);
  }   
  
  return (true);
  }
  
  
  
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=400');");
}

   var submitcount=0;
   function checkSubmit() {

      if (submitcount == 0)
      {
      submitcount++;
      document.Surv.submit();
      }
   }  