function verifica_busca(){

	if (document.procure.busca.value == ""){
	
		alert("Você deve preencher o campo de busca.");
		document.procure.busca.focus();
		document.procure.busca.select();
		return false;
	}
}
function verifica_imoveis(){
	
	//verifica o nome 
	if (document.imoveis.nome.value == "") {
		alert ("Você deve preencher seu nome para continuar.");
		document.imoveis.nome.focus();
		document.imoveis.nome.select();
		
	}
 
	if (document.imoveis.fone.value == "") {
		alert ("Você deve preencher seu telefone.");
		document.imoveis.fone.focus();
		document.imoveis.fone.select();
		
	}
	if (document.imoveis.cidade.value == "") {
		alert ("Você deve preencher sua cidade.");
		document.imoveis.cidade.focus();
		document.imoveis.cidade.select();
		
	}
	if (document.imoveis.estado.value == "") {
		alert ("Você deve preencher seu estado. Exemplo: SC.");
		document.imoveis.estado.focus();
		document.imoveis.estado.select();
		
	}
	//verifica o e-mail
	if (document.imoveis.email.value == "") {
		alert (" O campo E-mail deve ser preenchido. ");
		document.imoveis.email.focus();
		document.imoveis.email.select();
		return false;
		
	}
	//@ se ele for preenchido
	else {
		
		prim = document.imoveis.email.value.indexOf("@")
		
		if (prim < 2) {
			alert ("O e-mail informado parece não estar correto.");
			document.novo_usuario.email.focus();
			document.novo_usuario.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("@",prim + 1) != -1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(".") < 1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(" ") != -1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("zipmeil.com") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveiso.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("hotmeil.com") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf(".@") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("@.") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf(".com.br.") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("/") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("[") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("]") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("(") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(")") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if(document.imoveis.email.value.indexOf("..") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
	 }
}

// 29/11/2006 edit value for email and name of chill ***

function verefica_email (){
	
	if (document.imoveis.nome.value == "") {
		alert (" O campo Nome deve ser preenchido. ");
		document.imoveis.nome.focus();
		document.imoveis.nome.select();
		return false;
		
	}
	
	if (document.imoveis.email.value == "") {
		alert (" O campo E-mail deve ser preenchido. ");
		document.imoveis.email.focus();
		document.imoveis.email.select();
		return false;
		
	}
	//@ se o email não estiver vazio, verfica a integridade dele
	else {
		
		prim = document.imoveis.email.value.indexOf("@")
		
		if (prim < 2) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("@",prim + 1) != -1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(".") < 1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(" ") != -1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("zipmeil.com") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("hotmeil.com") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf(".@") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("@.") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf(".com.br.") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("/") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("[") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("]") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("(") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(")") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if(document.imoveis.email.value.indexOf("..") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
	 }	 
}function verifica_busca(){

	if (document.procure.busca.value == ""){
	
		alert("Você deve preencher o campo de busca.");
		document.procure.busca.focus();
		document.procure.busca.select();
		return false;
	}
}
function verifica_imoveis(){
	
	//verifica o nome 
	if (document.imoveis.nome.value == "") {
		alert ("Você deve preencher seu nome para continuar.");
		document.imoveis.nome.focus();
		document.imoveis.nome.select();
		
	}
 
	if (document.imoveis.fone.value == "") {
		alert ("Você deve preencher seu telefone.");
		document.imoveis.fone.focus();
		document.imoveis.fone.select();
		
	}
	if (document.imoveis.cidade.value == "") {
		alert ("Você deve preencher sua cidade.");
		document.imoveis.cidade.focus();
		document.imoveis.cidade.select();
		
	}
	if (document.imoveis.estado.value == "") {
		alert ("Você deve preencher seu estado. Exemplo: SC.");
		document.imoveis.estado.focus();
		document.imoveis.estado.select();
		
	}
	//verifica o e-mail
	if (document.imoveis.email.value == "") {
		alert (" O campo E-mail deve ser preenchido. ");
		document.imoveis.email.focus();
		document.imoveis.email.select();
		return false;
		
	}
	//@ se ele for preenchido
	else {
		
		prim = document.imoveis.email.value.indexOf("@")
		
		if (prim < 2) {
			alert ("O e-mail informado parece não estar correto.");
			document.novo_usuario.email.focus();
			document.novo_usuario.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("@",prim + 1) != -1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(".") < 1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(" ") != -1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("zipmeil.com") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveiso.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("hotmeil.com") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf(".@") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("@.") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf(".com.br.") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("/") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("[") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("]") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("(") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(")") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if(document.imoveis.email.value.indexOf("..") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
	 }
}

// 29/11/2006 edit value for email and name of chill ***

function verefica_email (){
	
	if (document.imoveis.nome.value == "") {
		alert (" O campo Nome deve ser preenchido. ");
		document.imoveis.nome.focus();
		document.imoveis.nome.select();
		return false;
		
	}
	
	if (document.imoveis.email.value == "") {
		alert (" O campo E-mail deve ser preenchido. ");
		document.imoveis.email.focus();
		document.imoveis.email.select();
		return false;
		
	}
	//@ se o email não estiver vazio, verfica a integridade dele
	else {
		
		prim = document.imoveis.email.value.indexOf("@")
		
		if (prim < 2) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("@",prim + 1) != -1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(".") < 1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(" ") != -1) {
			alert ("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("zipmeil.com") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("hotmeil.com") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf(".@") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("@.") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf(".com.br.") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("/") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if (document.imoveis.email.value.indexOf("[") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("]") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf("(") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
		
		if (document.imoveis.email.value.indexOf(")") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
		}
		
		if(document.imoveis.email.value.indexOf("..") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.imoveis.email.focus();
			document.imoveis.email.select();
			return false;
			
		}
	 }	 
}