var marked_row = new Array; 

function setClass(theRow, theRowNum, theAction, theDefault)
{
   if ( theAction == 'over' ) {
      theRow.className = 'over';   
      
   } else if ( theAction == 'out' ) {
      if ( marked_row[theRowNum] )
         theRow.className = 'marked';   
      else
         theRow.className = theDefault; 
           
   } else if ( theAction == 'click' ) {
      if ( marked_row[theRowNum] ) {
         marked_row[theRowNum] = false;
         theRow.className = theDefault;   
      } else {
         marked_row[theRowNum] = true;
         theRow.className = 'marked';   
      }
   }
   return true;
}
 