if (top == self){
var myPage = self.location.href
var cropIt = myPage.lastIndexOf(".");
var frameUrl = myPage.substring(0, cropIt);
var frameUrl = frameUrl + "-frame.php";
top.location.replace(frameUrl);
}
