function alternate(id){ 
 if(document.getElementsByTagName){  
   var table = document.getElementById(id);   
   var rows = table.getElementsByTagName("tr");   
   for(i = 0; i < rows.length; i++){           

 //manipulate rows 
     if(i % 2 == 0){ 
       rows[i].className = "even"; 
	rows[i].oldclassName = "even";
		rows[i].onmouseout = function(){
                		this.className = "even";
     }
}
else{ 
       rows[i].className = "odd"; 
	rows[i].oldclassName = "odd";
		rows[i].onmouseout = function(){
                		this.className = "odd";
     }       
}
rows[i].onmouseover = function(){
			{this.className = "mover";}
            if(this.className == this.oldClassName)  
            if(this.onmouseout == null && this.className != "click"){
          this.onmouseout = function(){
                this.className = this.oldClassName;
          }
             }
}
rows[i].onclick = function(){
         if(this.className != "click"){
            this.className = "click";
    } else {
            this.className = this.oldClassName;
         }
       this.onmouseout = "click";
     }
    }

   } 
 } 
