<!--


function quickBrowserCheck()
{
  if (navigator.appName.toUpperCase() == "NETSCAPE") return(1);
  return(0);
}



function writePrePlan1stSubmit(IEMessage,NavMessage)
{
  t = '<tr><td colspan="2" align="center" class="preplanColspan"><input type="submit" value="';
  if (quickBrowserCheck() == 1)  t = t + NavMessage;
  else t = t + IEMessage;
  t = t + '"></td></tr>';
  document.writeln(t);
}

function email_valid(email)
{
  re = /[\/:,#'`\$~!%\^&\*()\+";<>\?\\|\s]/;
  if (re.test(email)) return(false);
  re = /^[^@]+@.+\.../;
  return(re.test(email));
}

function checkForm(tf){

  b = true;
  if (!confirm("Please click \"OK\" if you have completed the form and want to submit it.\nOtherwise, click \"Cancel\" and complete the form.")) return(false);

  if (tf.First_Name.value.length < 1){
    alert("Please enter your first name.");
    tf.First_Name.focus();
    return(false);
  }
  if (tf.Last_Name.value.length < 2){
    alert("Please enter your last name.");
    tf.Last_Name.focus();
    return(false);
  }
  tf.Name.value = tf.First_Name.value + " " + tf.Last_Name.value;

  if (!email_valid(tf.Personal_email.value) && tf.Personal_telephone.value.length<7){
    b = confirm("Neither the email address nor phone number appears to be valid.\nWe may be unable to contact you.\nClick on OK to submit the form as is,\nor click Cancel to return to the form.");
  }
  return(b);
}


//-->



