/********** Escreve data  **********/

function EscreveData() {
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new
Array("Domingo","Segunda-feira","Ter&ccedil;a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S&aacute;bado")
var montharray=new
Array("Jaineiro","Fevereiro","Mar&ccedil;o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro")
document.write(""+dayarray[day]+", "+daym+" de "+montharray[month]+" de "+year+"</b></font></small>")
}

/********** escreve hora **********/


function EscreveHora() {
agora = new Date (); horas = agora.getHours ();
minutos = agora.getMinutes ();
if (horas < 10) horas = "0" + horas;
if (minutos < 10) minutos = "0" + minutos;
document.write(horas+":" +minutos+ "h");
}

/********** Valida Rodape **********/

function valida_campos(){
		if(document.getElementById("usuario").value == ""){
			alert("Campo Usuario Obrigatorio!!");
			document.getElementById("usuario").focus();
			return false;
		}		
		if(document.getElementById("senha").value == ""){
			alert("Campo Senha Obrigatorio!!");
			document.getElementById("senha").focus();
			return false;
		}							
		return true;
	}
	

/********** Valida Formulario Trabalhe conosco**********/

	function valida_campos_formulario(){
		if(document.getElementById("nome").value == ""){
			alert("Campo Nome é Obrigátorio!!");
			document.getElementById("nome").focus();
			return false;
		}		
		if(document.getElementById("cep").value == ""){
			alert("Campo Cep é Obrigátorio!!");
			document.getElementById("cep").focus();
			return false;
		}					
		if(document.getElementById("endereco").value == ""){
			alert("Campo Endereço é Obrigátorio!!");
			document.getElementById("endereco").focus();
			return false;
		}	
		if(document.getElementById("complemento").value == ""){
			alert("Campo Complemento é Obrigátorio!!");
			document.getElementById("complemento").focus();
			return false;
		}							
		if(document.getElementById("bairro").value == ""){
			alert("Campo Bairro é Obrigátorio!!");
			document.getElementById("bairro").focus();
			return false;
		}	
		if(document.getElementById("cidade").value == ""){
			alert("Campo Cidade é Obrigátorio!!");
			document.getElementById("cidade").focus();
			return false;
		}							
		if(document.getElementById("estado").value == ""){
			alert("Campo Estado é Obrigátorio!!");
			document.getElementById("estado").focus();
			return false;
		}							
		if(document.getElementById("telefone_residencial").value == ""){
			alert("Campo Telefone Residencial é Obrigátorio!!");
			document.getElementById("telefone_residencial").focus();
			return false;
		}							
		if(document.getElementById("email").value == ""){
			alert("Campo Email é Obrigátorio!!");
			document.getElementById("email").focus();
			return false;
		}							
		if(document.getElementById("data_nascimento").value == ""){
			alert("Campo Data de Nascimento é Obrigátorio!!");
			document.getElementById("data_nascimento").focus();
			return false;
		}							
		if(document.getElementById("data_nascimento").value == ""){
			alert("Campo Data de Nascimento é Obrigátorio!!");
			document.getElementById("data_nascimento").focus();
			return false;
		}							
		if(document.getElementById("cpf").value == ""){
			alert("Campo CPF é Obrigátorio!!");
			document.getElementById("cpf").focus();
			return false;
		}							
		if(document.getElementById("escolaridade").value == ""){
			alert("Campo Escolaridade é Obrigátorio!!");
			document.getElementById("escolaridade").focus();
			return false;
		}							
		if(document.getElementById("interesse").value == ""){
			alert("Campo Area de interesse é Obrigátorio!!");
			document.getElementById("interesse").focus();
			return false;
		}							
		if(document.getElementById("profissional").value == ""){
			alert("Campo Experiencia Profissional é Obrigátorio!!");
			document.getElementById("profissional").focus();
			return false;
		}							
		if(document.getElementById("ultima").value == ""){
			alert("Campo Ultima Empresa é Obrigátorio!!");
			document.getElementById("ultima").focus();
			return false;
		}							

		return true;
				
	}

/********** Valida Formulario Ligamos para voce **********/


function valida_campos_ligamos(){
		if(document.getElementById("nome").value == ""){
			alert("Campo Nome é Obrigátorio!!");
			document.getElementById("nome").focus();
			return false;
		}		
		if(document.getElementById("email").value == ""){
			alert("Campo Email é Obrigátorio!!");
			document.getElementById("email").focus();
			return false;
		}	
		if(document.getElementById("telefone").value == ""){
			alert("Campo Telefone é Obrigátorio!!");
			document.getElementById("telefone").focus();
			return false;
		}							
		return true;
				
	}

/********** Valida Formulario contato **********/

	function valida_campos_contato(){
		if(document.getElementById("nome").value == ""){
			alert("Campo Nome é Obrigátorio!!");
			document.getElementById("nome").focus();
			return false;
		}		
		if(document.getElementById("assunto").value == ""){
			alert("Campo Assunto é Obrigátorio!!");
			document.getElementById("assunto").focus();
			return false;
		}					
		if(document.getElementById("email").value == ""){
			alert("Campo Email é Obrigátorio!!");
			document.getElementById("email").focus();
			return false;
		}	
		if(document.getElementById("telefone").value == ""){
			alert("Campo Telefone é Obrigátorio!!");
			document.getElementById("telefone").focus();
			return false;
		}							
		if(document.getElementById("texto").value == ""){
			alert("Campo Texto é Obrigátorio!!");
			document.getElementById("texto").focus();
			return false;
		}					
		return true;
	}
	
/********** Valida Formulario NewsLetter **********/

function valida_campos_letter(){
		if(document.getElementById("nome").value == ""){
			alert("Campo Nome é Obrigátorio!!");
			document.getElementById("nome").focus();
			return false;
		}		
		if(document.getElementById("email").value == ""){
			alert("Campo Email é Obrigátorio!!");
			document.getElementById("email").focus();
			return false;
		}	
		return true;
				
	}
	
/********** Valida Formulario Imovel **********/

	function valida_campos_imovel(){
		if(document.getElementById("nome").value == ""){
			alert("Campo Nome é Obrigátorio!!");
			document.getElementById("nome").focus();
			return false;
		}		
		if(document.getElementById("email").value == ""){
			alert("Campo Email é Obrigátorio!!");
			document.getElementById("email").focus();
			return false;
		}	
		if(document.getElementById("telefone").value == ""){
			alert("Campo Telefone é Obrigátorio!!");
			document.getElementById("telefone").focus();
			return false;
		}							
		if(document.getElementById("texto").value == ""){
			alert("Campo Mensagem é Obrigátorio!!");
			document.getElementById("texto").focus();
			return false;
		}							
		return true;
				
	}
	
/********** Valida Formulario Vender Imovel **********/
	
		function valida_campos_vender(){
		if(document.getElementById("nome").value == ""){
			alert("Campo Nome é Obrigátorio!!");
			document.getElementById("nome").focus();
			return false;
		}		
		if(document.getElementById("email").value == ""){
			alert("Campo Email é Obrigátorio!!");
			document.getElementById("email").focus();
			return false;
		}					
		if(document.getElementById("telefone_residencial").value == ""){
			alert("Campo Telefone Residencial é Obrigátorio!!");
			document.getElementById("telefone_residencial").focus();
			return false;
		}	
		if(document.getElementById("bairro").value == ""){
			alert("Campo Bairro é Obrigátorio!!");
			document.getElementById("bairro").focus();
			return false;
		}							
		if(document.getElementById("cidade").value == ""){
			alert("Campo Cidade é Obrigátorio!!");
			document.getElementById("cidade").focus();
			return false;
		}							
		if(document.getElementById("estado").value == ""){
			alert("Campo Estado é Obrigátorio!!");
			document.getElementById("estado").focus();
			return false;
		}							
		if(document.getElementById("tipo_imovel").value == ""){
			alert("Campo Tipo Imóvel é Obrigátorio!!");
			document.getElementById("tipo_imovel").focus();
			return false;
		}							
		if(document.getElementById("valor_imovel").value == ""){
			alert("Campo Valor do Imovel é Obrigátorio!!");
			document.getElementById("valor_imovel").focus();
			return false;
		}							

		return true;
				
	}


