var timerDown=null
var timerUp=null

function toTop(id)
{ 
	document.getElementById(id).scrollTop=0 
} 

function scrollDown(id,step)
{ 
	document.getElementById(id).scrollTop+=step 
	timerDown=setTimeout("scrollDown('"+id+"'," + step + ")",10) 
} 

function scrollUp(id,step)
{ 
	document.getElementById(id).scrollTop-=step 
	timerUp=setTimeout("scrollUp('"+id+"'," + step + ")",10) 
} 

function stopScroll()
{
	clearTimeout(timerUp)
	clearTimeout(timerDown)
}

function toBottom(id)
{ 
	document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight 
} 
