function rjcOpenWin(rjcPage) {
  rjcWin = window.open(rjcPage,"Window");
  rjcWin.focus();
}

function checkrequired(which) {
  var pass=true;
  if (document.images) {
    for (i=0;i<which.length;i++) {
      var tempobj=which.elements[i];
      if (tempobj.name.substring(0,8)=="required") {
        if (((tempobj.type=="text"||tempobj.type=="textarea")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s" && tempobj.selectedIndex==0)) {
          pass=false;
          break;
        }
     }
  }
}
if (!pass) {
  shortFieldName=tempobj.title;
  alert("Please enter your details in the "+shortFieldName+" field.");
  return false;
}
else
  return true;
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function checkBrowser()
{
   if(window.clientInformation)
   {
      myIndex   = window.clientInformation.userAgent.indexOf("MSIE");
      myVersion = window.clientInformation.userAgent.substr(myIndex+5,3);
      if (myVersion > 5.4)
      {
         return(true);
      }
   }
   return(false);
}


function switchState() 
{
if(checkBrowser()) {
   CONTAINER.style.filter = "progid:DXImageTransform.Microsoft.GradientWipe(duration=5, gradientsize=.4, motion=forward, wipestyle=0)";
   CONTAINER.filters[0].Apply();
   boatpic.style.visibility ="visible";
   logo.style.visibility="visible";
   line1.style.visibility="visible";
   line2.style.visibility="visible";
   line3.style.visibility="visible";
   line4.style.visibility="visible";
   line5.style.visibility="visible";
   line6.style.visibility="visible";
   line7.style.visibility="visible";
   line8.style.visibility="visible";
   line9.style.visibility="visible";
   line10.style.visibility="visible";
   line11.style.visibility="visible";
   line12.style.visibility="visible";
   line13.style.visibility="visible";
   line14.style.visibility="visible";
   line15.style.visibility="visible";
   line16.style.visibility="visible";
   line17.style.visibility="visible";
   assist.style.visibility="visible";
   contact.style.visibility="visible";
   CONTAINER.filters[0].Play();
   }
   else
   {
   window.location="index2.html"
   return

   }
}
