var timeoutID;
var timeoutID_vide_champ;

function edit_press_enter(e) {
    if (e.keyCode == 13)
      document.getElementById('form_log').submit();
}

function pass_oublie() {
     loading();
     timeoutID = setTimeout("pass_oublie_fct()",20);
}
function pass_oublie_fct() {
     clearTimeout(timeoutID);
     var res = ajax_(ch_en_cours+'ajax/ajax.php?fen='+fen+'&page_fct=fonction/log_fct.php&ch_en_cours_img='+ch_en_cours+'&fct=log_oublie');
     document.getElementById('result_log').innerHTML = res;
     fin_loading();
     //timeoutID_vide_champ = setTimeout("vide_champ('result_log')",5000);
}

function verif_login() {
     loading();
     timeoutID = setTimeout("verif_login_fct()",20);
}
function verif_login_fct() {
     clearTimeout(timeoutID);
     var login = document.getElementById('input_log_login').value;
     var res = ajax_(ch_en_cours+'ajax/ajax.php?fen='+fen+'&page_fct=fonction/log_fct.php&ch_en_cours_img='+ch_en_cours+'&fct=verif_login&param1='+login);
     document.getElementById('result_log').innerHTML = res;
     fin_loading();
}

function verif_email() {
     loading();
     timeoutID = setTimeout("verif_email_fct()",20);
}
function verif_email_fct() {
     clearTimeout(timeoutID);
     var email = document.getElementById('input_log_email').value;
     var res = ajax_(ch_en_cours+'ajax/ajax.php?fen='+fen+'&page_fct=fonction/log_fct.php&ch_en_cours_img='+ch_en_cours+'&fct=verif_email&param1='+email);
     document.getElementById('result_log').innerHTML = res;
     fin_loading();
}
