﻿function alternate(id)
	{ 
 	if(document.getElementsByTagName)
 		{  
   		var colors = Array('#ffffff','#E5DFCF');
   		var table = document.getElementById(id);   
   		var rows = table.getElementsByTagName("tr");   
   		for(i=0; i < rows.length; i++)
   			{           
 			//manipulate rows 
     		doMultiple (rows[i], i);  
     		function doMultiple(row, i)
     			{ 
				row.style.backgroundColor = colors[i % colors.length]; 
				} 
   			} 
 		} 
	}

