function RequestObject()
{
	var xhr_object = null;
	
	if(window.XMLHttpRequest)
	{
		xhr_object = new XMLHttpRequest();
	}
	else if(window.ActiveXObject)
	{ 
		try
		{
			xhr_object = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	else
	{
		alert("Votre navigateur ne supporte pas l'objet XMLHTTPRequest..."); 
		xhr_object = false; 
	}
	return xhr_object;
}


function afficheProduit(target, affiche, cat){
// alert(target+' '+affiche+' '+cat);
	target=target+'?affiche='+affiche+'&cat='+cat;
	var xhr_object = RequestObject();
	xhr_object.onreadystatechange = function() {
		if(xhr_object.readyState == 4)
		{
			if(xhr_object.status == 200){	
				document.getElementById("ListingProd").innerHTML = xhr_object.responseText;
			}else{
				document.getElementById("ListingProd").innerHTML = '';
			}
		}
	}
	xhr_object.open("GET", target, true);
	xhr_object.send(null);		
}
