// Desenvolvido por Alex Ribeiro - by Internetix

 function valida(theForm){
	if (isBlank(theForm.nome)){
	  alert("Opss !!! Preencha o campo \"Nome\".");
	  return false;
	}
	
	//if (isBlank(theForm.endereco)){
	//	alert("Opss !!! Preencha o campo \"Endereço\".");
	//	return false;
	//}		
	
		
	//if (isBlank(theForm.bairro)){
	//	alert("Opss !!! Preencha o campo \"Bairro\".");
	//	return false;
	//}
	if (isBlank(theForm.cidade)){
		alert("Opss !!! Preencha o campo \"Cidade\".");
		return false;
	}									
	//if (isBlank(theForm.uf)){
	//	alert("Opss !!! Preencha o campo \"UF\".");
	//	return false;
	//}
	
	
	if (!isNumber(theForm.ddd)){
	  alert("Opss !!! Preencha o campo \n\"DDD Ex: 011\".");
	  return false;
	}
	if (!isNumber(theForm.fone)){
	  alert("Opss !!! Preencha o campo \n\"Telefone Ex: xx 12345678\".");
	  return false;
	}
	if (isBlank(theForm.email)){
	  alert("Opss !!! Preencha o campo \"E-mail\".");
	  return false;
	}						
   else if (!isMail(theForm.email)) {
	  alert("Opss !!! Formato incorreto de E-mail.");
	  return false;
	}
	
	
	 if (isBlank(theForm.assunto)){
	  alert("Opss !!! Preencha o campo \n\"Assunto\".");
	  return false;
	}
	

	 if (isBlank(theForm.comentario)){
	  alert("Opss !!! Preencha o campo \n\"Mensagem\".");
	  return false;
	}		
	 return true;
	} 