function replaceWindowURL( win, url )
{
    win.location.href = url;
}

function doFramesRequired()
{
    if ( top == self )
    {
        var homeURL = "index.php";
        var thisURL = unescape(window.location.pathname);
        var url = homeURL + "?" + thisURL + unescape(window.location.search) ;

        replaceWindowURL( top, url );
    }
}

if ( top == self  &&  "MSIE" == navigator.appName )
    doFramesRequired();

