function getForwardImage(id,L,machineID) { // (2)
	 dojo.xhrGet( { // (3)
      // The following URL must match that used to test the server.
        method : "POST",
		url: "fileadmin/templates/ajax/ajax.php", 
        handleAs: "text",
		content : {
					// Die notwendigen Felder für das Domino Anmeldeformular übergeben
					todo : "getForwardImage", // Benutzername für den Domino Login
					L : L, // rwar
					id : id, // Kennwort für den Domino Login
					machineID : machineID,
					aktImg : document.images.aktImg.src
				},
        timeout: 5000, // Time in milliseconds
		// The LOAD function will be called on a successful response.
        load: function(response, ioArgs) { // (4)
          dojo.byId("gallery").innerHTML = response; // (5)
          return response; // (6)
        },

        // The ERROR function will be called in an error case.
        error: function(response, ioArgs) { // (4)
          console.error("HTTP status code: ", ioArgs.xhr.status); // (7)
          return response; // (6)
          }
        });
 }
 
 function getBackwardImage(id,L,machineID) { // (2)
	 dojo.xhrGet( { // (3)
      // The following URL must match that used to test the server.
        method : "POST",
		url: "fileadmin/templates/ajax/ajax.php", 
        handleAs: "text",
		content : {
					// Die notwendigen Felder für das Domino Anmeldeformular übergeben
					todo : "getBackwardImage", // Benutzername für den Domino Login
					id : id, // Kennwort für den Domino Login
					L : L,
					machineID : machineID,
					aktImg : document.images.aktImg.src
				},
        timeout: 5000, // Time in milliseconds

        // The LOAD function will be called on a successful response.
        load: function(response, ioArgs) { // (4)
          dojo.byId("gallery").innerHTML = response; // (5)
          return response; // (6)
        },

        // The ERROR function will be called in an error case.
        error: function(response, ioArgs) { // (4)
          console.error("HTTP status code: ", ioArgs.xhr.status); // (7)
          return response; // (6)
          }
        });
 }
 
 function getDirectImage(id,L,machineID,key) { // (2)
	 dojo.xhrGet( { // (3)
      // The following URL must match that used to test the server.
        method : "POST",
		url: "fileadmin/templates/ajax/ajax.php", 
        handleAs: "text",
		content : {
					// Die notwendigen Felder für das Domino Anmeldeformular übergeben
					todo : "getDirectImage", // Benutzername für den Domino Login
					id : id, // Kennwort für den Domino Login
					L : L,
					machineID : machineID,
					key : key
				},
        timeout: 5000, // Time in milliseconds

        // The LOAD function will be called on a successful response.
        load: function(response, ioArgs) { // (4)
          dojo.byId("gallery").innerHTML = response; // (5)
          return response; // (6)
        },

        // The ERROR function will be called in an error case.
        error: function(response, ioArgs) { // (4)
          console.error("HTTP status code: ", ioArgs.xhr.status); // (7)
          return response; // (6)
          }
        });
 }
