var black_to_green = new Array("00", "10", "20", "30", "40", "50", "60", "70", "80");

x = 0;

function bg_eff(id)
   {
   col_val = "#00" + black_to_green[x] + "00";
   document.getElementById(id).style.color=col_val;
   x++;
   if (x == 16)
      {
      clearInterval(change_bg);
      }
   }

function change_couleur(id){
   change_bg = setInterval("bg_eff('"+id+"')", 125);
}

function change_input_type(){
     var name = "password";
     var value = "";
     /* create new visible input */
     var html = '<input class="password" type="password" id="member_password" name="'+name+'" value="'+value+'" maxlength="40"/>';
     $(this).after(html).remove(); // add new, then remove original input
     $("#member_password").unbind('focus');
     $("#member_password").focus();
}

function checkFormulaire(form, errClass){
   
   if(validateCompleteForm(form, 'error')){
      form.submit();
   }

}

function checkReturnFormulaire(form, errClass){
   
   if(validateCompleteForm(form, 'error')){
      return true;
   }else{
      return false;
   }

}