function superTableStripe(p_strTableClass, p_strRowClass, p_bOdd) {
  var l_iIndex, l_iIndex2, l_Table, l_Row;
  for(l_iIndex=0; (l_Table = document.getElementsByTagName("table")[l_iIndex]); l_iIndex++) {
    if(hasClass(l_Table)) {
      if(l_Table.className.indexOf(p_strTableClass) != -1) {
        if(l_Table.rows) {
          for(var l_iIndex2 = (p_bOdd ?  0 : 1); l_iIndex2 <l_Table.rows.length; l_iIndex2 += 2) {
            var l_Row = l_Table.rows.item(l_iIndex2);
            if(!hasClass(l_Row)) {
              l_Row.className = p_strRowClass;
            }
          }
        }
      }
    }
  }
}    
function hasClass(p_Element) {
   var l_bRet = false;
   if(p_Element.getAttributeNode("class") != null) {
     l_bRet = p_Element.getAttributeNode("class").value;
   }
   return l_bRet;
}
function init() {
	superTableStripe('raidoitettu', 'odd', true);
}

window.onload = init;