
    if (parent.location.href == self.location.href){
        window.location.href='index.aspx?page='+location.href.substring(location.href.lastIndexOf('/')+1);
    }

    fsPage=window.top.location.href;
    fsHTTP=fsPage.substring(0,fsPage.indexOf(':')).toUpperCase();
    myPage=location.href.substring(location.href.lastIndexOf('/')+1);

       if(fsHTTP=='HTTPS'){
            window.top.location.href='index.aspx?ssl=no&page='+myPage;
        }

