   function readResponse() {
      if (http_request.readyState == 4) {
         if (http_request.status == 200) {
            result = http_request.responseText;
            var obj = document.getElementById(jsIdentifier);
            if(obj!=null)
                obj.value=result;
            alert("Modulo salvato");
         }
         else
            alert('Impossibile salvare il modulo.');

      }
   }

   function readResponseDelete() {
      if (http_request.readyState == 4) {
         if (http_request.status == 200) {
            result = http_request.responseText;
            var obj = document.getElementById(jsIdentifierPrefix + result);
            if(obj)
                obj.style.display="none";
            alert("Modulo Eliminato");
            document.location.reload();
         } else {
            alert('There was a problem with the request.');
         }
      }
   }

  function addModule(href)
  {
        additionalParams = (arguments.length == 1) ? "" : arguments[1];
        document.location.href= href + "?addNewModule=1" + additionalParams;
  }

  function close(href, id, type)
  {
        document.location.href= href + "?pkId=" + id + "&type=" + type;
  }        
