limit_start = 0;
limit_max = 12;
function pagination_generique(action,current_page,keyword,order,langue,page_php)
	{
	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", page_php, true); 
	 
   xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4) 
		 { document.getElementById('infos_pagination').innerHTML = xhr_object.responseText; }
   } 
 
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
   var data = "limit_start="+limit_start+"&limit_max="+limit_max+"&current_page="+current_page+"&keyword="+keyword+"&order="+order+"&langue="+langue+"&page_php="+page_php;
   xhr_object.send(data); 
	}
	
	
limit_start2 = 0;
limit_max2 = 5;
function pagination_generique2(action,current_page,keyword,order,langue,page_php)
	{
	if(isNaN(action))
		{
		if(action == 'previous')
			{ limit_start2 = limit_start2 - limit_max2; }
			
		if(action == 'next')
			{ limit_start2 = limit_start2 + limit_max2; }
		}
	else
		{ limit_start2 = 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", page_php, true); 
	 
   xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4) 
		 { document.getElementById('infos_pagination').innerHTML = xhr_object.responseText; }
		 //alert(xhr_object.responseText); 
   } 
 
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
   var data = "limit_start="+limit_start2+"&limit_max="+limit_max2+"&current_page="+current_page+"&keyword="+keyword+"&order="+order+"&langue="+langue+"&page_php="+page_php;
   xhr_object.send(data); 
	}
	
limit_start3 = 0;
limit_max3 = 8;
function pagination_generique3(action,current_page,keyword,order,langue,page_php)
	{
	if(isNaN(action))
		{
		if(action == 'previous')
			{ limit_start3 = limit_start3 - limit_max3; }
			
		if(action == 'next')
			{ limit_start3 = limit_start3 + limit_max3; }
		}
	else
		{ limit_start3 = 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", page_php, true); 
	 
   xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4) 
		 { document.getElementById('infos_pagination').innerHTML = xhr_object.responseText; }
		 //alert(xhr_object.responseText); 
   } 
 
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
   var data = "limit_start="+limit_start3+"&limit_max="+limit_max3+"&current_page="+current_page+"&keyword="+keyword+"&order="+order+"&langue="+langue+"&page_php="+page_php;
   xhr_object.send(data); 
	}
	
// pour la communaute	
limit_start_c2 = 0;
limit_max_c2 = 6;
function pagination_generique_c2(action,current_page,keyword,order,langue,page_php)
	{
	if(isNaN(action))
		{
		if(action == 'previous')
			{ limit_start_c2 = limit_start_c2 - limit_max_c2; }
			
		if(action == 'next')
			{ limit_start_c2 = limit_start_c2 + limit_max_c2; }
		}
	else
		{ limit_start_c2 = 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", page_php, true); 
	 
   xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4) 
		 { document.getElementById('infos_pagination_c2').innerHTML = xhr_object.responseText; }
		 //alert(xhr_object.responseText); 
   } 
 
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
   var data = "limit_start="+limit_start_c2+"&limit_max="+limit_max_c2+"&current_page="+current_page+"&keyword="+keyword+"&order="+order+"&langue="+langue+"&page_php="+page_php;
   xhr_object.send(data); 
	}	
	
	
limit_start_c1 = 0;
limit_max_c1 = 6;
function pagination_generique_c1(action,current_page,keyword,order,langue,page_php)
	{
	if(isNaN(action))
		{
		if(action == 'previous')
			{ limit_start_c1 = limit_start_c1 - limit_max_c1; }
			
		if(action == 'next')
			{ limit_start_c1 = limit_start_c1 + limit_max_c1; }
		}
	else
		{ limit_start_c1 = 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", page_php, true); 
	 
   xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4) 
		 { document.getElementById('infos_pagination').innerHTML = xhr_object.responseText; }
		 //alert(xhr_object.responseText); 
   } 
 
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
   var data = "limit_start="+limit_start_c1+"&limit_max="+limit_max_c1+"&current_page="+current_page+"&keyword="+keyword+"&order="+order+"&langue="+langue+"&page_php="+page_php;
   xhr_object.send(data); 
	}	
	
	
limit_start_a = 0;
limit_max_a = 2;
function pagination_gen(div_retour,action,current_page,keyword,order,langue,page_php)
	{
	if(isNaN(action))
		{
		if(action == 'previous')
			{ limit_start_a = limit_start_a - limit_max_a; }
			
		if(action == 'next')
			{ limit_start_a = limit_start_a + limit_max_a; }
		}
	else
		{ limit_start_a = 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", page_php, true); 
	 
   xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4) 
		 { document.getElementById(div_retour).innerHTML = xhr_object.responseText; }
		 //alert(xhr_object.responseText); 
   } 
 
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
   var data = "limit_start="+limit_start_a+"&limit_max="+limit_max_a+"&current_page="+current_page+"&keyword="+keyword+"&order="+order+"&langue="+langue+"&page_php="+page_php+"&div_retour="+div_retour;
   xhr_object.send(data); 
	}
	
// PAGINATION VRAIMENT GENERIQUE	
function pagination_vraiment_generique(limit_start,limit_max,div_retour,action,current_page,keyword,order,langue,page_php)
	{
	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", page_php, true); 
	 
   xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4) 
		 { document.getElementById(div_retour).innerHTML = xhr_object.responseText; }
		 //alert(xhr_object.responseText); 
   } 
 
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
   var data = "limit_start="+limit_start+"&limit_max="+limit_max+"&current_page="+current_page+"&keyword="+keyword+"&order="+order+"&langue="+langue+"&page_php="+page_php+"&div_retour="+div_retour;
   xhr_object.send(data); 
	}
//////////////////////////////////////////////////////////	

// RECETTES
	
limit_max = 12;	
function pagination_recette(action,current_page,keyword,keyword_type,tri,langue,tab_type_filter_js,tab_level_filter_js,page_php,post_concours,post_media)
	{
	// veuillez patienter
	document.getElementById('infos_recettes').innerHTML = "<p style='text-align:center;'><img src=../../art/ajax-loading.gif /></p>";
	
	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", page_php, true); 
	 
   xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4) 
		 { document.getElementById('infos_recettes').innerHTML = xhr_object.responseText; }
		 //alert(xhr_object.responseText); 
   } 
 
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
   var data = "limit_start="+limit_start+"&limit_max="+limit_max+"&current_page="+current_page+"&keyword="+keyword+"&keyword_type="+keyword_type+"&langue="+langue+"&tri="+tri+"&tab_type_filter_js="+tab_type_filter_js+"&tab_level_filter_js="+tab_level_filter_js+"&page_php="+page_php+"&post_concours="+post_concours+"&post_media="+post_media; 
   xhr_object.send(data); 
	}