<!--
if (self!=top)  {
  alert("Framing of this site is not permitted.");
  parent.top.document.location.href="http://www.boatpix.com";
}
var message="Copyright BOATPIX.com, Inc. 1981 - 2012. All rights reserved.";
if (document.layers) {
		document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
function click(e)
{
  if(document.all)  {
    ppcXC = window.event.offsetX;
    ppcYC = window.event.offsetY;
    if (event.button == 2) {
      alert(message);
      return false;}}
  if(document.layers)  {
    ppcXC = e.x;
    ppcYC = e.y;
    if (e.which == 3) {
      alert(message);
      return false;}}
}

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) {
  CharCountOff = new Image();
  CharCountOff.src = "/events/images/charcountoff.gif";
  CharCountOn = new Image();
  CharCountOn.src = "/events/images/charcounton.gif";
  ViewOff = new Image();
  ViewOff.src = "/events/images/viewoff.gif";
  ViewOn = new Image();
  ViewOn.src = "/events/images/viewon.gif";
  CancelOff = new Image();
  CancelOff.src = "/events/images/canceloff.gif";
  CancelOn = new Image();
  CancelOn.src = "/events/images/cancelon.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 CharCount(sString) {
  var charString=sString.value;
  alert(charString.length + " Characters.");
  sString.focus()
  }
function swCancel(Loc) {
  if(confirm("Confirm Cancel. . ."))
    document.location=Loc;
  return;
  }
function PreValidate(OP,ID) {
  var checkOK = "0123456789.-() ";
  var numOK = "0123456789";
  var alphaOK="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  var tnum = "";
  var cnum = "";
  var missinginfo = "";
  isValid = true;
  var tnum;
  if(document.eForm.lCategories.selectedIndex==0)
    missinginfo += "\n     -  Event Category";
  if(document.eForm.tEventDate.value=="")
    missinginfo += "\n     -  Date of Event";
  if(document.eForm.tCountry.value=="")
    missinginfo += "\n     -  Country";
  else
  {
    var CountryCode=document.eForm.tCountry.value.toUpperCase();
    if(CountryCode.length<2)
      missinginfo += "\n     -  Invalid Country";
    else
    {
      isValid=true;
      for(i=0; i < CountryCode.length; i++)
      {
        ch = CountryCode.charAt(i);
        for(j=0;j<alphaOK.length; j++)
          if(ch==alphaOK.charAt(j))
            break;
        if(j == alphaOK.length) {
          missinginfo += "\n     -  Invalid Country Code";
          isValid=false;
        break;
        }
      }
     if(isValid==true)
      if(CountryCode=="US" || CountryCode=="USA")
        if(!document.eForm.lStates.selectedIndex)
          missinginfo += "\n     -  State (US Only)";
    }
  }

  var tmail=document.eForm.teMail.value.toLowerCase();
  if(tmail != "") {
    if((tmail.length < 6) || (tmail.indexOf('@') == -1) || (tmail.indexOf('.') == -1)) {
      missinginfo += "\n     -  Invalid eMail address";
      missinginfo += "\n          -FORM: user@home.com";
    }
  }
  if (missinginfo != "") {
    missinginfo ="_____________________________\n" +
    "  You failed to correctly provide your:\n" +
    missinginfo + "\n_____________________________" +
    "\n  Please re-enter and submit again!";
    alert(missinginfo);
    return;
  }
  document.eForm.ID.value=ID;
  document.eForm.OP.value=OP;
  document.eForm.submit();
}
//-->

