<!--
//var url_ajax="http://sophienet.phpnet.org/task/";
var url_ajax="http://localhost/cerotik.com/";

function affichage(div,texte) { document.getElementById(div).innerHTML=texte; }

function file(fichier) {
    if(window.XMLHttpRequest) { xhr_object=new XMLHttpRequest(); } // FIREFOX
    else if(window.ActiveXObject) { xhr_object=new ActiveXObject("Microsoft.XMLHTTP"); } // IE
    else { return(false); }
    xhr_object.open("GET", fichier, false);
    xhr_object.send(null);
    if(xhr_object.readyState==4) { return(xhr_object.responseText); }
    else { return(false); }
}

function aff_div(a) {
   if(document.getElementById(a).style.display=="none") { document.getElementById(a).style.display="block"; }
   else { document.getElementById(a).style.display="none"; }
}

function form(id) {
    affichage('cache', file(url_ajax+'ajax.php?mode=form&id='+id));
    aff_div('cache');
}

function clignotement() {
    clign=document.getElementById('clignot');
    if(navigator.appName.indexOf("Explorer")>-1) {
        if(clign.style.color!='#FF0000') { clign.style.color='#FF0000'; }
        else { clign.style.color='#FFCC33'; }
    }
    else if(navigator.appName.indexOf("Netscape")>-1) {
        if(clign.style.color!='rgb(255, 204, 51)') { clign.style.color='rgb(255, 204, 51)'; }
        else { clign.style.color='rgb(255, 0, 0)'; }
    }
}
setInterval('clignotement();',500);
-->