if(PageHeight>MaxHeight) { $("oPageMain").style.height=$("oPage").scrollHeight + 40 +"px" $("oRight").style.height=$("oPage").scrollHeight + 120 +"px" $("oMain").style.height=$("oPage").scrollHeight + 211 +"px" } } script>