if(self!=parent)
top.location = self.location;