if(self.location==parent.location){
   self.location = "index.php?inside="+self.location.href;
 } 