function sortNum(a,b) { return b-a} 

function fixH(one,two,three) {
  if (document.getElementById(one)) {
    var obj=new Array(3);
    var aDivs=[one,two,three];
    for(var i = 0;  i < aDivs.length ; i++) {
      document.getElementById(aDivs[i]).style.height="auto";
      obj[i]=document.getElementById(aDivs[i]).offsetHeight;
      nh=obj.sort(sortNum);
    } 
    nh1=nh.splice(1,2);
    for(var i = 0; i < aDivs.length ; i++) {
      document.getElementById(aDivs[i]).style.height=nh+"px";
    }
  }
}
