function resize()
{

  var theWidth, theHeight;
  // Window dimensions:
  if (window.innerWidth) {
  theWidth=window.innerWidth;
  }
  else if (document.documentElement && document.documentElement.clientWidth) {
  theWidth=document.documentElement.clientWidth;
  }
  else if (document.body) {
  theWidth=document.body.clientWidth;
  }
  if (window.innerHeight) {
  theHeight=window.innerHeight;
  }
  else if (document.documentElement && document.documentElement.clientHeight) {
  theHeight=document.documentElement.clientHeight;
  }
  else if (document.body) {
  theHeight=document.body.clientHeight;
  }

  if(document.getElementById('main'))
  {
    var main = document.getElementById("main");
    main.offsetHeight;
  
    if(document.getElementById('content_bg'))
    {
      if(document.getElementById('left_column'))
      {
        var left_column = document.getElementById("left_column");
        left_column.offsetHeight;    
        document.getElementById('left_column').style.height=main.offsetHeight + 'px';
      }
    }
    if(document.getElementById('content_bg'))
    {
      if(document.getElementById('right_column'))
      {
        var left_column = document.getElementById("right_column");
        left_column.offsetHeight;    
        document.getElementById('right_column').style.height=main.offsetHeight + 'px';
      }
    }
  }
}
