
function newAjax()
{
    var httpObj = null;
	if(window.XMLHttpRequest)
	{
		 // Firefox
	   	httpObj = new XMLHttpRequest();
	}
	else if(window.ActiveXObject) // Internet Explorer
	   	httpObj = new ActiveXObject("Microsoft.XMLHTTP");
	else
	{
		// XMLHttpRequest non supporte par le navigateur
	   	alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
	   	return false;
	}
    return httpObj;
}
function affiche_pmb()
{
    	var res_pmb = document.getElementById("res_pmb");
	http9 = newAjax();
    	if(http9)
    	{
	    http9.open("POST", "http://pmb.caue-isere.org/opac_css/index.php?lvl=more_results&user_query=*&mode=titre&count=53&clause=\"where (index_sew like '% % %' ) and (statut=id_notice_statut and ((notice_visible_opac=1 and notice_visible_opac_abon=0))) and typdoc='k'\"&pert=\"((index_sew like '% % %')) as pert\"&l_typdoc=k&tri=\"order by pert desc, index_serie, tnvol, index_sew\"",true);
        	http9.onreadystatechange=function()
        	{
            		if (http9.readyState == 4)
            		{
                		resultat  = http9.responseText;
				//alert(resultat);
				res_pmb.innerHTML = resultat;

            		}

	    	}
	    	http9.send(null);
    
    	}
    	else
    	{
        	return false;
    	}
}

