// JavaScript Document
function edificios(sel) { // ?
 	dojo.xhrGet( { // ?
	// The following URL must match that used to test the server.
	url: "edificios.php?seleccionado=" + sel + "", 
	handleAs: "text",

	timeout: 5000, // Time in milliseconds

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

	// The ERROR function will be called in an error case.
	error: function(response, ioArgs) { // ?
	  console.error("HTTP status code: ", ioArgs.xhr.status); // ?
	  return response; // ?
	  }
	});
  }
  // JavaScript Document
function torres(edificio) { // ?
 	dojo.xhrGet( { // ?
	// The following URL must match that used to test the server.
	url: "torres.php?idEdificio=" + edificio + "", 
	handleAs: "text",

	timeout: 5000, // Time in milliseconds

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

	// The ERROR function will be called in an error case.
	error: function(response, ioArgs) { // ?
	  console.error("HTTP status code: ", ioArgs.xhr.status); // ?
	  return response; // ?
	  }
	});
  }
  function oficinas(torre) { // ?
 	dojo.xhrGet( { // ?
	// The following URL must match that used to test the server.
	url: "oficinas.php?idTorre=" + torre + "", 
	handleAs: "text",

	timeout: 5000, // Time in milliseconds

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

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