function checkdata()
{

	with(document.form1)
	{

		if (document.form1.nome.value == "")
		{
	 	alert("Informar o nome");
	 	nome.focus();
	 	return false; 
		}

		if (document.form1.telefone.value == "")
		{
		 alert("Informar o telefone");
		 telefone.focus();
		 return false; 
		}

		var valido;
		var str = document.form1.email.value;
		var filter = (/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]{2,}\.[A-Za-z0-9]{2,}(\.[A-Za-z0-9])?/);
				//^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	    if(filter.test(str))
    	  valido = true;
	    else{
		  alert("Este endereço de e-mail não é válido!");
		  email.focus();
		  valido = false;
		  return false;
		    }


		if (document.form1.numeroIptu.value == "")
		{
		 alert("Informar o Número do IPTU");
		 numeroIptu.focus();
		 return false; 
		}

		if (document.form1.endereco.value == "")
		{
		 alert("Informar o endereço");
		 endereco.focus();
		 return false;
		}

		if (document.form1.cep.value == "")
		{
		 alert("Informar o Cep");
		 cep.focus();
		 return false;
		}
		
		if (document.form1.descricaoImovel.value == "")
		{
		 alert("Informar a descrição do imóvel");
		 descricaoImovel.focus();
		 return false;
		}
		
  }
}









