function initHighlightRow(table_id, row_class, bg_color)
{
	
	var table = document.getElementById(table_id);

	if (!table)	{
		return;
	}

	var rows = table.rows;
	for(var j = 0; j < rows.length; j++) {
		if(rows[j].className == row_class) {		
			var oldBackgroundColor;
			rows[j].onmouseover 
				= function()	
					{	
						for(var m = 0; m < this.cells.length; m++) {
							oldBackgroundColor = this.cells[m].style.backgroundColor;
							this.cells[m].style.backgroundColor = bg_color;
						}
					};
					
			rows[j].onmouseout 	
				= function()	
					{	
						for(var n = 0; n < this.cells.length; n++) {
							this.cells[n].style.backgroundColor = oldBackgroundColor;
						}
					};
		}
	}
}
