var start_width = 0;
var start_height = 0;

function findLivePageWidth() {
    if (window.innerWidth != null)
        return window.innerWidth;
    else if (document.body.clientWidth != null)
        /* defined after page loaded. */
        return document.body.clientWidth;
    else
        return null;
}

function findLivePageHeight() {
    if (window.innerHeight != null)
        return window.innerHeight;
    else if (document.body.clientHeight != null)
        /* defined after page loaded. */
        return document.body.clientHeight;
    else
        return null;
}

function fixNetscapeCSS() 
{
    current_width = findLivePageWidth();
    current_height = findLivePageHeight();
    if (current_width != start_width || current_height != start_height)
        location.reload();
}

if (document.layers) {
    onresize = fixNetscapeCSS;
}

