function tableruler()
{
 if (document.getElementById && document.createTextNode)
  {
   var tables=document.getElementsByTagName('table');
   for (var i=0;i<tables.length;i++)
   {
    if(tables[i].className=='framedtableruler')
    {
     var trs=tables[i].getElementsByTagName('tr');
     for(var j=0;j<trs.length;j++)
     {
      if(trs[j].parentNode.nodeName=='TBODY')
       {
					// Declare a public variable to remember the style
					var oldRowStyle
					// replace the style on rollover and then leave the old style 
					trs[j].onmouseover=function(){oldRowStyle = this.className; this.className='ruled';return false}
 					trs[j].onmouseout=function(){this.className = oldRowStyle; return false}
     }
    }
   }
  }
 }
}
