function vld_enquete(){
  var ok = false;
  for (i = 0; i < document.enquete.codResposta.length; i++) {
	if (document.enquete.codResposta[i].checked) { ok = true; }
  }
  if (!ok) {
    alert ("Por favor, selecione uma opção.");
    return false;
  }
  else return true;
}

function vld_atendimento(){
  msg = "";
  strEmail = /^\w+([\.-_-]?\w+)*@\w+([\.-_-]?\w+)*(\.\w{2,4})+$/;
  if(document.atendimento.nome.value == ""){
	msg  += "\n.: Nome"; }
  if(!(strEmail.exec(document.atendimento.email.value))) {
	msg  += "\n.: E-mail"; }
  if(document.atendimento.assunto.value == ""){
	msg  += "\n.: Assunto"; }
  if(document.atendimento.comentario.value == ""){
	msg  += "\n.: Comentário"; }
  if (msg!="") {
	msg  ="Os campos estão incorretos ou não preenchidos:" + msg ;
	alert(msg);
	return false;
  }
  else return true;
}

function vld_indicacao(){
  msg = "";
  strEmail = /^\w+([\.-_-]?\w+)*@\w+([\.-_-]?\w+)*(\.\w{2,4})+$/;
  if(!(strEmail.exec(document.indicacao.emailRemetenteIndicacao.value))) {
	msg  += "\n.: E-mail do Remetente"; }
  if(!(strEmail.exec(document.indicacao.emailDestinatarioIndicacao.value))) {
	msg  += "\n.: E-mail do Destinatário"; }
  if (msg!="") {
	msg  ="Os campos estão incorretos ou não preenchidos:" + msg ;
	alert(msg);
	return false;
  }
  else return true;
}
