// The AJAX function...

function AJAX(){
try{
xmlHttp=new XMLHttpRequest(); // Firefox, Opera 8.0+, Safari
return xmlHttp;
}
catch (e){
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer
return xmlHttp;
}
catch (e){
try{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
return xmlHttp;
}
catch (e){
alert("Your browser does not support AJAX.");
return false;
}
}
}
}

function fetch_unix_timestamp()
{
 return parseInt(new Date().getTime().toString().substring(0, 10))
}

////////////////////////////////

function divrt_commencours(){

// Customise those settings

var seconds = 5;
var divid = "divrt_commencours";
var url = "js/ajax_infos.php";

// Create xmlHttp

var xmlHttp_three = AJAX();

// No cache

var timestamp = fetch_unix_timestamp();
var nocacheurl = url+"?t="+timestamp;

// The code...

xmlHttp_three.onreadystatechange=function(){
if(xmlHttp_three.readyState==4){
document.getElementById(divid).innerHTML=xmlHttp_three.responseText;
setTimeout('divrt_commencours()',seconds*1000);
}
}
xmlHttp_three.open("GET",nocacheurl,true);
xmlHttp_three.send(null);
}

// Start the refreshing process

window.onload = function startrefresh(){
setTimeout('divrt_commencours()',seconds*1000);
}
//#######
//#######
//#######
function divrt_dest10(){

// Customise those settings

var seconds = 5;
var divid = "divrt_dest10";
var url = "js/ajax_dest10.php";

// Create xmlHttp

var xmlHttp_three = AJAX();

// No cache

var timestamp = fetch_unix_timestamp();
var nocacheurl = url+"?t="+timestamp;

// The code...

xmlHttp_three.onreadystatechange=function(){
if(xmlHttp_three.readyState==4){
document.getElementById(divid).innerHTML=xmlHttp_three.responseText;
setTimeout('divrt_dest10()',seconds*1000);
}
}
xmlHttp_three.open("GET",nocacheurl,true);
xmlHttp_three.send(null);
}

// Start the refreshing process

window.onload = function startrefresh(){
setTimeout('divrt_dest10()',seconds*1000);
}
//#######
//#######
//#######



function divrt_zabbix(){

// Customise those settings

var seconds = 5;
var divid = "divrt_zabbix";
var url = "js/ajax_zabbix.php";

// Create xmlHttp

var xmlHttp_two = AJAX();

// No cache

var timestamp = fetch_unix_timestamp();
var nocacheur2 = url+"?t="+timestamp;

// The code...

xmlHttp_two.onreadystatechange=function(){
if(xmlHttp_two.readyState==4){
document.getElementById(divid).innerHTML=xmlHttp_two.responseText;
setTimeout('divrt_zabbix()',seconds*1000);
}
}
xmlHttp_two.open("GET",nocacheur2,true);
xmlHttp_two.send(null);
}

// Start the refreshing process

window.onload = function startrefresh(){
setTimeout('divrt_zabbix()',seconds*1000);
}

//#######
//#######
//#######
function divrt_demofax(){

// Customise those settings

var seconds = 1;
var divid = "divrt_demofax";
var url = "js/ajax_demofax.php";

// Create xmlHttp

var xmlHttp_two = AJAX();

// No cache

var timestamp = fetch_unix_timestamp();
var nocacheur2 = url+"?t="+timestamp;

// The code...

xmlHttp_two.onreadystatechange=function(){
if(xmlHttp_two.readyState==4){
document.getElementById(divid).innerHTML=xmlHttp_two.responseText;
setTimeout('divrt_demofax()',seconds*1000);
}
}
xmlHttp_two.open("GET",nocacheur2,true);
xmlHttp_two.send(null);
}

// Start the refreshing process

window.onload = function startrefresh(){
setTimeout('divrt_zabbix()',seconds*1000);
}

//#######
//#######
//#######
function divrt_demosvi(){

// Customise those settings

var seconds = .5;
var divid = "divrt_demosvi";
var url = "js/ajax_demosvi.php";

// Create xmlHttp

var xmlHttp_two = AJAX();

// No cache

var timestamp = fetch_unix_timestamp();
var nocacheur2 = url+"?t="+timestamp;

// The code...

xmlHttp_two.onreadystatechange=function(){
if(xmlHttp_two.readyState==4){
document.getElementById(divid).innerHTML=xmlHttp_two.responseText;
setTimeout('divrt_demosvi()',seconds*1000);
}
}
xmlHttp_two.open("GET",nocacheur2,true);
xmlHttp_two.send(null);
}

// Start the refreshing process

window.onload = function startrefresh(){
setTimeout('divrt_demosvi()',seconds*1000);
}



