// inscription infolettre
function inscription_infolettre()
{
    // if ready to accept
    if (ready_to_accept())
    {
        // build the command string
        sCommand = '/ajax_commands/inscription_infolettre.php?email=' + document.getElementById('infolettre_adresse').value;
        
        // open XML feed
        xmlHttp.open('GET', sCommand);
        
        // when changes are occuring in status
        xmlHttp.onreadystatechange = function myFunction()
        {
            if (ready_to_process())
            {
                document.getElementById('infolettre_division').innerHTML = 'Inscription Effectuée avec succès';
            }
        }
        
        // send the xml feed
        xmlHttp.send(null);
    }
    // if not ready
    else
    {
        // attempt after 250ms
        setTimeout('inscription_infolettre()', 250);
    }
}
