top.name=window.location.href; if (self.location==top.location) window.open('.','_top');