var filename
var startpos
var searchitem 
if (window.location.protocol == "http:") 
  {
  searchitem = window.location.pathname;
  filename = new String(window.location.href);
  startpos = filename.search(searchitem);
  filename = filename.substring(startpos+1, 1024)
  filename = '/index.php?name=' + filename; //add path to php routine

  if (parent.location.href == self.location.href)
      {
     window.location.href = filename;
      }
   }
