// JavaScript Document
function ajax()
{
    var xhr=null;
    
    if (window.XMLHttpRequest) { 
        xhr = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) 
    {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
    }
    //on définit l'appel de la fonction au retour serveur
    //xhr.onreadystatechange = function() { alert_ajax(xhr); };
    
    //on appelle le fichier reponse.txt
    xhr.open("GET", "http://www.mariage-chretien.com/myupdater.php", true);
    xhr.send(null);
}


function closew(id)
{	

	if( document.getElementById('refus'))
			  {
			  document.getElementById('refus').innerHTML = "";
			  }
			  
	var xhr=null;
	
	
	if (window.XMLHttpRequest) { 
        xhr = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) 
    {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
    }
    //on définit l'appel de la fonction au retour serveur
    //xhr.onreadystatechange = function() { alert_ajax(xhr); };
    
    //on appelle le fichier reponse.txt
    xhr.open("GET", "http://www.mariage-chretien.com/closew.php?supp_inv="+id+"", true);
    xhr.send(null);
}

function invite(id,user)
{	

	
			  
	var xhr=null;
	
	
	if (window.XMLHttpRequest) { 
        xhr = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) 
    {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
    }
    //on définit l'appel de la fonction au retour serveur
    //xhr.onreadystatechange = function() { alert_ajax(xhr); };
    
    //on appelle le fichier reponse.txt
    xhr.open("GET", "http://www.mariage-chretien.com/invite.php?invteid="+id+"", true);
    xhr.send(null);
	
	//AjaxIM.create(user,user);
	IM.newIMWindowbis(user);
}
