function IndexPiadas()
{

IndPiadas = ajaxInit();

if(IndPiadas)
    {
    IndPiadas.open("GET","http://www.agorasim.com/cgi-bin/IndexPiadas.pl",true);
    IndPiadas.onreadystatechange = function()
{
if(IndPiadas.readyState <4)
{
		document.getElementById('piadas').innerHTML = "<center><img src='carr.gif'>Escolhendo piadas...<br>Aguarde.</center>";
window.status="AgoraSim! - Executando...";
}
if(IndPiadas.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(IndPiadas.readyState == 4)
	     {

	     if(IndPiadas.status == 200)		
                {

		document.getElementById('piadas').innerHTML = IndPiadas.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ IndPiadas.statusText);
		}

}
	    }	    
	}

IndPiadas.send(null);
     
    }
}


function IndexPoesias()
{

IndPoesias = ajaxInit();

if(IndPoesias)
    {
    IndPoesias.open("GET","http://www.agorasim.com/cgi-bin/IndexPoesias.pl",true);
    IndPoesias.onreadystatechange = function()
{
if(IndPoesias.readyState <4)
{
		document.getElementById('poesias').innerHTML = "<center><img src='carr.gif'>Escolhendo poesias...<br>Aguarde.</center>";
window.status="AgoraSim! - Executando...";
}
if(IndPoesias.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(IndPoesias.readyState == 4)
	     {

	     if(IndPoesias.status == 200)		
                {

		document.getElementById('poesias').innerHTML = IndPoesias.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ IndPoesias.statusText);
		}

}
	    }	    
	}

IndPoesias.send(null);
     
    }
}


function ASIndex()
{

PagIndex = ajaxInit();

if(PagIndex)
    {
    PagIndex.open("GET","http://www.agorasim.com/cgi-bin/ASIndex.pl",true);
    PagIndex.onreadystatechange = function()
{
if(PagIndex.readyState <4)
{
		document.getElementById('ajax').innerHTML = "<center><img src='carr.gif'>Carregando conteúdo...<br>Aguarde.</center>";
window.status="AgoraSim! - Executando...";
}
if(PagIndex.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(PagIndex.readyState == 4)
	     {

	     if(PagIndex.status == 200)		
                {

		document.getElementById('ajax').innerHTML = PagIndex.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ PagIndex.statusText);
		}

}
	    }	    
	}

PagIndex.send(null);
     
    }
}




function curiosidade()
{
setTimeout ("curiosidade()", 20000) 
cur = ajaxInit();

if(cur)
    {
    cur.open("GET","http://www.agorasim.com/cgi-bin/curiosidadesAjax.pl",true);
    cur.onreadystatechange = function()
{
if(cur.readyState <4)
{
		document.getElementById('curiosidade').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(cur.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(cur.readyState == 4)
	     {

	     if(cur.status == 200)		
                {

		document.getElementById('curiosidade').innerHTML = cur.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ cur.statusText);
		}

}
	    }	    
	}

cur.send(null);
     
    }
}


function materias()
{

mat = ajaxInit();

if(mat)
    {
    mat.open("GET","http://www.agorasim.com/cgi-bin/materiasAjax.pl",true);
    mat.onreadystatechange = function()
{
if(mat.readyState <4)
{
		document.getElementById('materias').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(mat.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(mat.readyState == 4)
	     {

	     if(mat.status == 200)		
                {

		document.getElementById('materias').innerHTML = mat.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ mat.statusText);
		}

}
	    }	    
	}

mat.send(null);
     
    }
}



function infNovas()
{

iNovas = ajaxInit();

if(iNovas)
    {
    iNovas.open("GET","http://www.agorasim.com/cgi-bin/infNov.pl",true);
    iNovas.onreadystatechange = function()
{
if(iNovas.readyState <4)
{
		document.getElementById('novas').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(iNovas.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(iNovas.readyState == 4)
	     {

	     if(iNovas.status == 200)		
                {

		document.getElementById('novas').innerHTML = iNovas.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ iNovas.statusText);
		}

}
	    }	    
	}

iNovas.send(null);
     
    }
}


function RelacaoInforVirus()
{

RelInforVir = ajaxInit();

if(RelInforVir)
    {
    RelInforVir.open("GET","http://www.agorasim.com/cgi-bin/RelacaoInforVirus.pl",true);
    RelInforVir.onreadystatechange = function()
{
if(RelInforVir.readyState <4)
{
		document.getElementById('RelacaoInforVirus').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(RelInforVir.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(RelInforVir.readyState == 4)
	     {

	     if(RelInforVir.status == 200)		
                {

		document.getElementById('RelacaoInforVirus').innerHTML = RelInforVir.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ RelInforVir.statusText);
		}

}
	    }	    
	}

RelInforVir.send(null);
     
    }
}



function RelacaoFalhasSeguranca()
{

RelFalhSeg = ajaxInit();

if(RelFalhSeg)
    {
    RelFalhSeg.open("GET","http://www.agorasim.com/cgi-bin/RelacaoFalhasSeguranca.pl",true);
    RelFalhSeg.onreadystatechange = function()
{
if(RelFalhSeg.readyState <4)
{
		document.getElementById('RelacaoFalhaSeg').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(RelFalhSeg.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(RelFalhSeg.readyState == 4)
	     {

	     if(RelFalhSeg.status == 200)		
                {

		document.getElementById('RelacaoFalhaSeg').innerHTML = RelFalhSeg.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ RelFalhSeg.statusText);
		}

}
	    }	    
	}

RelFalhSeg.send(null);
     
    }
}


function RelacaoScriptsJavaScript()
{

RelScriptsJavascript = ajaxInit();

if(RelScriptsJavascript)
    {
    RelScriptsJavascript.open("GET","http://www.agorasim.com/cgi-bin/RelacaoScriptsJS.pl",true);
    RelScriptsJavascript.onreadystatechange = function()
{
if(RelScriptsJavascript.readyState <4)
{
		document.getElementById('RelacaoScriptsJS').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(RelScriptsJavascript.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(RelScriptsJavascript.readyState == 4)
	     {

	     if(RelScriptsJavascript.status == 200)		
                {

		document.getElementById('RelacaoScriptsJS').innerHTML = RelScriptsJavascript.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ RelScriptsJavascript.statusText);
		}

}
	    }	    
	}

RelScriptsJavascript.send(null);
     
    }
}


function RelacaoMateriasRelacionamento()
{

RelMatRelacionamento = ajaxInit();

if(RelMatRelacionamento)
    {
    RelMatRelacionamento.open("GET","http://www.agorasim.com/cgi-bin/RelacaoMateriasRelacionamento.pl",true);
    RelMatRelacionamento.onreadystatechange = function()
{
if(RelMatRelacionamento.readyState <4)
{
		document.getElementById('RelacaoMatRelacionamento').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(RelMatRelacionamento.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(RelMatRelacionamento.readyState == 4)
	     {

	     if(RelMatRelacionamento.status == 200)		
                {

		document.getElementById('RelacaoMatRelacionamento').innerHTML = RelMatRelacionamento.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ RelMatRelacionamento.statusText);
		}

}
	    }	    
	}

RelMatRelacionamento.send(null);
     
    }
}


function ListarMusica(quem)
{

ListaMusica = ajaxInit();

if(ListaMusica)
    {
    ListaMusica.open("GET","http://www.agorasim.com/cgi-bin/ListarMusica.pl?quem="+quem,true);

    ListaMusica.onreadystatechange = function()
{
if(ListaMusica.readyState <4)
{
		document.getElementById('ListaDeMusica').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(ListaMusica.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(ListaMusica.readyState == 4)
	     {

	     if(ListaMusica.status == 200)		
                {

		document.getElementById('ListaDeMusica').innerHTML = ListaMusica.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ ListaMusica.statusText);
		}

}
	    }	    
	}

ListaMusica.send(null);
     
    }
}



function RelacaoEmotions()
{

rEmotions = ajaxInit();

if(rEmotions)
    {
    rEmotions.open("GET","http://www.agorasim.com/cgi-bin/RelacaoEmotions.pl?grupo=",true);

    rEmotions.onreadystatechange = function()
{
if(rEmotions.readyState <4)
{
		document.getElementById('RelEmotions').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(rEmotions.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(rEmotions.readyState == 4)
	     {

	     if(rEmotions.status == 200)		
                {

		document.getElementById('RelEmotions').innerHTML = rEmotions.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ rEmotions.statusText);
		}

}
	    }	    
	}

rEmotions.send(null);
     
    }
}


function RelacaoVirusMessenger()
{

rVirusMSN = ajaxInit();

if(rVirusMSN)
    {
    rVirusMSN.open("GET","http://www.agorasim.com/cgi-bin/RelacaoVirusMSN.pl",true);

    rVirusMSN.onreadystatechange = function()
{
if(rVirusMSN.readyState <4)
{
		document.getElementById('RelacaoVirusMSN').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(rVirusMSN.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(rVirusMSN.readyState == 4)
	     {

	     if(rVirusMSN.status == 200)		
                {

		document.getElementById('RelacaoVirusMSN').innerHTML = rVirusMSN.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ rVirusMSN.statusText);
		}

}
	    }	    
	}

rVirusMSN.send(null);
     
    }
}


function RelacaoLendasMitos()
{

rLendMit = ajaxInit();

if(rLendMit)
    {
    rLendMit.open("GET","http://www.agorasim.com/cgi-bin/RelacaoLendasEMitos.pl",true);

    rLendMit.onreadystatechange = function()
{
if(rLendMit.readyState <4)
{
		document.getElementById('RelacaoLenMit').innerHTML = "<center><img src='carr.gif'></center>";
window.status="AgoraSim! - Executando...";
}
if(rLendMit.readyState == 4)
{

window.status="AgoraSim! - Concluido.";}
	    
     {
          if(rLendMit.readyState == 4)
	     {

	     if(rLendMit.status == 200)		
                {

		document.getElementById('RelacaoLenMit').innerHTML = rLendMit.responseText;
                }

		else

		{
		alert("Ocorreu o seguinte erro: "+ rLendMit.statusText);
		}

}
	    }	    
	}

rLendMit.send(null);
     
    }
}
