// JavaScript Document

function valida(cadastro){
	if(cadastro.nome.value == ""){
	alert("O campo *Nome é obrigatório.");
	cadastro.nome.focus();
	return false;
	}
	if(cadastro.empresa.value == ""){
	alert("O campo *Empresa é obrigatório.");
	cadastro.empresa.focus();
	return false;
	}
	if(cadastro.email.value == ""){
	alert("O campo *E-mail é obrigatório.");
	cadastro.email.focus();
	return false;
	}
	return true;
}

function valida2(orcamento){
	if(orcamento.empresa.value == ""){
	alert("O campo Empresa é obrigatório.");
	orcamento.empresa.focus();
	return false;
	}
	if(orcamento.endereco.value == ""){
	alert("O campo Endereço é obrigatório.");
	orcamento.endereco.focus();
	return false;
	}
	if(orcamento.telefone.value == ""){
	alert("O campo Telefone é obrigatório.");
	orcamento.telefone.focus();
	return false;
	}
	if(orcamento.cidade.value == ""){
	alert("O campo Cidade é obrigatório.");
	orcamento.cidade.focus();
	return false;
	}
	if(orcamento.contato.value == ""){
	alert("O campo Contato é obrigatório.");
	orcamento.contato.focus();
	return false;
	}
	if(orcamento.informacoes.value == ""){
	alert("O campo Informações é obrigatório.");
	orcamento.informacoes.focus();
	return false;
	}
	return true;
}

function valida3(atendimento){
	if(atendimento.nome.value == ""){
	alert("O campo Nome é obrigatório.");
	atendimento.nome.focus();
	return false;
	}
	if(atendimento.email.value == ""){
	alert("O campo E-mail é obrigatório.");
	atendimento.email.focus();
	return false;
	}
	if(atendimento.mensagem.value == ""){
	alert("O campo Mensagem é obrigatório.");
	atendimento.mensagem.focus();
	return false;
	}
	return true;
}

function Abrir(url){
	window.open(url, "Nova","resizable=no,scrollbars=no,status=no,width=583px,height=437px");
}

-->