
var $mesg = "";

// 2005-07-24
function checkmesg() {
  qs();
//alert(qsParm['e']);
  if (qsParm['e'] == 1) {
    $mesg='<hr /><p><font color="red">There was a problem sending the mail. Please try again later or send the message to the email listed above using your own mail client program.</font></p><hr />';
  }
  else if (qsParm['e'] == 0) {
    $mesg='<hr /><p><font color="blue">Message has been sent.  Thank you for your input!</font></p><hr />'; 
  }
  else if (qsParm['e'] == 2) {
    $mesg='<hr /><p><font color="red">Sorry, you have provided an invalid security code.  Your message was NOT sent.  Please resubmit your form.</font></p><hr />'; 
  }
  if ($mesg != "") {
    document.write($mesg);
  }
}

function validate() {
  if (document.contactus.mesg.value == "") {
    alert("There is no message.  Mail has not been sent.");
    return false;
  }
  return true;
}


