if (parent.location.href == self.location.href) {
  window.location.href = "/default.asp?p=" + window.location.href;
}