function wipCapaHttpAjaxSuccess (t, statusDiv) {

   }
   function wipCapaHttpAjaxError (t) {
     alert('Error ' + t.status + ' -- ' + t.statusText);
     //alert('you can\'t user this pseudo (ndr : test version).');
     //$(imgPseudo).src = '/champNonValide.gif';
   }

   function wipCapaHttpAjaxError404 (t) {
     alert('Error ' + t.status + ' -- ' + t.statusText);
     //alert('you can\'t user this pseudo (ndr : test version).');
     //$(imgPseudo).src = '/champNonValide.gif';
   }


  function wipCapa (htmlDiv, queryString) {
     new Effect.Fade(htmlDiv, { duration:0 });
     var myAction='wipCapaUpdate("' + htmlDiv + '", "' + queryString + '");';
     id = setTimeout(myAction,500);
   }


   function wipCapaUpdate (htmlDiv, queryString) {
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }

     new Ajax.Updater(htmlDiv, '/wip4/main.epl?' + queryString, {
							       onComplete:function(){
                                                                           new Effect.Appear(htmlDiv, {
												     duration:0
                                                                                                      }
                                                                                             );
									 },
                                                     asynchronous: true,
                                                     evalScripts: true,
                                                     method: 'get',
                                                     on404: wipCapaHttpAjaxError404,
                                                     onSuccess: wipCapaHttpAjaxSuccess,
                                                     onFailure: wipCapaHttpAjaxError
                                                    });
   }

   function wipCapaMenuUpdate (url,htmlDiv, queryString) {
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
     new Ajax.Updater(htmlDiv, url + '?' +  queryString, {
							       onComplete:function(){
                                                                           new Effect.Appear(htmlDiv, {
												     duration:0
                                                                                                      }
                                                                                             );
									 },
                                                     asynchronous: true,
                                                     evalScripts: true,
                                                     method: 'get',
                                                     on404: wipCapaHttpAjaxError404,
                                                     onSuccess: wipCapaHttpAjaxSuccess,
                                                     onFailure: wipCapaHttpAjaxError
                                                    });
   }




