function RegFormValidator(form)
{

  if (form.subject.value == "")
  {
    alert("Please enter the subject of your feedback.");
    form.subject.focus();
    return (false);
  }  

  if (form.comment.value == "")
  {
    alert("Please enter your feedback in the comment box.");
    form.fname.focus();
	return (false);
     }

  if (form.codeval.value == "")
  {
    alert("You must re-enter the code in the box provided");
    form.codeval.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();
      }
   }  