var ourInterval;var scrollSpeed = 50;var scrollHeight = 10;function scrollStart(direction, divID, elementID){// REPEATED CALL EITHER scrollUp OR scrollDownourInterval = setInterval("scroll"+direction+"('"+divID+"')", scrollSpeed);}function scrollEnd(which){// STOP CALLING THE SCROLL FUNCTIONclearInterval(ourInterval);}function scrollUp(which){// SET THE SCROLL TOPdocument.getElementById(which).scrollTop = document.getElementById(which).scrollTop - scrollHeight;}function scrollDown(which){// SET THE SCROLL TOPdocument.getElementById(which).scrollTop = document.getElementById(which).scrollTop + scrollHeight;}
