   function caixaAlta(campo){
		campo.value = campo.value.toUpperCase();  
   }
     
	function caixaBaixa(campo){
		campo.value = campo.value.toLowerCase();
   }
 
 	function campoFocus(campo){
		campo.style.background = '#E3F9F2';
   }
 	function campoUnFocus(campo){
		campo.style.background = '#F7F7F7';
   }   
 	function campoErro(campo){
		campo.style.background = '#FADEDE';
   }     


function validaFormularioRh(form){
		
		if (form.nome.value.length < 5 ){
			form.nome.focus();
			alert('Preencha seu nome!');
			campoErro(form.nome);
			return false;
		}
		if (form.nascimento.value.length < 7 ){
			form.nascimento.focus();
			alert('Preencha sua data de nascimento!');
			campoErro(form.nascimento);
			return false;
		}
		if (form.email.value.length < 5 ){
			form.email.focus();
			alert('Informe seu e-mail de contato!');
			campoErro(form.email);
			return false;
		}
		if (form.endereco.value.length < 5 ){
			form.endereco.focus();
			alert('Por favor, informe seu endereco completo!');
			campoErro(form.endereco);
			return false;
		}
		if (form.bairro.value.length < 3 ){
			form.bairro.focus();
			alert('Digite o bairro onde voce reside!');
			campoErro(form.bairro);
			return false;
		}
		if (form.cidade.value.length < 3 ){
			form.cidade.focus();
			alert('Precisamos conhecer a cidade onde reside!');
			campoErro(form.cidade);
			return false;
		}
		if (form.telefone.value.length < 3 ){
			form.telefone.focus();
			alert('Nos informe um telefone para contato!');
			campoErro(form.telefone);
			return false;
		}
		if (form.cargo.value.length < 3 ){
			form.cargo.focus();
			alert('Qual o cargo desejado?');
			campoErro(form.cargo);
			return false;
		}
		if (form.salario.value.length < 3 ){
			form.salario.focus();
			alert('Qual sua pretenssao salarial?');
			campoErro(form.salario);
			return false;
		}
		if (form.formacao.value.length < 3 ){
			form.formacao.focus();
			alert('Informe sua formacao!');
			campoErro(form.formacao);
			return false;
		}
		
		return true;
}

function validaFormularioContato(form){
		
		if (form.nome.value.length < 5 ){
			form.nome.focus();
			alert('Preencha seu nome!');
			campoErro(form.nome);
			return false;
		}
		if (form.email.value.length < 5 ){
			form.email.focus();
			alert('Informe seu e-mail de contato!');
			campoErro(form.email);
			return false;
		}
		if (form.telefone.value.length < 3 ){
			form.telefone.focus();
			alert('Nos informe um telefone para contato!');
			campoErro(form.telefone);
			return false;
		}
		if (form.cidade.value.length < 3 ){
			form.cidade.focus();
			alert('Precisamos conhecer a cidade onde reside!');
			campoErro(form.cidade);
			return false;
		}
		return true;
}



function loadFrame(url){
	parent.document.getElementById('frameaux').style.display = 'block';
	parent.document.getElementById('blank').style.display = 'block';
	parent.document.getElementById('iframeaux').src = url;
}

function closeFrame(){
	parent.document.getElementById('blank').style.display = 'none';
	parent.document.getElementById('frameaux').style.display = 'none';
	//var sbPreloader = new SbPreloader();			
	parent.document.getElementById('iframeaux').src = '';
}
function closeFrame2(){
	document.getElementById('blank').style.display = 'none';
	document.getElementById('frameaux').style.display = 'none';
	//var sbPreloader = new SbPreloader();			
	document.getElementById('iframeaux').src = '';
}
function closeFrameReflesh(){
	document.getElementById('iframeaux').src = '';	
	document.getElementById('frameaux').style.display = 'none';
	document.location.reload();
		sbPreloader.hide();
}


function closeFrameRefleshMsg(msg){
	document.getElementById('iframeaux').src = '';	
	document.getElementById('frameaux').style.display = 'none';	
	alert(msg);
	document.location.reload();
		sbPreloader.hide();
}



function loadFrameSemIframe(url){
	document.getElementById('blank').style.display = 'block';
	document.getElementById('iframeaux').src = url;
}

