 onload=adjust;
 onresize=adjust;

 var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
 function adjust() {
  document.documentElement.style.overflow="auto";
  var hdr=document.getElementById("header");
  var ftr=document.getElementById("footer");
  var windowHeight = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
  var windowWidth = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth;
  var h=hdr.offsetHeight+ftr.offsetHeight;
  h=windowHeight-h;
  var lft=document.getElementById("left");
  var rgt=document.getElementById("right");
  lft.style.overflow="hidden";
  lft.style.height=(h-20)+"px";
  if (IE6) {
   lft.style.marginRight="-3px";
  }
  rgt.style.width=(windowWidth-lft.offsetWidth)+"px";
  rgt.style.paddingTop="0px";
  rgt.style.padding="0px";
  rgt.style.margin="0px";
  var ifrm=document.getElementById("AFrame");
  ifrm.style.height=h+"px"
  ifrm.style.width=(windowWidth-lft.offsetWidth)+"px";;
  ifrm.style.position="absolute";
 }