/* zebra tables */
/* Note: for IE, "className" is used instead of "class" */
function stripeTables (className) {
	if (document.getElementsByTagName) {
		var docTables = document.getElementsByTagName("table");
		for (var i = 0;  i < docTables.length; i++) {
			if (docTables[i].getAttribute ("class") == className || docTables[i].getAttribute("className") == className) {
				var tableRows = docTables[i].getElementsByTagName("tr");
				for (var j = 0; j < tableRows.length; j++ ) {
					var row = tableRows[j];
					var headers = row.getElementsByTagName("th");
					if (headers.length == 0 && j % 2) {
						row.setAttribute("class", "even");
						row.setAttribute("className", "even");
					}
				}
			}
		}
	}	
}