if (document.location == top.document.location) 
  document.location = "index.html" 
