window.onload = function()
{
	setSize()
}

window.onresize = function()
{
	setSize()
}

function getBrowserWH()
{
    var aWinWH = Array();

    if (self.innerHeight) // all except Explorer
    {
      aWinWH[0] = self.innerWidth;
      aWinWH[1] = self.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode
    {
      aWinWH[0] = document.documentElement.clientWidth;
      aWinWH[1] = document.documentElement.clientHeight;
    }
    else if (document.body) // other Explorers
    {
      aWinWH[0] = document.body.clientWidth;
      aWinWH[1] = document.body.clientHeight;
    }

    return aWinWH;
}
    
function setSize() 
{
		
	var docDisplayAreaElement = parent.document.getElementById('page_contents');
	/*docDisplayAreaElement.style.width = getBrowserWH()[0] - 220;/**/
	docDisplayAreaElement.style.height = getBrowserWH()[1] - 10;

}