function submitFormAlu()

{
	cep1 = document.form.cep1.value;
	cep2 = document.form.cep2.value;
	tel1 = document.form.tel1.value;
	tel2 = document.form.tel2.value;
	tel3 = document.form.tel3.value;
	cel1 = document.form.cel1.value;
	cel2 = document.form.cel2.value;
	cel3 = document.form.cel3.value;

	if (document.form.nome.value == "")
	{
		alert("Infome o seu nome completo!")
		document.form.nome.focus();
	}
	else if (document.form.endereco.value == "")
	{
		alert("Infome o seu endereço!")
		document.form.endereco.focus();
	}
	else if (document.form.bairro.value == "")
	{
		alert("Infome o seu bairro!")
		document.form.bairro.focus();
	}
	else if (document.form.cidade.value == "")
	{
		alert("Infome a sua cidade!")
		document.form.cidade.focus();
	}
	else if ((document.form.cep1.value == "") && (document.form.cep2.value == ""))
	{
		alert("Informe o CEP!");
		document.form.cep1.focus();
	}
	else if ((document.form.cep1.value == "") && (document.form.cep2.value != ""))
	{
		alert("CEP incompleto!");
		document.form.cep1.focus();
	}
	else if ((document.form.cep1.value != "") && (document.form.cep2.value == ""))
	{
		alert("CEP incompleto!");
		document.form.cep2.focus();
	}
	else if ((document.form.cep1.value != "") && (cep1.length < 5))
	{
		alert("CEP incompleto!");
		document.form.cep1.focus();
	}
	else if ((document.form.cep1.value != "") && (!IsNumber(document.form.cep1.value)))
	{
		alert("Preencha o CEP apenas com números!");
		document.form.cep1.focus();
	}
	else if ((document.form.cep2.value != "") && (cep2.length < 3))
	{
		alert("CEP incompleto!");
		document.form.cep2.focus();
	}
	else if ((document.form.cep2.value != "") && (!IsNumberZ(document.form.cep2.value)))
	{
		alert("Preencha o CEP apenas com números!");
		document.form.cep2.focus();
	}
	else if (document.form.estado.options[document.form.estado.selectedIndex].value == "")
	{
		alert("Selecione o seu estado!");
		document.form.estado.focus();
	}
	else if (document.form.pais.value == "")
	{
		alert("Infome o seu país!")
		document.form.pais.focus();
	}
	else if (document.form.cpf.value == "")
	{
		alert("Preencha o CPF!");
		document.form.cpf.focus();	
	}
	else if ((document.form.cpf.value != "") && (!IsCPF(document.form.cpf.value)))
	{
		alert("CPF inválido!");
		document.form.cpf.select();	
	}
	else if ((document.form.tel1.value == "") && (document.form.tel2.value == "") && (document.form.tel3.value == "") && (document.form.cel1.value == "") && (document.form.cel2.value == "") && (document.form.cel3.value == ""))
	{
		alert ("Informe o telefone ou celular!");
		document.form.tel1.focus();
	}
	else if ((document.form.tel1.value != "") && (document.form.tel2.value == "") && (document.form.tel3.value == ""))
	{
		alert ("Telefone incompleto!");
	}
	else if ((document.form.tel1.value != "") && (document.form.tel2.value != "") && (document.form.tel3.value == ""))
	{
		alert ("Telefone incompleto!");	
	}
	else if ((document.form.tel1.value != "") && (document.form.tel2.value == "") && (document.form.tel3.value != ""))
	{
		alert ("Telefone incompleto!");
	}
	else if ((document.form.tel1.value == "") && (document.form.tel2.value != "") && (document.form.tel3.value == ""))
	{
		alert ("Telefone incompleto!");
	}
	else if ((document.form.tel1.value == "") && (document.form.tel2.value != "") && (document.form.tel3.value != ""))
	{
		alert ("Telefone residencial incompleto!");
	}
	else if ((document.form.tel1.value == "") && (document.form.tel2.value == "") && (document.form.tel3.value != ""))
	{
		alert ("Telefone incompleto!");
	}
	else if ((document.form.tel1.value != "") && (tel1.length < 2))
	{
		alert("Telefone incompleto!");
		document.form.tel1.focus();
	}
	else if ((document.form.tel1.value != "") && (!IsNumber(document.form.tel1.value)))
	{
		alert("Preencha o telefone apenas com números!");
		document.form.tel1.select();
	}
	else if ((document.form.tel2.value != "") && (tel2.length < 4))
	{
		alert("Telefone incompleto!");
		document.form.tel2.focus();
	}
	else if ((document.form.tel2.value != "") && (!IsNumber(document.form.tel2.value)))
	{
		alert("Preencha o telefone apenas com números!");
		document.form.tel2.select();
	}
	else if ((document.form.tel3.value != "") && (tel3.length < 4))
	{
		alert("Telefone incompleto!");
		document.form.tel3.focus();
	}
	else if ((document.form.tel3.value != "") && (!IsNumber(document.form.tel3.value)))
	{
		alert("Preencha o telefone apenas com números!");
		document.form.tel3.select();
	}
	else if ((document.form.cel1.value != "") && (document.form.cel2.value == "") && (document.form.cel3.value == ""))
	{
		alert ("Celular incompleto!");
	}
	else if ((document.form.cel1.value != "") && (document.form.cel2.value != "") && (document.form.cel3.value == ""))
	{
		alert ("Celular incompleto!");
	}
	else if ((document.form.cel1.value != "") && (document.form.cel2.value == "") && (document.form.cel3.value != ""))
	{
		alert ("Celular incompleto!");
	}
	else if ((document.form.cel1.value == "") && (document.form.cel2.value != "") && (document.form.cel3.value == ""))
	{
		alert ("Celular incompleto!");
	}
	else if ((document.form.cel1.value == "") && (document.form.cel2.value != "") && (document.form.cel3.value != ""))
	{
		alert ("Celular incompleto!");
	}
	else if ((document.form.cel1.value == "") && (document.form.cel2.value == "") && (document.form.cel3.value != ""))
	{
		alert ("Celular incompleto!");
	}	
	else if ((document.form.cel1.value != "") && (cel1.length < 2))
	{
		alert("Celular incompleto!");
		document.form.cel1.focus();
	}
	else if ((document.form.cel1.value != "") && (!IsNumber(document.form.cel1.value)))
	{
		alert("Preencha o celular apenas com números!");
		document.form.cel1.select();
	}
	else if ((document.form.cel2.value != "") && (cel2.length < 4))
	{
		alert("Celular incompleto!");
		document.form.cel2.focus();
	}
	else if ((document.form.cel2.value != "") && (!IsNumber(document.form.cel2.value)))
	{
		alert("Preencha o celular apenas com números!");
		document.form.cel2.select();
	}
	else if ((document.form.cel3.value != "") && (cel3.length < 4))
	{
		alert("Celular incompleto!");
		document.form.cel3.focus();
	}
	else if ((document.form.cel3.value != "") && (!IsNumber(document.form.cel3.value)))
	{
		alert("Preencha o celular apenas com números!");
		document.form.cel3.select();
	}
	else if (document.form.email.value == "")
	{
		alert("Informe o e-mail!");
		document.form.email.focus();	
	}
	else if ((document.form.email.value != "") && (!IsEmail(document.form.email.value)))
	{
		alert("E-mail inválido!");
		document.form.email.select();
	}
	else
	{	
		document.form.submit()
	}
	
}
