function testme(divTagIn)
{
	var divHold;
	divHold = document.getElementById(divTagIn);
	alert(divHold.offsetHeight);
	
	document.getElementById(divTagIn).style.height = "1000px";
	alert(divHold.offsetHeight);
}

function columnResize(leftColIn, centerColIn, rightColIn)
{
    //find out which col is longest
   var maxLength, lLength, cLength, rLength;
  lLength = document.getElementById(leftColIn).offsetHeight;
  cLength = document.getElementById(centerColIn).offsetHeight;
  if (rightColIn !== '')
  {
    rLength = document.getElementById(rightColIn).offsetHeight;
  }
  else
  {
    rLength = 0;
  }
  
   
  maxLength = lLength;
  if (cLength > maxLength)
  {
    maxLength = cLength;
   }
  if (rLength > maxLength)
  {
    maxLength = rLength;
  }

  //maxLength = maxLength + 20;

  document.getElementById(leftColIn).style.height = maxLength + "px";
  document.getElementById(centerColIn).style.height = maxLength + "px";
  if (rightColIn !== '')
  {
     document.getElementById(rightColIn).style.height = maxLength + "px";
  }
}


// here's how this works
// pass the changing field and the padded column (which is biggest)
// then pass main column and his padded buddy
// top heavy count is that guessable number that is anything above the fieldset
function hardColumnResize(dynamicField, largestColIn, resizeA, resizeB, topHeavyCount) {
    //maxLength can be set by the hardSetIn
    var fieldLength, colLength, benchmark;
    fieldLength = document.getElementById(dynamicField).offsetHeight;
    colLength = document.getElementById(largestColIn).offsetHeight;
    benchmark = fieldLength + topHeavyCount;

    // turn this on to show you what the topHeavyCount value should be
    //alert('field + top heavy=' + benchmark + '\ncol length=' + colLength);

    if (benchmark > colLength) {
        var newLength;
        newLength = fieldLength + topHeavyCount;
        document.getElementById(resizeA).style.height = newLength + "px";
        document.getElementById(resizeB).style.height = newLength + "px";
    }
}


function columnResizeDebug(leftColIn, centerColIn, rightColIn) {
    //find out which col is longest
    var maxLength, lLength, cLength, rLength;
    lLength = document.getElementById(leftColIn).offsetHeight;
    cLength = document.getElementById(centerColIn).offsetHeight;
    rLength = document.getElementById(rightColIn).offsetHeight;

    alert('col 1 length=' + lLength + '\ncol 2 length=' + cLength + '\ncol 3 length=' + rLength);
}

