//alternates the background colour of each table row
function tableRowCol(){
	
	var tables = document.getElementsByTagName("table");
	
	for(i=0; i < tables.length; i++){
		
		if(tables[i].className == "results"){
			
			var rows = tables[i].rows;
	
			for(j=0; j < rows.length; j++){
				
				if(j % 2){
					rows[j].style.backgroundColor = '#ffffff';
				}else{
					rows[j].style.backgroundColor = '#FFF3DD';
				}
				
			}
			
		}
		
	}
	
}