// JavaScript Document
try{
    xmlhttp = new XMLHttpRequest();
}catch(ee){
    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(E){
            xmlhttp = false;
        }
    }
}

xmlhttp = getBrowser();

function popula(n){

    xmlhttp.open("GET", "popula.asp?n="+n,true);
    xmlhttp.onreadystatechange=function() {
    if (xmlhttp.readyState==4){
    var texto = unescape(xmlhttp.responseText.replace(/\+/g," ")); // coloca acentos
	//alert(texto);
	document.getElementById('capitulo').innerHTML = texto;
	    }
    }
    xmlhttp.send(null) 
}

function popula2(n,o){

    xmlhttp.open("GET", "popula2.asp?n="+n+"&o="+o,true);
    xmlhttp.onreadystatechange=function() {
    if (xmlhttp.readyState==4){
    var texto = unescape(xmlhttp.responseText.replace(/\+/g," ")); // coloca acentos
	document.getElementById('versiculo').innerHTML = texto;
        }
    }
    xmlhttp.send(null) 
}

function popula3(n,o){

    xmlhttp.open("GET", "popula3.asp?n="+n,true);
    xmlhttp.onreadystatechange=function() {
    if (xmlhttp.readyState==4){
    var texto = unescape(xmlhttp.responseText.replace(/\+/g," ")); // coloca acentos
	document.getElementById('capitulo2aa').innerHTML = texto;
        }
    }
    xmlhttp.send(null) 
}