function WindowOnResize(){ var iHeight=screen.height; if ((document.getElementById("divBody").offsetHeight)<(iHeight-192+5)){ iResult=iHeight-192+5; document.getElementById("divBord").style.height=(iResult).toString()+"px"; } else{ iResult=document.getElementById("divBody").offsetHeight+47; document.getElementById("divBord").style.height=(iResult).toString()+"px"; } }