function confirmDelete() {
	
	return confirm('Confirma a exclusão?');
}

function confirmEnvioEmail() {
	
	return confirm('Confirma a o envio do boleto por e-mail?');
}

function replaceDecimalPoint(textComponent) {
	
	var value = textComponent.value;

	while (value.indexOf(".") != -1) {
		
		value = value.replace(".", ",")
	}
	
	textComponent.value = value;
}

function confirmCancelamento() {
	
	return confirm('Confirma o cancelamento?');
}

function visitSelectBooleanCheckboxDataTable(formId, dataTableId, id, checked) {
	 
    var i = 0;
    var qtdNaoExiste = 0;
    
    while(true){
        
        var chk = document.getElementById(formId + ":" + dataTableId + ":" + i++ + ":" + id);
        if (chk == null) {
        	
            qtdNaoExiste++;
            
            if (qtdNaoExiste >= 20){
            	break;
            }
        
        } else {
            chk.checked = checked;
        }
    }
}
