// JavaScript Document

function GetInnerWidth()
{
    if (self.outerHeight) // all except Explorer
    {
        x = self.outerWidth;
    }
    else if (document.documentElement && document.documentElement.clientHeight)
        // Explorer 6 Strict Mode
    {
        x = document.documentElement.offsetWidth;
    }
    else if (document.body) // other Explorers
    {
        x = document.body.offsetWidth;
    }
    return x;
}

