var intervalo;
function carregar() {
    set_xmlhttp();
    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == 4) {
            document.getElementById('lista').innerHTML = xmlhttp.responseText;
            intervalo = self.setInterval("atualizar()", 4000);
        }
    }
    xmlhttp.open('GET', 'srt/engine.php', true);
    xmlhttp.send(null);
}

function atualizar() {
    intervalo = window.clearInterval(intervalo);
    carregar();
}
carregar();

function abreJanela(arquivo,titulo){
features = "width=650,height=450,directories=no,status=no,location=no,menubar=no,resizeable=yes,scrollbars=no,titlebar=no,toolbar=no";

window.open(arquivo,titulo,features);

}// JavaScript Document


