﻿function toTop(id){ 
	document.getElementById(id).scrollTop=0 
} 

defaultStep=3
step=defaultStep
var t
	
function scrollDivDown(id){
//	var objElement = document.getElementById(id);
//	alert(objElement.id);
	document.getElementById(id).scrollTop+=step 
	t=timerDown=setTimeout("scrollDivDown('"+id+"')",5) 
} 

function scrollDivUp(id){ 
	document.getElementById(id).scrollTop-=step 
	t=timerUp=setTimeout("scrollDivUp('"+id+"')",5) 
} 

function stopTimer(){
	clearTimeout(t)
}

function toBottom(id){ 
	document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight 
} 

function toPoint(id){ 
	document.getElementById(id).scrollTop=100 
}