function firstsecond (tableName) {    
	table = document.getElementsByName(tableName);
	
	if(table.length > 0) {
		table = table[table.length-1];
	}
	
	rows = table.rows;
	second = false;
	
	if(rows != null) {
		for (i = 0; i < rows.length; i++) {
			if (second) {
				rows[i].className = "second";
				rows[i].name = "second";
				second = false;
			} else {
				rows[i].className = "first";
				rows[i].name = "first";
				second = true;
			}
		}
	}	
}

function selectRow(row) {
	row.className = "selected";
}

function deselectRow(row) {
	row.className = row.name;
} 






