function adjustBlockHeight(id, id1, id2)
{
   var e = document.getElementById(id)
   var e1 = document.getElementById(id1)
   if (id2) 
   {
      var e2 = document.getElementById(id2)
      if(e2)
      {

      var x = e1.clientHeight 
      if (id2) x = x - e2.clientHeight 
      document.getElementById(id).height = x
      }
   }
}