// JavaScript Document
function cadastraAgencia(){
	
	
	var agente =  document.forms['agencia'].agente;
	var email =  document.forms['agencia'].email;
	var agencia =  document.forms['agencia'].agencia;
	var cidade =  document.forms['agencia'].cidade;
	var estado =  document.forms['agencia'].estado;
	var telefone =  document.forms['agencia'].telefone;
	var cnpj =  document.forms['agencia'].cnpj;

	
	
	
	if (agente.value == "") {
		alert ('O campo agente é obrigatório / The  travel agent field is empty');
		agente.focus();
		return false;
		}

	if (email.value == "") {
		alert ('O campo email é obrigatório / The email field is empty');
		email.focus();
		return false;
	}
	if (agencia.value == "") {
		alert ('O campo agencia é obrigatório / The agency field is empty');
		agencia.focus();
		return false;
		}
	if (cidade.value == "") {
		alert ('O campo cidade é obrigatório/ The city field is empty');
		cidade.focus();
		return false;
		}
	if (estado.value == "") {
		alert ('O campo estado é obrigatório / The state field is empty');
		estado.focus();
		return false;
		}
	if (telefone.value == "") {
		alert ('O campo telefone é obrigatório / the field phone is empty');
		telefone.focus();
		return false;
		}

	if (cnpj.value == "") {
		alert ('O campo CNPJ é obrigatório / The corporate number field is empty');
		cnpj.focus();
		return false;
		}

	return true;

}
