﻿// JavaScript Document
//var Ptr=document.getElementById("ctable").getElementsByTagName("tr");
//function $() {
//    for (i=1;i<Ptr.length+1;i++) { 
//    Ptr[i-1].className = (i%2>0)?"t1":"t2"; 
//    }
//}
//window.onload=$;
//for(var i=0;i<Ptr.length;i++) {
//    Ptr[i].onmouseover=function(){
//    this.tmpClass=this.className;
//    this.className = "t3";    
//    };
//    Ptr[i].onmouseout=function(){
//    this.className=this.tmpClass;
//    };
//}
function showtable(tableid){
var odd=false;
var tablename=document.getElementById(tableid)
var rows=tablename.getElementsByTagName("tr");
for (var j=1; j<rows.length; j++) {
if (odd==true){
   odd=false;
  }else{
   rows[j].style.backgroundColor="#e2f0f7";
  odd=true;
  }
rows[j].bgc=rows[j].style.backgroundColor;
rows[j].onmouseover=function(){
			this.style.backgroundColor="#FCF9D8";
		}
rows[j].onmouseout=function(){
			this.style.backgroundColor=this.bgc;
		}
} 
}
window.onload=function(){
showtable("ctable");
}
