function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("leftcol");
  var lHeight = xHeight("middlecol");
  var rHeight = xHeight("rightcol");

  // Find the maximum height
  var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));
  // alert(lHeight);

  // Assign maximum height to all columns
  xHeight("leftcol", maxHeight);
  xHeight("middlecol", maxHeight);
  xHeight("twocols", maxHeight);
  xHeight("rightcol", maxHeight);
  xHeight("wrapper", maxHeight);

}
window.onload = function()
{
  // xAddEventListener(window, "resize", adjustLayout, false);
  adjustLayout();
}
