// SetHeight 1.0 by roba
// Simulate height=100% on base page layout element
if (document.all)    {n=0;ie=1;ns6=0;}
if (document.getElementById&&!document.all)    {n=0;ie=0;ns6=1;} 

function setheight(){
	if (ns6) {
		eh = document.getElementById("con_main").scrollHeight;
		eh2 = document.getElementById("footer").scrollHeight;
		th = eh + eh2 + 102;
		wh = innerHeight;
		nh = wh - eh2 - 102;
		if (wh > th) document.getElementById("con_main").style.height=nh+"px";
		}
	else if (ie) {
		eh = document.all("con_main").scrollHeight;
		eh2 = document.all("footer").scrollHeight;
		th = eh + eh2 + 102;
		wh = document.body.offsetHeight;
		nh = wh - eh2 - 102;
		if (wh > eh) document.all("con_main").style.height=nh+"px";
		}	
	}

