﻿//This function change the color for results grid.
function setAlternativeColor(){
	var trList = document.getElementsByTagName('tr');

	if(trList){
		var j = 1;
		for(i=0;i<trList.length;i++){
			if(trList[i].className == 'results-row'){
				if(j%2 == 0){
					trList[i].style.backgroundColor="#ffc";
				}
				j++;
			}
		}
	}
}
_spBodyOnLoadFunctionNames.push("setAlternativeColor");
