function frenchLoginSubmit(e) {
  $("#french-login-form").ajaxSubmit({
    url: '/french/login',
    dataType: 'json',
    type: 'POST',
    success: function(response, status) {
      if (typeof(response) == 'string') {
        response = Drupal.parseJson(response);
      }
      if (response.status) {
        iYIM.frenchLogin.hide();
        $("#playerObject").css("visibility","visible");
        iYU.Cookie.remove("ushobject", {path: "/"});
        Drupal.refreshUsh();
      }
      else {
        if (response.msg) {
          alert(response.msg);
        }
        else {
          alert('Erreur de validation');
        }
      }
    },
    complete: function(response, status) {
      if (status == 'error' || status == 'parsererror') {
        alert('Erreur de validation');
      }
    }  
  });
}
