function applyStyles(row, style, laststyle)
{
	for(var i = 0; i < row.cells.length; i++)
	{
		row.cells[i].className = style;
	}
				
	row.cells[row.cells.length-1].className = laststyle;
}

