if (parent.location.href == self.location.href) {
  window.location.href = 'index.htm?content='+escape(document.location);
  } else {

  }