/***
@author: Flavio Duarte
***/

function confirmar(campos,mensagem) {
	var quebra = campos.split(",");
	var total = 0;
	for (i = 0;i < quebra.length; i++) {
		if (document.getElementById(quebra[i]).value != "") {
			total++;
		}
	}
	if (total == quebra.length) {
		return true;
	}
	else {
		alert(mensagem);
		return false;
	}
}
