

function ar_senha_perdida()
{
email	=	window.prompt('Para recuperar sua senha digite seu E-mail.\nApós verificação pelo sistema sua senha será encaminhada para seu e-mail:','');
	if(email != null)
	{
		xmlhttp	=	mount_XMLHttp();
		url	=	"../ajax/ar.senhaperdida.php?email="+email;
		xmlhttp.open("GET", url,true);
	
		xmlhttp.onreadystatechange=function() {
			if(xmlhttp.readyState==4){
				alert(xmlhttp.responseText);
			}
		}
	xmlhttp.send(null);
	}
}


function pop_up_center(local, w, h, param)
{
largura = screen.width;
altura 	= screen.height;
XX 		= (largura-w)/2;
YY		= (altura-h)/2;
janela = window.open(local,'POP_UP','width='+w+',height='+h+',left='+XX+',top='+YY+','+param);
janela.focus();
}

function seta_cadastro()
{

nome	=	document.form_cad_news.news_nome.value;
email	=	document.form_cad_news.news_email.value;

xmlhttp	=	mount_XMLHttp();
url	=	"../ajax/ajax.cadastro.news.asp?a=1&nome="+nome+'&email='+email;
xmlhttp.open("GET", url,true);

xmlhttp.onreadystatechange=function() {

	if(xmlhttp.readyState==4){
		retorno	=	xmlhttp.responseText;
		document.getElementById('cadastro').style.display		= 'none';
		document.getElementById('cadastro_msg').style.display	= 'block';
		document.getElementById('cadastro_msg').innerHTML		= retorno;
			self.setTimeout('show_cad()', 4000) ;
	}
}
xmlhttp.send(null);
}

function show_cad()
{
	window.clearTimeout();
	document.getElementById('cadastro').style.display		= 'block';
	document.getElementById('cadastro_msg').style.display	= 'none';
	document.form_cad_news.reset();
}

function _go(selObj)
{
valor = selObj.options[selObj.selectedIndex].value;
	if(valor != "#"){
		self.location = valor;
	}
}

function addToFavorites(pageName){
	if(window.external){
		window.external.AddFavorite(window.location,pageName);
	}else{
		alert('Desculpe, seu browser não suporta esta função. Efetue o procedimento manualmente.');
	}
}



