function load_file_content(sFilename)
{
	var objXml;
	if (document.getElementById){
		objXml = new XMLHttpRequest();
		objXml.open("GET", sFilename, false);
		objXml.send(null);
		return objXml.responseText;
	}
}

function GetObj(id)
{
	return window.document.getElementById(id);
}

function LoadMain()
{
	_RSW();
	GetObj("container").style.visibility="visible";
}

function _RSW()
{
	var o;

	o = GetObj("container")
	h = document.body.clientHeight - 2*o.offsetTop
	o.style.height = h + "px"

	o = GetObj("content")
	o.style.height = h-140 + "px"

	o = GetObj("content_none")
	if (o != null)
	{
		o.style.height = h-140 + "px"
	}

	o = GetObj("scrolltext")
	o.style.height = h-140 + "px"
}

addLoadHandler('LoadMain');

