
function changem(text) {

/*
   ifob = parent.document.getElementById("ifmain");

   if (ifob) {
      ifob.style.height = parent.document.body.clientHeight;
      ifob.style.width = parent.document.body.clientWidth - 150;
      ifob.style.left = 150;

      ob = document.getElementById("ifmain");
      if (ob) {
         ob.style.paddingLeft=0;
      }
      ob = document.getElementById("thesky");
      if (ob) {
         ob.style.left=0;
         document.getElementById("mainland").style.left=0;
         document.getElementById("ul").style.left=0;
      }
   }
*/

   var ob = document.getElementById("homeptr");
   if (ob) {
      ob.innerHTML = "";
   }

   if (!parent.document.getElementById("ifmain")) {
      window.location="index.html?" + text;
      /*
      ob = document.getElementById("homeptr");
      if (ob) {
         ob.innerHTML = "<a href='index.html'>(main page)</a>";
      }
      */
   }
   else if (text == "root") {
      var parts = String(window.location).split('?');
      var f = window.frames["themain"];
      if (window.frames.length > 1) {
         if (f && parts.length == 2) {
            f.location.href = parts[1] + ".html";
         }
      }
   }
}

/* if (window.parent.frames.length>0) { } */



