/*
	Permet d'ajouter un item au Panier
*/
function callUmanis(url)
{
  var dateUmanis = new Date();
  var myAjax = new Ajax.Request(url+'?time='+dateUmanis.getTime(),
    {
      method: 'post',
      asynchronous: true,
      parameters: {},
        onUninitialized: function (xhr)
          { // Création de l'objet XHR
           //alert('onUninitialized');
          },
        onLoading: function (xhr)
          { // Après appel méthode open
            //alert('onLoading');
          },
        onLoaded: function (xhr)
          { // Requête envoyée
            //alert('onLoaded');
          },
        onInteractive: function (xhr)
          { // Réponse en cours de réception
            //alert('onInteractive');
          },
        on200: function (xhr)
          { // Réponse HTTP "OK"
            //alert('on200');
          },
        onSuccess: function (xhr)
          { // Réponse HTTP == 2xx
            //alert('onSuccess');
          },
        on404: function (xhr)
          { // Réponse HTTP "OK"
            //alert('on404');
          },
        onFailure: function (xhr)
          { // Réponse HTTP != 2xx
            //alert('onFailure');
          },
        onException: function (xhr, exception)
          {
            alert(exception);
          },
        onComplete: function (xhr)
          { // Requête totalement terminée
            if (xhr.status == 200)
            {
				document.getElementById('contenu_monespace').innerHTML = xhr.responseText;
            } else {
              alert('status = ' + xhr.status);
            }
          }
    }
  )
}

