var complajaxInformante = Complajax.extend({
	initialize : function(nombre,varName) {
		this.setModuleName(varName);
		this.parent(nombre);
	},

	createCelda : function (nombre, valor) {
		var celda_li = document.createElement('option');
		celda_li.setAttribute('value', valor);
		celda_li.setAttribute('onclick', this.getModuleName() + '.mostrarCapa(false);');
		celda_li.appendChild(document.createTextNode(nombre));

		return celda_li;
	},
	
	doSearch : function (nombre) {
		this.printDebug('doSearchExtern');
		
		// Metemos el caracter, tanto si hacemos la petición como en el resto de los casos
		this._searchQueue.push(nombre);
		
		if (!this.isAjaxWorking) {
			// Url de trabajo
			url = "/publisher/backend/src/searchInformante.php?nombre=" + nombre;
			this.printDebug('url: ' + url);

			this.isAjaxWorking = true;

			this._Ajaxhttp = new Ajax(url, {method: 'get', onComplete: this.handleSearch}).request();

			return true;
		}

	}
});
