function getRefToDiv(divID)
 {
  if( document.layers )         { return document.layers[divID]; }
  if( document.getElementById ) { return document.getElementById(divID); }
  if( document.all )            { return document.all[divID]; }
  if( document[divID] )         { return document[divID]; }
  return false;
 }

function AdjRL(rc,lc)
 {
  sNews = getRefToDiv(rc);
   sNews_height=sNews.clientHeight;
  lastNews = getRefToDiv(lc);
   if( lastNews.style ) { lastNews = lastNews.style; }
  lastNews.height = sNews_height+'px';
  lastNews.pixelHeight = sNews_height;
  
  arrayOfStrings = linid.split(',')
  var totallh=16;
  for (var i=0; i < arrayOfStrings.length; i++) 
    {
     var lid = 'lin'+arrayOfStrings[i];
      sLid=getRefToDiv(lid);
      sLid_height=sLid.clientHeight;
      totallh=totallh+sLid_height;
     if (totallh > sNews_height)
      {
       if( sLid.style ) { sLid = sLid.style; }
       sLid.display='none';
      }
    }
 }
