function alternate(id){	
	if(document.getElementById(id)){						//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			
			//manipulate rows	
			if(i % 2 == 0){
				rows[i].className = "even";
			}else{
				rows[i].className = "odd";
			}
		}
	}
}

