



 function AjaxPostAndPrintResInDiv(target, params, div)
    {
       var OAjax;
   
   if (window.XMLHttpRequest)
		{
 			OAjax = new XMLHttpRequest();



		} 
		else if (window.ActiveXObject) 
		{
			try {
				OAjax = new ActiveXObject("Msxml2.XMLHTTP");


			


			} catch (e)
			{
				try {
					OAjax = new ActiveXObject("Microsoft.XMLHTTP");




				} catch (e) {}
			}
        	}


      OAjax.onreadystatechange = function()
      {
         if (OAjax.readyState == 4 && OAjax.status==200)




               document.getElementById(div).innerHTML = OAjax.responseText;
      }
      OAjax.open("POST", target, true);
      OAjax.setRequestHeader('Content-type','application/x-www-form-urlencoded');
      OAjax.send(params);
	
   }
   


	


     function refresh_tps()  //script javascript qui va appeler le fonction afficher toutes les 5 secondes
     {
                        AjaxPostAndPrintResInDiv('live2.php', 'live', 'RubriqueLinkDiv');
                        setTimeout(refresh_tps, 3000);
      }
      
     
	


     function refresh_gain()  //script javascript qui va appeler le fonction afficher toutes les 5 secondes
     {
                        AjaxPostAndPrintResInDiv('affgain.php', 'gain', 'RubriqueLinkDivgain');
                        setTimeout(refresh_gain, 5000);
      }



     function refresh_coffre()  //script javascript qui va appeler le fonction afficher toutes les 5 secondes
     {
                        AjaxPostAndPrintResInDiv('affcoffre.php', 'coffre', 'RubriqueLinkDivcoffre');
                        setTimeout(refresh_coffre, 5000);
      }
