function windowHeight() {
        // Standard browsers (Mozilla, Safari, etc.)
        if (self.innerHeight)
        return self.innerHeight;
        // IE 6
        if (document.documentElement && document.documentElement.clientHeight)
        return document.documentElement.clientHeight;
        // IE 5
        if (document.body)
        return document.body.clientHeight;
        // Just in case.
        return 0;
        }

function windowWidth() {
        // Standard browsers (Mozilla, Safari, etc.)
        if (self.innerWidth)
        return self.innerWidth;
        // IE 6
        if (document.documentElement && document.documentElement.clientWidth)
        return document.documentElement.clientWidth;
        // IE 5
        if (document.body)
        return document.body.clientWidth;
        // Just in case.
        return 0;
        }

function handleResize() {
         var height = windowHeight();
         var width = windowWidth();
         document.getElementById('container').style.height = height + 'px';
         document.getElementById('leftBlock').style.height = height - document.getElementById('footerBlock').offsetHeight + 'px';
         document.getElementById('mainBlock').style.height = height - document.getElementById('footerBlock').offsetHeight + 'px';
         document.getElementById('rightBlock').style.height = height - document.getElementById('footerBlock').offsetHeight + 'px';
         document.getElementById('mainBlock').style.width = width * 0.50 + 'px';
         document.getElementById('rightBlock').style.width = width - document.getElementById('leftBlock').offsetWidth - document.getElementById('mainBlock').offsetWidth + 'px';
         document.getElementById('left').style.bottom = document.getElementById('footerBlock').offsetHeight + 165 + 'px';
         //document.getElementById('leftBlock').style.background = 'url(../../picture/layout/webLogo.gif) no-repeat 50% ' + (document.getElementById('leftBlock').offsetHeight - document.getElementById('left').offsetHeight - 150) + 'px';
         if (document.getElementById('FNote'))
           {
            document.getElementById('content').style.height = document.getElementById('mainBlock').offsetHeight - document.getElementById('FNote').offsetHeight - 30 +'px';
            } else { document.getElementById('content').style.height = document.getElementById('mainBlock').offsetHeight - 30 +'px'; }

         }

window.onresize = handleResize;
window.onload = handleResize;