function valida(f){
	if(f.enq_pergunta.value.length==0) {
		alert("O campo pergunta é de preenchimento obrigatório");
		f.enq_pergunta.focus();
		return false;
	}
	if(f.enq_opcao1.value.length==0) {
		alert("O campo opção 1 é de preenchimento obrigatório");
		f.enq_opcao1.focus();
		return false;
	}
	if(f.enq_opcao2.value.length==0) {
		alert("O campo opção 2 é de preenchimento obrigatório");
		f.enq_opcao2.focus();
		return false;
	}
	return true;
}

function valida_enquete(f){
	vetor = f.elements['opcao'];
	tam = vetor.length;
	for(i=0; i<tam; i++) {
		if(vetor[i].checked) {
			return true;
		}
	}
	alert('Selecione uma opção');
	return false;
}
