function xAddEventListener(e,eT,eL,cap)
{
  if(!(e=xGetElementById(e)))return;
  eT=eT.toLowerCase();
  if(e.addEventListener)e.addEventListener(eT,eL,cap||false);
  else if(e.attachEvent)e.attachEvent('on'+eT,eL);
  else {
    var o=e['on'+eT];
    e['on'+eT]=typeof o=='function' ? function(v){o(v);eL(v);} : eL;
  }
}
function xGetElementById(e)
{
  if(typeof(e)=='string') {
    if(document.getElementById) e=document.getElementById(e);
    else if(document.all) e=document.all[e];
    else e=null;
  }
  return e;
}
function fillToBottom( )
{
    var nheight;
    var vc = xGetElementById( 'mct' );
    var if2 = xGetElementById( 'infr' );
    if ( vc != null && if2 != null )
    {
        //IE6 document.documentElement.clientHeight resolves to the correct size.
        if ( document.documentElement.clientHeight < document.body.clientHeight )
        {
            //IE6 wierdness document.documentElement.clientHeight gives you the correct height
            nheight = document.documentElement.clientHeight - vc.offsetTop;
            if2.style.height = parseInt( nheight ) + "px";
        }
        else
        {
            nheight = document.body.clientHeight;
            if2.style.height = parseInt( nheight - vc.offsetTop ).toString( ) + "px";
        }
    }
}
function resized( )
{
    fillToBottom( );
}
function loaded( )
{
    xAddEventListener( xGetElementById( window ), 'resize', resized, false );
    fillToBottom( );
}

xAddEventListener( window, 'load', loaded, false );