// Alternating Table Row Colors Javascript

function alternate_table_rows(id){
	if(document.getElementById){						//check that browser has capabilities
		var table = document.getElementById(id);		//get just the selected table not all of them
		var rows = table.getElementsByTagName("tr");	//get all table rows
		for(i = 0; i < rows.length; i++){				//alternate styles			
			if(i % 2 == 0){
				rows[i].className = "tableRowEven";
			} else {
				rows[i].className = "tableRowOdd";
			}
		}
	}
}