
var $mesg = "";

// 2005-07-24
function checkmesg() {
  qs();
//alert(qsParm['e']);
  if (qsParm['e'] == 1) {
    $mesg='<hr width="540" /><p><font color="red">There was a problem sending the mail. Please try again later.</font></p><hr width="540" />';
  }
  else if (qsParm['e'] == 0) {
    $mesg='<hr width="540" /><p><font color="blue">Message has been sent.  Please check your email for more information.  Thank you for exchanging links with us!</font></p><hr width="540" />'; 
  }
  else if (qsParm['e'] == 2) {
    $mesg='<hr width="540" /><p><font color="red">Sorry, you have provided an invalid security code.  Your message was NOT sent.  Please resubmit your form by clicking your browser&apos;s BACK button.</font></p><hr width="540" />'; 
  }
  if ($mesg != "") {
    document.write($mesg);
  }
}

function validate() {
  if (document.linkexchange.email.value == "") {
    alert("You must enter an email address.");
    return false;
  }
  if (document.linkexchange.mesg.value == "") {
    alert("There is no description.  Please provide a short description about your link.");
    return false;
  }
  return true;
}


