/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function getXMLHttpRequest() {
    var xhr = null;

    if (window.XMLHttpRequest || window.ActiveXObject) {
            if (window.ActiveXObject) {
                    try {
                            xhr = new ActiveXObject("Msxml2.XMLHTTP");
                    } catch(e) {
                            xhr = new ActiveXObject("Microsoft.XMLHTTP");
                    }
            } else {
                    xhr = new XMLHttpRequest();
            }
    } else {
            alert("Votre navigateur ne supporte pas l'objet XMLHTTPRequest...");
            return null;
    }

    return xhr;
}

function verifFormatEmail(elm){
    if (elm.indexOf("@") != "-1" &&
        elm.indexOf(".") != "-1" &&
        elm != "")
        return true;

        return false;

}

function showid(idelem)
{
    if(document.getElementById(idelem).style.display=='none') document.getElementById(idelem).style.display='block';
    else document.getElementById(idelem).style.display='none';
}

function showPopup(lien){
window.open(lien, "ouverture", "toolbar=no, status=yes, scrollbars=yes, resizable=no, width=600, height=600");
}



