function exibirocultar(id){
	var exibir = document.getElementById(id);
	(exibir.style.display == 'none') ? exibir.style.display = 'block': exibir.style.display = 'none';
}

function Lembra(){
	var url = "novasenha.php";
	var valor = "valor="+document.esqueci.valor.value;
	if (window.XMLHttpRequest){
		req = new XMLHttpRequest(); 
	}else if (window.ActiveXObject){
		req = new ActiveXObject("Microsoft.XMLHTTP");
	}
	req.onreadystatechange = function(){
		if(req.readyState == 4){
			if(req.status == 200){
				var json = eval('('+req.responseText+')');
				var texto = json.texto;
				texto = texto.replace(/\+/g," ");
				texto = unescape(texto);
				var conteudo = document.getElementById("log_err");
				conteudo.innerHTML = texto;
				
				var cond = json.cond;
				if(cond == 2){
					document.esqueci.valor.value = '';
					document.getElementById("log_err2").style.display = 'none';
				}
			}
			else{
				alert("Houve um problema ao obter os dados:\n" + req.statusText);
			}
		}
	};
	req.open("POST",url,true);
	req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; iso-8859-1");  
	req.setRequestHeader("CharSet", "iso-8859-1")  
	req.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate");  
	req.setRequestHeader("Cache-Control", "post-check=0, pre-check=0");  
	req.setRequestHeader("Pragma", "no-cache"); 
	req.send(valor);
}