function deb(oObject) {
    sText = '';
    for(prop in oObject) {
      sText += prop+" - "+oObject[prop]+"<br>";
    }
    document.write(sText);
}


function confirmAction(text,action) {
  if (confirm(text)!=0) {
    if (typeof(action) == 'string') {
      window.location.href=action;
    }
    if (typeof(action) == 'function') {
      action();
    }
  }
}

function changeTdColor(oTR,className) {
  for(i=0;i<oTR.cells.length;i++) {
    oTR.cells[i].className = className; 
  }
  
}