meuAjax = function (){   
    try{   
        xmlhttp = new XMLHttpRequest();   
    }catch(ee){   
        try{   
            xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");   
        }catch(e){   
            try{   
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");   
            }catch(E){   
                xmlhttp = false;   
            }   
        }   
    }   
}  
ajaxGet = function( nomeUrl, divRetorno ){   
  
    divInsereResposta = document.getElementById( divRetorno );   
       
    meuAjax();   
    xmlhttp.abort();   
    xmlhttp.open("GET", nomeUrl ,true);   
       
    xmlhttp.setRequestHeader("Content-Type", "text/html; charset=iso-8859-1");   
    xmlhttp.onreadystatechange = function() {   
            if( xmlhttp.readyState == 4 ){   
                   
                var valorRetorno            = xmlhttp.responseText;   
                divInsereResposta.innerHTML = valorRetorno;   
                       
            }   
    }   
       
    xmlhttp.send( null );   
  
}