// JavaScript Document

/**
 * ²ÎÊýÀýÈç["tableId1", "tableId2", "tableId3"]
 */
function romanceTables(arr) {
	for (var i in arr) {
		var table = document.getElementById(arr[i]);
		table.className = "table";
		table.cellPadding = 0;
		table.cellSpacing = 0;
		
		var trLength = table.rows.length;
		var maxCellsLength = 0;
		for (var tri = 0; tri < trLength; tri++) {
			table.rows[tri].className = tri % 2 == 0 ? "gray" : "";
			if (table.rows[tri].cells.length >= maxCellsLength) {
				maxCellsLength = table.rows[tri].cells.length;
				table.rows[tri].cells[0].className = "head";
			}
		}
	}
}



