function tog(t,ttype,callObj,tClassOne,tClassTwo) {
    togDiv = document.getElementById(t);

//    alert(togDiv.style['display'] == 'none');

  if (ttype == 'tr') {

    if (togDiv.style['display'] == 'none') { 
        try { togDiv.style['display'] = 'table-row'; }
        catch(err) { togDiv.style['display'] = 'block'; }
      }
      else if ((togDiv.style['display'] == 'table-row') || (togDiv.style['display'] == 'block')) { togDiv.style['display'] = 'none'; }

  } else {

      if (togDiv.style['display'] == 'none') { togDiv.style['display'] = 'block'; }
      else if (togDiv.style['display'] == 'block') { togDiv.style['display'] = 'none'; }

  }
    
  if ((callObj != '') && ((tClassOne != '') && (tClassTwo != ''))) {
    var swapObj = document.getElementById(callObj);
    if (swapObj.className == tClassOne) { swapObj.className = tClassTwo; }
    else if (swapObj.className == tClassTwo) { swapObj.className = tClassOne; }
  }

}