if (parent.location.href.indexOf("index.htm") == -1)
 top.location.href = "index.htm";