limit_start = 0;
limit_max_1 = 10;
function pagination(town,postcode,action,nb_resp,current_page,id_product_category)
	{
	if(isNaN(action))
		{
		if(action == 'previous')
			{ limit_start = limit_start - limit_max_1; }
			
		if(action == 'next')
			{ limit_start = limit_start + limit_max_1; }
		}
	else
		{ limit_start = action; }

   var xhr_object = null; 
	 
   if(window.XMLHttpRequest) // Firefox 
	  xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
	  xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
   else { // XMLHttpRequest non supporte par le navigateur 
	  alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
	  return; 
   } 
 
   xhr_object.open("POST", "retailers-refresh.php", true); 
	 
   xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4) 
		 { document.getElementById('content_search').innerHTML = xhr_object.responseText; }
		 //alert(xhr_object.responseText); 
   } 
 
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
   var data = "town="+town+"&postcode="+postcode+"&limit_start="+limit_start+"&limit_max="+limit_max_1+"&nb_resp="+nb_resp+"&current_page="+current_page+"&id_product_category="+id_product_category; 
   xhr_object.send(data); 
	}

limit_start = 0;
limit_max = 10;
function pagination_category(town,postcode,action,nb_resp,current_page,id_category)
	{
	if(isNaN(action))
		{
		if(action == 'previous')
			{ limit_start = limit_start - limit_max; }
			
		if(action == 'next')
			{ limit_start = limit_start + limit_max; }
		}
	else
		{ limit_start = action; }

   var xhr_object = null; 
	 
   if(window.XMLHttpRequest) // Firefox 
	  xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
	  xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
   else { // XMLHttpRequest non support� par le navigateur 
	  alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
	  return; 
   } 
 
   xhr_object.open("POST", "retailers-refresh.php", true); 
	 
   xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4) 
		 { document.getElementById('content_search').innerHTML = xhr_object.responseText; }
		 //alert(xhr_object.responseText); 
   } 
 
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
   var data = "town="+town+"&postcode="+postcode+"&limit_start="+limit_start+"&limit_max="+limit_max+"&nb_resp="+nb_resp+"&current_page="+current_page+"&id_category="+id_category; 
   xhr_object.send(data); 
	}
