// JavaScript Document
// For alternate colors for table rows
function alternatecolor(id){ 
 if(document.getElementsByTagName){  
   var table = document.getElementById(id);   
   var rows = table.getElementsByTagName("tr");   
   for(i = 0; i < rows.length; i++){           
     if(i % 2 == 0){ 
       rows[i].className = "color_one"; 
     }else{ 
       rows[i].className = "color_two"; 
     }       
   } 
 } 
}