function ajaxTreatFavoris(action,zone,urlEchec)
{   	
	if(zone==undefined)zone="BlockFavoris";
	if(urlEchec==undefined)urlEchec="/login.php";
	var xmlHttp;	
  	try {    // Firefox, Opera 8.0+, Safari    
    	xmlHttp=new XMLHttpRequest();    
    }
  	catch (e) {    // Internet Explorer    
    	try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
    	catch (e){            		
      		try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
      		catch (e) { alert("Votre browser ne supporte pas AJAX!");
        				return false;        
        	}      
        }    
	}
    xmlHttp.onreadystatechange=function()
	{		
		var msg='<img src="/images/loading.gif" alt="" />';
		if(xmlHttp.readyState <= 3) {   			
   			if (document.getElementById) {		    	
		    	document.getElementById(zone).innerHTML = msg;	    	
		    }
		  	else if (document.all){
		    	document.all[zone].innerHTML = msg;		    	
		    }	
  		}
		else if(xmlHttp.readyState==4) {			
			if (xmlHttp.responseText=='<img src="/images/loading.gif" />') {	
		    	document.location=urlEchec;
		    }
    
    
    		if (document.getElementById) {	
		    	document.getElementById(zone).innerHTML = xmlHttp.responseText;
		    }
		  	else if (document.all){
		    	document.all[zone].innerHTML = xmlHttp.responseText;		    	
		    }		   	    			    	
		}
	}
	var url_cible=action;	
	xmlHttp.open("GET",url_cible,true);
	xmlHttp.send(null);  
} 