			function habilitaSubmit() {
				// Checa se existe ao menos um selecionado e habilita o botão
				habilita = false;
				qt = document.getElementById("qt_itens");
				for(i=1; i<=qt.value; i++) {
					if(document.getElementById("cb" + i).checked) {
						habilita = true;
						i=qt+1;
					}
				}
				return habilita;
			}
			function mudarCheckBox(marcar) {
				qt = document.getElementById("qt_itens");
				for(i=1; i<=qt.value; i++) {
					document.getElementById("cb" + i).checked = marcar;
				}
				habilitaSubmit();
				return true;
			}
			function inverterCheckBox() {
				qt = document.getElementById("qt_itens");
				for(i=1; i<=qt.value; i++) {
					if(document.getElementById("cb" + i).checked) {
						marcar=false;
					} else {
						marcar=true;
					}
					document.getElementById("cb" + i).checked = marcar;
				}
				habilitaSubmit();
				return true;
			}
