// window.alert('Content client.height:' + content.clientHeight);

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 HeightAdj()
 {
  var noPx = document.childNodes ? 'px' : 0;
  myContent = getRefToDiv('content');
   myContent_height=myContent.clientHeight;
   if( myContent.style ) { myContent = myContent.style; }
  myAdvert  = getRefToDiv('advert');
   myAdvert_height=myAdvert.clientHeight;
   if( myAdvert.style ) { myAdvert = myAdvert.style; }
  if (myContent_height > myAdvert_height)
    {
     myAdvert.height = myContent_height +79 + noPx; 
     myAdvert.pixelHeight = myContent_height +79;
    }
  if (myContent_height < myAdvert_height)
    {
     myContent.height = myAdvert_height -109 + noPx; 
     myContent.pixelHeight = myAdvert_height -109;
    }
 }

