function alternateTableRows() {
	var tables = document.getElementsByTagName("table");
	for(var i=0; i<tables.length; i++) {
		var t = tables[i];
		if(t.className == "alternaterows"){
			rows = t.getElementsByTagName("tr");
			for(var j=0; j<rows.length; j++) {
				if( j%2 == 0) {
					rows[j].className = rows[j].className+" odd";
				} else {
					rows[j].className = rows[j].className+" even";
				}
			}
		}
	}
}