window.addEventListener?window.addEventListener('load',WindowSizeIE5,false):window.attachEvent('onload',WindowSizeIE5);


function FixHeightWidth(ID, HT, WD, LT, RT, TP, BT)
{
    Elem = GetElem(ID);
    if(!Elem)
    {
        return false;
    }
    else
    {
        if(HT)
        {
            Elem.style.height = HT;
        }
        if(WD)
        {
            Elem.style.width = WD;
        }
        if(LT)
        {
            Elem.style.left = LT;
        }

        if(RT)
        {
            Elem.style.right = RT;
        }

        if(TP)
        {
            Elem.style.top = TP;
        }

        if(BT)
        {
            Elem.style.bottom = BT;
        }

    }
}

function WindowSizeIE5(){
  var appVer = navigator.appVersion;
  var versionStart = appVer.indexOf('MSIE')+5;
  var versionEnd = versionStart+3;
  var actualVer = appVer.substring(versionStart, versionEnd);
  var winW = 630, winH = 460;
  if (navigator.appName == "Microsoft Internet Explorer" && actualVer <= "6.0") {
    winW = document.body.clientWidth;
    winH = document.body.clientHeight;
 // FixHeightWidth(ID, HT, WD, LT, RT, TP, BT);
    FixHeightWidth("mainBody", winH-188+"px", winW-210+"px", "", "", "", "");
    FixHeightWidth("leftMenu", winH-183+"px", "", "", "", "", "");
  }
}
function GetElem(ID)
{
    return document.all ? document.all[ID] : (document.getElementById(ID) ? document.getElementById(ID) : false);
} 