function fnForceFrames(inClickedLink)
{
  var myProtocol = document.location.protocol;
  var myHostname = document.location.hostname;
  var myPathname = document.location.pathname;
  var mySearch   = document.location.search;
  var myHash     = document.location.hash;

  if(top == self)
  {
    if(inClickedLink || document.referrer.indexOf("?force_frames=N") == -1)
    {
      // the "force_frames=N" value was not set - load the page into the frameset

      var myLastIndexOf = myPathname.lastIndexOf("/");
      var myPage        = myPathname.substr(myLastIndexOf+1);

      fnTorjPopup(myPage);

      top.location.href = "index.shtml";
    }
    else
    {
      // the "force_frames=N" value was set - add the "force_frames=N" to this page 
      //  so it stays outside of the frameset

      var myNewUrl = myProtocol + "//" + myHostname + myPathname + "?force_frames=N" + myHash;
      
      top.location.href = myNewUrl;
    }

  }
}

