
function TableRowColorHoverInit(){

  var elem = "TR";
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
    for(var i=0; i<el.length; i++){
    if(el[i].childNodes[0]) 
    {
      if(el[i].childNodes[0].tagName != "TH"
      && el[i].parentNode.parentNode.className.indexOf("TableStyle") != -1){
     if(i%2 == 1){
      el[i].className = "on";
      el[i].onmouseout  = function(){
	     this.className = "on";
      }
    } else {
      el[i].className = "off";
      el[i].onmouseout  = function(){
	     this.className = "off";
      }
    }
      el[i].onmouseover = function(){
	     this.className = "hover";
      }
   }
   }
  }//end of for loop
 }// end of if statement
}// end of function

function DataGridRowColorHoverInit(){

  var elem = "TR";
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
    for(var i=3; i<el.length; i++){
        if (el[i].childNodes[0]){
      if(el[i].childNodes[0].tagName != "TH"
      && el[i].parentNode.parentNode.className.indexOf("DataGridStyle") != -1){
     if(i%2 == 1){
      el[i].className = "on";
      el[i].onmouseout  = function(){
	     this.className = "on";
      }
    } else {
      el[i].className = "off";
      el[i].onmouseout  = function(){
	     this.className = "off";
      }
    }
      el[i].onmouseover = function(){
	     this.className = "hover";
      }
      }
   }
  }
 }
}
function Table1RowColorHoverInit(){

  var elem = "TR";
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
    for(var i=0; i<el.length; i++){
    if(el[i].childNodes[0]) 
    {
      if(el[i].childNodes[0].tagName != "TH"
      && el[i].parentNode.parentNode.className.indexOf("TableStyle1") != -1){
     if(i%2 == 1){
      el[i].className = "on";
      el[i].onmouseout  = function(){
	     this.className = "on";
      }
    } else {
      el[i].className = "off";
      el[i].onmouseout  = function(){
	     this.className = "off";
      }
    }
      el[i].onmouseover = function(){
	     this.className = "hover";
      }
   }
   }
  }//end of for loop
 }// end of if statement
}// end of function

//fucntion added by subarna on 2-Feb-2007 similar to TableRowColorHoverInit
//since above logic for alternate colors was not working additional info table
function AltTableRowColorHover(){

  var elem = "TR";
  var flag= true;
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
    for(var i=0; i<el.length; i++)
    {
        if(el[i].childNodes[0]) 
        {
          if(el[i].childNodes[0].tagName != "TH"
          && el[i].parentNode.parentNode.className.indexOf("TableStyle") != -1)
          {
            if(flag==true)
            {
                flag=false
                el[i].className = "on";
                el[i].onmouseout  = function()
                {
	                this.className = "on";
	            }
            }
            else
            {
              flag=true;
              el[i].className = "off";
              el[i].onmouseout  = function()
              {
	            this.className = "off";
	          }
	        }
            el[i].onmouseover = function(){
	         this.className = "hover";
          }
        }
   }
  }//end of for loop
 }// end of if statement
}// end of function
function AltDataGridRowColorHover(){

  var elem = "TR";
  var flag= true;
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
    for(var i=3; i<el.length; i++){
      if(el[i].childNodes[0].tagName != "TH"
      && el[i].parentNode.parentNode.className.indexOf("DataGridStyle") != -1){
      if(flag==true){
      flag=false
      el[i].className = "on";
      el[i].onmouseout  = function(){
	     this.className = "on";
      }
    } else {
     flag=true;
      el[i].className = "off";
      el[i].onmouseout  = function(){
	     this.className = "off";
      }
    }
      el[i].onmouseover = function(){
	     this.className = "hover";
      }
   }
  }
 }
}
function DataGrid1RowColorHoverInit(){

  var elem = "TR";
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
    for(var i=2; i<el.length; i++){
        if (el[i].childNodes[0]){
      if(el[i].childNodes[0].tagName != "TH"
      && el[i].parentNode.parentNode.className.indexOf("DataGridStyle") != -1){
     if(i%2 == 1){
      el[i].className = "on";
      el[i].onmouseout  = function(){
	     this.className = "on";
      }
    } else {
      el[i].className = "off";
      el[i].onmouseout  = function(){
	     this.className = "off";
      }
    }
      el[i].onmouseover = function(){
	     this.className = "hover";
      }
      }
   }
  }
 }
}
