function getProgramacao(dest_id) {
    
    var elemento_dest = document.getElementById('conteudo_progr');
    
    if (xmlhttp) {
        
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState == 4) {
                // Se OK
                if (xmlhttp.status == 200) {						
                    elemento_dest.innerHTML=xmlhttp.responseText;						
                } else {
                    alert("There was a problem while using XMLHTTP:\n" + xmlhttp.statusText);
                }
            }				
        }			
        xmlhttp.open("GET", "pages/programacao-conteudo.php?anuncio="+ dest_id, true);
        xmlhttp.send(null);
    }

            
}


