function GetXmlHttpObject(handler)
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}

function show_pays(id_pays) {
document.getElementById("ow_pays").style.visibility="visible";
document.getElementById("ow_pays").innerHTML = '<div align="center" class="gnoir"><br><br><br><br><br><br><br><img src="img_com/loading.gif" alt="" width="20" height="20" border="0"></div>';
if (id_pays.length==0){ 
eval ('document.getElementById("ow_pays").innerHTML="marche pas !"');
return
}
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 

var url="library/detail_pays.php"
url=url+"?id_pays="+id_pays
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function() { 
        if (xmlHttp.readyState==4)
            if (xmlHttp.status==200)
                detailChanged(xmlHttp, id_pays);
    }
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function detailChanged(dett,id_pays) 
{ 
//document.getElementById("ow_pays").innerHTML="sdfsqdfqs"; 
document.getElementById("ow_pays").innerHTML=dett.responseText; 
}

function ferme_ow(lay) {
document.getElementById(lay).style.visibility="hidden";
}
