window.onload = stripeTables

function stripeTables(color) {
	if(!color) { //If the optional argument is not there, create a new variable with that name.
		var color = '#eaf6ff';
				}
	var stripeColor = color;
	if (!document.getElementsByTagName) return false;
	var tables = document.getElementsByTagName("table");
	for (var i=0;i<tables.length;i++) {
		var odd=false;
		var rows = tables[i].getElementsByTagName("tr");
		for (var j=0;j<rows.length;j++) {
			if (odd==false) {
				rows[j].style.backgroundColor = stripeColor;
				odd = true;
			} else {
				odd = false;
			}
		}
	}
}
addLoadEvent(stripeTables);

