function heightAlign() {
  var elm = [], val = [], i, tmp;
  for (i = 0; i<arguments.length; i++) {
    if (tmp = document.getElementById(arguments[i])) {
      elm[elm.length] = tmp;
      val[val.length] = tmp.offsetHeight;
    }
  }
  if (elm.length<2) return;
  tmp = eval('Math.max(' + val.join(',') + ')');
  for (i=0; i<elm.length; i++) {
    elm[i].style.height = tmp + 'px';
  }   
}
onload = function() {
  heightAlign('content_l', 'text', 'content_r');
}
