var xhr = null;
function getXhr()
{
     if(window.XMLHttpRequest)xhr = new XMLHttpRequest();
else if(window.ActiveXObject)
  {
  try{
     xhr = new ActiveXObject("Msxml2.XMLHTTP");
     } catch (e)
     {
     xhr = new ActiveXObject("Microsoft.XMLHTTP");
     }
  }
else
  {
  alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
  xhr = false;
  }
}

function modif(div,url,method){
  getXhr()
  xhr.onreadystatechange = function()
    {
    if(xhr.readyState == 4 && xhr.status == 200)
    {
    document.getElementById(div).innerHTML=xhr.responseText;
    }
  }
  xhr.open("GET","../partenaire.php?id="+document.form_addpart.id.value+"&cat="+document.form_addpart.cat.value+"&nom="+document.form_addpart.nom.value+"&url="+document.form_addpart.url.value,true);
  xhr.send(null);
}

