function abreInstitucional(){
	window.open("institucional.php","_self");
}
function abreBiblioteca(){
	window.open("biblioteca.php","_self");
}
function abreClipping(){
	window.open("visualizar_ultima_noticia.php?ipDinamico=noticias.mixtecnologia.com.br&diretorioTemplate=clube_leitor_d&nomeTemplate=mix_clube_visualizar_noticia.php&conjuntoCodigoSecao=296","_self");
}
function abreContato(){
	window.open("contato.php","_self");
}
function abreSiteleitor(){
	window.open("http://www.leitord.com.br","_blank");	
}

//================== FUNÇÃO CONTEÚDO

tXHR=0;   
divId="";

function XMLHTTPRequest() {   
if (window.XMLHttpRequest) {   
	a=new XMLHttpRequest(); } //Objeto nativo (FF/Safari/Opera7.6+)   
else {   
  try {   
	 a=new ActiveXObject("Msxml2.XMLHTTP");  //activeX (IE5.5+/MSXML2+)   
  }     
  catch(e) {   
	try {   
	   a=new ActiveXObject("Microsoft.XMLHTTP"); //activeX (IE5+/MSXML1)   
	}     
	catch(e) { /* O navegador não tem suporte */   
	   a=false;   
	}   
  }   
}   
return a;   
}   

function recebeResultado() {
  if (!tXHR) {
	  return false;
  }
  else {
	  if (tXHR.readyState == 4) {
		  if (tXHR.status == 200) {
			  document.getElementById(divId).innerHTML = tXHR.responseText;
		  }   
		  else {   
			  document.getElementById(divId).innerHTML = 'Erro! "'+ tXHR.statusText +'" (erro '+ tXHR.status +')';   
		  }   
	  }       
  }   
}   

function acaoConteudo(div,action) {
  divId = div;
  tXHR=XMLHTTPRequest();   
  if (tXHR) {
	  document.getElementById(divId).innerHTML = 
          "<table align='center' valign='center'>"+
          	"<tr>"+
           		"<td align='center'>"+
				
               		"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /><br />"+
               		"<img src='imagens/loader.gif' /><br />"+
                 	"<font color='#153170' size='2' face='Verdana, Arial, Helvetica, sans-serif'>Carregando...</font>"+
                    	"<br/><br/><br/><br/><br/><br/><br/>"+
                       	"</td>"+
                "</tr>"+
          "</table>";
	  tXHR.open("POST", action, true);
	  //tXHR.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=ISO-8859-1");
	  tXHR.onreadystatechange=recebeResultado;   
	  tXHR.send(null);   
  }   
}
