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

function toLeft(id){
document.getElementById(id).scrollLeft=0
}

function toRight(id){
document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

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

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

function scrollDivLeft(id){
document.getElementById(id).scrollLeft-=step
timerLeft=setTimeout("scrollDivLeft('"+id+"')",10)
}

function scrollDivRight(id){
document.getElementById(id).scrollLeft+=step
timerRight=setTimeout("scrollDivRight('"+id+"')",10)
}

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

function upToPoint(id,step){
document.getElementById(id).scrollTop=step
}

function rightToPoint(id,step){
document.getElementById(id).scrollRight=step
}


