function fixH(one,two) {
	if (document.getElementById(one)) {
		var lh=document.getElementById(one).offsetHeight;
		var rh=document.getElementById(two).offsetHeight;
		var nh = Math.max(lh, rh);
		if(nh==rh)
			document.getElementById(one).style.height=nh+"px"
		else{
			var fh = lh-rh;
			document.getElementById("space").style.height=fh+"px";
		}
		
	} 
}
		
window.onload=function(){
		fixH('maincontent','left');
}