// Function to resize the window to fullscreen height
var contentHeight;
var leftBoxHeight;

function determinContentHeight() {
contentHeight = document.getElementById('content').offsetHeight;
leftBoxHeight = document.getElementById('leftBox').offsetHeight;
}

function getWindowHeight() {

var windowHeight=0;

if (typeof(window.innerHeight)=='number') {
    windowHeight=window.innerHeight;
  } else {
    if (document.documentElement && document.documentElement.clientHeight) {
      windowHeight=document.documentElement.clientHeight;
    } else {
      if (document.body&&document.body.clientHeight) {
        windowHeight=document.body.clientHeight;
      }
    }
  }
  return windowHeight;
} 

function resize() {
  //alert("huibuh!");
 // alert(getWindowHeight()-document.getElementById('header').offsetHeight-document.getElementById('menutop').offsetHeight-document.getElementById('footer').offsetHeight);

  //contentHeight = document.getElementById('content').offsetHeight;
  //alert (contentHeight);
  newSize = (getWindowHeight()-document.getElementById('header').offsetHeight-document.getElementById('menutop').offsetHeight-document.getElementById('footer').offsetHeight);
  //alert (newSize);

  if (newSize < contentHeight) newSize = contentHeight+2;
  if (newSize < leftBoxHeight) newSize = leftBoxHeight+12;

  document.getElementById('content').style.height=(newSize-92)+"px";
  document.getElementById('leftBox').style.height=(newSize-72)+"px";
  document.getElementById('lineal').style.height=(newSize-5)+"px";
}

