<!--
  if (self!=top)  {
    alert("Framing of this site is not permitted.");
    parent.top.document.location.href="http://www.boatingevents.com";
  }
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if((browserName == "Netscape" && browserVer >= 4) || (browserName == "Microsoft Internet Explorer" && browserVer >= 4))
  version = 4;
else
  if((browserName == "Netscape" && browserVer >= 3) || (browserName == "Microsoft Internet Explorer" && browserVer >= 3))
    version = 3;
  else version = 2;
if (version >= 3) {
  iXLogoOn = new Image();
  iXLogoOn.src = "/images/ixlogoon.gif";
  iXLogoOff = new Image();
  iXLogoOff.src = "/images/ixlogooff.gif";
  SubscribeOn = new Image();
  SubscribeOn.src = "/images/clickon.gif";
  SubscribeOff = new Image();
  SubscribeOff.src = "/images/clickoff.gif";
}
function ImgOn(imgName,imgSrc) {
if (version >= 3) {
    document.images[imgName].src=eval(imgSrc+".src");
  }
}
function ImgOff(imgName,imgSrc) {
if (version >= 3) {
    document.images[imgName].src=eval(imgSrc+".src");
  }
}
function swSubscribe(OP) {
  var emailOK = "abcdefghijklmnopqrstuvwxyz0123456789. @-_";
  var missinginfo="";
  var tmail=document.eForm.teMail.value.toLowerCase();

  if(tmail == "") {
    missinginfo += "\n     -  eMail address";
    missinginfo += "\n          -FORM: user@home.com";
  }
  else  {
    if((tmail.length < 5) || (tmail.indexOf('@') == -1) || (tmail.indexOf('.') == -1)) {
      missinginfo += "\n     -  Invalid eMail address";
      missinginfo += "\n          -FORM: user@home.com";
    }
    else
      if(tmail.indexOf('@') != tmail.lastIndexOf('@')) {
        missinginfo += "\n     -  Invalid eMail address";
        missinginfo += "\n          -FORM: user@home.com";
      }
      else  {
        for(i=0; i<tmail.length; i++) {
          ch=tmail.charAt(i);
          for(j=0; j<emailOK.length; j++)
            if(ch==emailOK.charAt(j))
            break;
          if(j==emailOK.length)  {
            missinginfo += "\n     -  Invalid character in eMail address";
            missinginfo += "\n          -FORM: user@home.com";
            break;
          }
        }
      }
  }
  if (missinginfo=="")
    var win0 = window.open("/subscribe.htm?OP="+OP+"&EM="+document.eForm.teMail.value, "Subscribe", "status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width=560,height=300,top=120,left=120")
  else  {
    missinginfo ="_____________________________\n" +
    "You failed to correctly provide your:\n" +
    missinginfo + "\n_____________________________" +
    "\nPlease re-enter and submit again!";
    alert(missinginfo);
    return;
  }
}
function swCompose(OP) {
  document.nForm.OP.value=OP;
  document.nForm.submit();
}
function swQuickEvents(OP,CAT) {
  document.eForm.OP.value=OP;
  document.eForm.CAT.value=CAT;
  document.eForm.submit();
}
function swShowAds(OP,SC,PG)  {
  document.sForm.OP.value=OP;
  document.sForm.SC.value=SC;
  document.sForm.PG.value=PG;
  document.sForm.submit();
}
function swShowListings(OP,SC,PG) {
  document.tForm.OP.value=OP;
  document.tForm.SC.value=SC;
  document.tForm.PG.value=PG;
  document.tForm.submit();
}
function swShowForums(OP,FID,PG) {
  document.rForm.OP.value=OP;
  document.rForm.FID.value=FID;
  document.rForm.PG.value=PG;
  document.rForm.submit();
}
function swFeedback(OP) {
  var win2 = window.open("/contact/sendmsg.html", "sendMsg", "status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width=560,height=400,top=60,left=100")
}
//-->
