function getChild(block){	
	for (i = 0; i < block.childNodes.length; i++){
		child = block.childNodes[i];
	}
	return child;
}

function findTags(block, tname)
{	
	var tags = new Array();
	var tcount = 0;
	for (i = 0; i < block.childNodes.length; i++)
	{
		if (block.childNodes[i].nodeName == tname)
		{
			tags[tcount] = block.childNodes[i];
			tcount++;
		}
	}

	return tags;
}

function rowSelect(){	
	var srBlock = document.getElementById("dover");
	var srChild = findTags(srBlock, "TBODY");
	var tb_count = srChild.length;
	for(var i = 0; i < tb_count; i++)
	{
		srChild[i].onmouseover=function(){
			this.className = "over";
		}
		srChild[i].onmouseout=function(){
			this.className = "";
		}
	}
}
rowSelect();
