function validaAssinatura() {
	var dominio           = document.assinatura.dominio.value;
	var nome              = document.assinatura.nome.value;
	var documento         = document.assinatura.documento.value;
	var endereco          = document.assinatura.endereco.value;
	var bairro            = document.assinatura.bairro.value;
	var cep               = document.assinatura.cep.value;
	var cidade            = document.assinatura.cidade.value;
	var tel_ddd           = document.assinatura.tel_ddd.value;
	var tel               = document.assinatura.tel.value;
	var responsavel       = document.assinatura.responsavel.value;
	var rg                = document.assinatura.rg.value;
	var email             = document.assinatura.email.value;	
	var email_alternativo = document.assinatura.email_alternativo.value;	
	if (dominio=="") {
		window.alert("Preencha o domínio");
		document.assinatura.dominio.focus();
		return false;
	}
	if (nome=="") {
		window.alert("Preencha o nome/razão social");
		document.assinatura.nome.focus();
		return false;
	}
	if (documento=="") {
		window.alert("Preencha o CPF/CNPJ");
		document.assinatura.documento.focus();
		return false;
	}
	if (endereco=="") {
		window.alert("Preencha o endereço");
		document.assinatura.endereco.focus();
		return false;
	}
	if (bairro=="") {
		window.alert("Preencha o bairro");
		document.assinatura.bairro.focus();
		return false;
	}
	if (cep=="") {
		window.alert("Preencha o CEP");
		document.assinatura.cep.focus();
		return false;
	}
	if (cidade=="") {
		window.alert("Preencha o cidade");
		document.assinatura.cidade.focus();
		return false;
	}
	if (tel_ddd=="") {
		window.alert("Preencha o DDD do telefone");
		document.assinatura.tel_ddd.focus();
		return false;
	}
	if (tel=="") {
		window.alert("Preencha o telefone");
		document.assinatura.tel.focus();
		return false;
	}
	if (responsavel=="") {
		window.alert("Preencha o nome do Responsável");
		document.assinatura.responsavel.focus();
		return false;
	}
	if (rg=="") {
		window.alert("Preencha o RG do responsável");
		document.assinatura.rg.focus();
		return false;
	}
	if (email=="") {
		window.alert("Digite o e-mail");
		document.assinatura.email.focus();
		return false;
	}
	if (email.indexOf("@") == -1 || email.indexOf(".") == -1) {
		window.alert("E-mail inválido");
		document.assinatura.email.focus();
		return false;
	}	
	if (email_alternativo=="") {
		window.alert("Digite um e-mail alternativo");
		document.assinatura.email_alternativo.focus();
		return false;
	}
	if (email_alternativo.indexOf("@") == -1 || email_alternativo.indexOf(".") == -1) {
		window.alert("E-mail alternativo inválido");
		document.assinatura.email_alternativo.focus();
		return false;
	}	
	return true;
	document.assinatura.submit();
}
function validaContato() {
	var nome     = document.contato.nome.value;
	var email    = document.contato.email.value;	
	var assunto  = document.contato.assunto.value;	
	var mensagem = document.contato.mensagem.value;	
	if (nome=="") {
		window.alert("Preencha seu nome");
		document.contato.nome.focus();
		return false;
	}
	if (assunto=="") {
		window.alert("Preencha o assunto");
		document.contato.assunto.focus();
		return false;
	}
	if (mensagem=="") {
		window.alert("Preencha a mensagem");
		document.contato.mensagem.focus();
		return false;
	}
	if (email=="") {
		window.alert("Preencha seu e-mail");
		document.contato.email.focus();
		return false;
	}
	if (email.indexOf("@") == -1 || email.indexOf(".") == -1) {
		window.alert("E-mail inválido");
		document.contato.email.focus();
		return false;
	}	
	return true;
	document.contato.submit();
}
function confirmaPagto() {
	var nome    = document.confirmapagto.nome.value;
	var email   = document.confirmapagto.email.value;	
	var dominio = document.confirmapagto.dominio.value;	
	var valor   = document.confirmapagto.valor.value;	
	var data    = document.confirmapagto.data.value;	
	if (nome=="") {
		window.alert("Preencha seu nome");
		document.confirmapagto.nome.focus();
		return false;
	}
	if (dominio=="") {
		window.alert("Preencha o site (domínio)");
		document.confirmapagto.dominio.focus();
		return false;
	}
	if (email=="") {
		window.alert("Preencha seu e-mail");
		document.confirmapagto.email.focus();
		return false;
	}
	if (email.indexOf("@") == -1 || email.indexOf(".") == -1) {
		window.alert("E-mail inválido");
		document.confirmapagto.email.focus();
		return false;
	}	
	if (valor=="") {
		window.alert("Preencha o valor");
		document.confirmapagto.valor.focus();
		return false;
	}	
	if (data=="") {
		window.alert("Preencha a data");
		document.confirmapagto.data.focus();
		return false;
	}	
	return true;
	document.confirmapagto.submit();
}
function validaMigracao(comp) {
	var dominio           = document.migrar.dominio.value;
	var nome              = document.migrar.nome.value;
	var documento         = document.migrar.documento.value;
	var cidade            = document.migrar.cidade.value;
	var tel_ddd           = document.migrar.tel_ddd.value;
	var tel               = document.migrar.tel.value;
	var responsavel       = document.migrar.responsavel.value;
	var rg                = document.migrar.rg.value;
	var email             = document.migrar.email.value;	
	var email_alternativo = document.migrar.email_alternativo.value;
	if (dominio=="") {
		window.alert("Preencha o domínio");
		document.migrar.dominio.focus();
		return false;
	}
	if (nome=="") {
		window.alert("Preencha o nome/razão social");
		document.migrar.nome.focus();
		return false;
	}
	if (documento=="") {
		window.alert("Preencha o CPF/CNPJ");
		document.migrar.documento.focus();
		return false;
	}
	if (cidade=="") {
		window.alert("Preencha o cidade");
		document.migrar.cidade.focus();
		return false;
	}
	if (tel_ddd=="") {
		window.alert("Preencha o DDD do telefone");
		document.migrar.tel_ddd.focus();
		return false;
	}
	if (tel=="") {
		window.alert("Preencha o telefone");
		document.migrar.tel.focus();
		return false;
	}
	if (responsavel=="") {
		window.alert("Preencha o nome do Responsável");
		document.migrar.responsavel.focus();
		return false;
	}
	if (rg=="") {
		window.alert("Preencha o RG do responsável");
		document.migrar.rg.focus();
		return false;
	}
	if (email=="") {
		window.alert("Digite o e-mail");
		document.migrar.email.focus();
		return false;
	}
	if (email.indexOf("@") == -1 || email.indexOf(".") == -1) {
		window.alert("E-mail inválido");
		document.migrar.email.focus();
		return false;
	}	
	if (email_alternativo=="") {
		window.alert("Digite um e-mail alternativo");
		document.migrar.email_alternativo.focus();
		return false;
	}
	if (email_alternativo.indexOf("@") == -1 || email_alternativo.indexOf(".") == -1) {
		window.alert("E-mail alternativo inválido");
		document.migrar.email_alternativo.focus();
		return false;
	}	
	if (comp == false) {
		window.alert("Para realizamos a migração, você deve concordar com o termo de compromisso");
		return false;
	}	
	return true;
	document.migrar.submit();
}
