function startDiv(dir)
{
	x = 1; //amount to jump by
	delay = 10; //speed in milliseconds
	moving = window.setInterval("scrollDiv("+x+","+dir+")",delay);
	return true;
}
function speedDiv(dir)
{
	x = 5; //amount to jump by
	delay = 1; //speed in milliseconds
	speedmoving = window.setInterval("scrollDiv("+x+","+dir+")",delay);
	return true;
}
function scrollDiv(x,dir)
{
	if (dir == 1)
	{
		document.getElementById("mydiv").scrollTop -= x;
	}
	else
	{
		document.getElementById("mydiv").scrollTop += x;
	}
}
function stopSpeedDiv()
{
	if (speedmoving)
	{
		window.clearInterval(speedmoving);
	}
}
function stopDiv()
{
	if (moving)
	{
		window.clearInterval(moving);
	}
}