var scrolltimer = 0;
function scroll( p, o, dir )
 {

 document.getElementById( o ).style.top = Math.max( -document.getElementById( o ).scrollHeight + document.getElementById( p ).clientHeight, Math.min( ( parseInt( document.getElementById( o ).style.top ) + ( 2 * dir ) ), 0 ) ) + 'px';
 what = ( dir > 0 ? 'scrollUp( \'' + p + '\', \'' + o + '\' )' : 'scrollDown( \'' + p + '\', \'' + o + '\' )' );
 scrolltimer = setTimeout( what, 4 );
 return false;
 }

 function scrollUp( p, o ) { return scroll( p, o, 1 ); }
 function scrollDown( p, o ) { return scroll( p, o, -1 ); }

 function clearScroll() { window.clearTimeout( scrolltimer ); }

var Timer;
function ScrollUp_b()
{
  Timer = setInterval("document.getElementById('oddstable').scrollTop -= 2", 15);
}
function ScrollDown_b()
{
  Timer = setInterval("document.getElementById('oddstable').scrollTop += 2", 15);
}

function bgcol(cl,id) {
 for(i=1;i<=4;i++)
     document.getElementById(id+'_'+i).style.backgroundColor=cl;
}

