function setRowID(pRow, pID)
{
  // Diese Funktion sorgt dafür, dass die Spalte, über der der Mauszeiger gerade ist, gehighlightet wird
  var theCells = null;
  var c = null;
  var CellCnt = 0;
  var domDetect = false;

  theCells = pRow.cells;
  CellCnt = theCells.length;

  // Abfrage, ob ein DOM-Fähiger Browser verwendet wird
  if ((typeof(window.opera) == 'undefined') && (typeof(theCells[0].getAttribute) != 'undefined')) 
    domDetect = true;
  else 
    domDetect = false;

  for (c = 0; c < CellCnt; c++)
  {
    if (domDetect) theCells[c].setAttribute('id',pID,0);
    else theCells[c].style.backgroundColor = pID;
  }
}

function setRowClass(pRow, pClass)
{
  pRow.setAttribute('class',pClass,"false");
}

function getCalendarFor(formname, elementname)
{
  var newWindow;
  var urlstring = '../calendar/calendar.php';
  newWindow = window.open(urlstring + '?formname=' + formname + '&elementname=' + elementname, '', 
    'height=220, width=280, top=300, left=300, toolbar=no, minimize=no, status=no, memubar=no, location=no, scrollbars=no')
}

function printpage()
{ 
  window.print();
}

