if (parent.location.href == self.location.href) {    if (window.location.href.replace)        window.location.replace('index.html');    else        // causes problems with back button, but works        window.location.href = 'index.html';}