/* Make sure we are in the proper context */
var indexPage = /index\.shtml$/;
var insidePage = /inside\.shtml/;
var meRegExp = /\/(\w+)\.shtml$/;
var myLoc = new String(window.location);
var isIndexPage = myLoc.match(indexPage);
var isInsidePage = myLoc.match(insidePage);
var mePage = myLoc.match(meRegExp);

if ((window == top) && !(isIndexPage) && !(isInsidePage))
{  top.location.replace("inside.shtml?" + mePage[1]);
}

function chooseIframe()
{  var locString = new String (document.location);
   var pageName = locString.substring(locString.indexOf('?') + 1);
   var frameLoc = pageName + '.shtml';
   
   if (pageName)
   {  window.frames[0].location = frameLoc;
   }
}

function copyrightOpen()
{  var w = window.open("Copyright.shtml","copyright","width=600,height=500,status=no,resizable=no,scrollbars=yes");
   return w;
}
