// JavaScript Document

/*Create a "striped" class in the style sheet to apply a border, or alter the table in some other manner

*/

function stripe() {
	var t = document.getElementsByTagName("table");
	for (var i=0; i<t.length; i++) {
		if (t[i].className == "striped") {
			var trs = t[i].getElementsByTagName("tr");
			for (var j=0; j<trs.length; j++) {
				if (j%2 == 0){} 
				else {trs[j].className+="odd";}
			}
		}		
	}
}
window.onload = stripe;

