function CheckAll(f,el)
{
  for (var i=0;i<f.elements.length;i++)
  {
     var e=f.elements[i];
     if (e.name==el) e.checked=f.check_all.checked;
  }
}

function setPointer(theRow, thePointerColor)
 {
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    } else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
}

function openWindow(window_name, imgx, imgy)
{
  window.open('', window_name, 'toolbar=no,scrollbars=yes,resizable=no,width='+imgx+',height='+imgy);
  return false;
}