function markRow(rowobj, nClass) {

  var theCells = null;

  if (rowobj.cells != 'undefined') {

    theCells = rowobj.cells;

  }

  else if (rowobj.getElementsByTageName('td')) {

    theCells = rowobj.getElementsByTageName('td');

  }

  cntCells = theCells.length;

  if (cntCells > 0) {

    for (i=0;i<cntCells;i++) {

      theCells[i].className = nClass;
  

    }

  }

}


function printPage(content) {

 openWin('print.php', 600, 600);

 document.toPrint.target = 'dont4getus';

 document.toPrint.content.value = content;

 document.toPrint.submit();

}



function openWin(url, wi, he) {
 var win = window.open(url,'dont4getus','width='+wi+',height='+he+',resizable=yes,status=no,toolbar=no,menubar=no, scrollbars=yes');
 var b = screen.width;
 var h = screen.height;
 b = (b - wi) / 2;
 h = (h - he) / 2;
 win.moveTo(b,h);
}
  

    

  

  