// JavaScript Document
function scrollTable(tblID, numDisplay)
{
	var	tbl = document.getElementById(tblID);
	if (!tbl) return;
	var numrows = tbl.rows.length;
	i = 0; firstRow = -1; 
	while (i<numrows)
	{
		row = tbl.rows[i];
		if (row.style.display != "none") // display row
		{
			firstRow = i;
			break;
		}
		i++;
	}
	//scroll
	if (firstRow >=0)	
	{
		for (j=0;j<numDisplay;j++)
		{
			if (firstRow+j <numrows)
				tbl.rows[firstRow+j].style.display = "none";
		}
		firstRow += numDisplay;
	}
	else
		firstRow = 0;
	if (firstRow >= numrows)  
		firstRow = 0;
	for (j=0;j<numDisplay;j++)
	{
		if (firstRow+j <numrows)
			tbl.rows[firstRow+j].style.display = "";
	}
	
}
