// JavaScript Document

// alt color rows and rollover highlight for tables
altRows = function() {
	rowLite('tblstyle','rowLite','even',true);
}
function rowLite(tb,cl,evenclass,hltgl){ //rp batiz -table row highlighter
 var g,i,x,gr,even;
	even=false;
	if(document.getElementById){
		g=document.getElementsByTagName("TABLE");
  for(x=0;x<g.length;x++){
			if(g[x].className&&g[x].className==tb){
    gr=g[x].getElementsByTagName("TR");
		 	if(gr){
			 	for(i=0;i<gr.length;i++){
						if(even==true&&gr[i].className!='tblorangeheader'){
				 		even=false;
							gr[i].className=evenclass;
							if(hltgl==true){
      	 if(i>0) gr[i].onmouseover=function(){this.className=cl;};
        if(i>0) gr[i].onmouseout=function(){this.className=evenclass;};
							}
						}else{
							if(gr[i].className!='tblorangeheader'){
				  		even=true;
						 	if(hltgl==true){
							  if(i>0) gr[i].onmouseover=function(){this.className=cl;};
         if(i>0) gr[i].onmouseout=function(){this.className='';};
								}
							}
		  		}
					}
				}
			}
		}
	}
}