// *****************************************************
// Função para selecionar múltiplos itens de um checkbox
// *****************************************************
function selecionatudo(conjunto, unidade){
	var col_checks = document.all.item(conjunto);
	var ref_check=document.all.item(unidade);
	valor_final = ref_check.checked;
	if (col_checks.length!=null) {
		for (t=0; t<col_checks.length; t++) {
			var atual_check = col_checks(t);
			atual_check.checked=valor_final;
		}
	}
	else
	{
		col_checks.checked=valor_final;
	}
}

/**
 * Sets/unsets the pointer in browse mode
 * @param   object   the table row
 * @param   object   the color to use for this row
 * @return  boolean  whether pointer is set or not
 */
function setPointer(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }

    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        theRow.cells[c].bgColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function

