Sujet : Problème fenêtre modale et notifications

/*
* Mootools Simple Modal
* Version 1.0
* Copyright (c) 2011 Marco Dell'Anna -
*/
window.addEvent("domready", function(e){
 /* Modal Ajax */
  $("modal-ajax").addEvent("click", function(e){
    e.stop();
    var SM = new SimpleModal({"btn_ok":"Confirm button", "width":600});
        // Aggiunge Bottone Conferma
        SM.addButton("Confirmer", "confirm-btn", function(){
                        // Check
                        if( $("confirm-text").get("value") != "DELETE" ){
                            $("confirm-delete-error").setStyle("display", "block");
                        }else{
                            // Your code ...
                            this.hide();
                        }
        });
        // Aggiunge Bottone annulla
        SM.addButton("Fermer", "btn");
        SM.show({
          "model":"modal-ajax",
          "title":"Connexion",
          "param":{
            "url":"connexion.php",
            "onRequestComplete": function(){ }
          }
        });
  })
 
   
});
 
window.addEvent("domready", function(e){
 /* Modal Ajax */
  $("modal-ajax-2").addEvent("click", function(e){
    e.stop();
    var SM = new SimpleModal2({"btn_ok":"Confirm button", "width":600});
        // Aggiunge Bottone Conferma
        SM.addButton("Confirmer", "confirm-btn", function(){
                        // Check
                        if( $("confirm-text").get("value") != "DELETE" ){
                            $("confirm-delete-error").setStyle("display", "block");
                        }else{
                            // Your code ...
                            this.hide();
                        }
        });
        // Aggiunge Bottone annulla
        SM.addButton("Fermer", "btn");
        SM.show({
          "model":"modal-ajax-2",
          "title":"Inscription",
          "param":{
            "url":"inscription.php",
            "onRequestComplete": function(){ }
          }
        });
  })
 
   
});