function ensureframeset(parentpath)
{
    if(self==top)
    {
      var parent="index.htm"
      var current=unescape(window.location.pathname);  //if local, looks like "/d:/xxx/yyy.html" (weird leading /)
      var newurl=parentpath + parent + "?" + current;

      if(location.replace)
      {
        location.replace(newurl);   //js 1.1
      }else if(location.assign)
        {
            location.assign(newurl);    //js 1.0?
        }else
        {
        location.href=newurl;
        }
    }
}



function loadpage()
{
    var arg=self.location.search;    //  ?/d:/xxx/yyy.html
    if(arg!=null && arg.length>1)
    {
      arg=arg.substring(1,arg.length);
      top.main.location.href=arg;
    }

}




function returnToContent()
{
    if(self.name=="bigimages")
    {
        document.referrer.focus();
    }else
        {
        window.location.replace("ironmap_content.htm");
        }
}
