function getDimensions()
{
    docheight = -1;
    height = 800;
    if (document.layers || window.innerWidth) {
	//alert("layers");
	height = window.innerHeight;
	if (document.body)
	    docheight = document.body.offsetHeight;
	else
	    docheight = height;
    }
    else if (document.all) {
	//alert("all");
	height = document.body.clientHeight;
	docheight = document.body.scrollHeight;
    }
    else {
	//alert("other");
	height = document.height;
	docheight = document.body.offsetHeight;
    }
    //alert("height = " + height + ", docheight = " + docheight);
    if (docheight > height)
	height = docheight;
    //spacer.height = height;
    //document.images[0].height = height;
    //if (width > spacer.width * 2)
	//main.width = width - spacer.width;
}

function setSize()
{
    getDimensions();
    //alert("i = " + i);
    //alert("document.images['spacer']=" + document.images['spacer']);
    document.spacer.height = height;
}
