function recargaComunidades(seleccionado){
	  document.getElementById("comunidad").innerHTML.replace("selected=\"selected\"", "");
	  var idComunidad = 'comunidad' + seleccionado;
	  document.getElementById(idComunidad).selected = true;
	  
	  // Recargar las provincias segun la comunidad seleccionada
	  var path = location.pathname;

	  patron = /venta/
	  patron2 = /desarrollo/;
	  if (patron.test(path) || patron2.test(path)){
	    var ruta = "../../";
	  }
	  else{
	    var ruta = "./";
	  }

	  carga_provincias(ruta+"provincias/listar", 1);
	      
	  // Para que quede resaltada la Comunidad seleccionado con un "click"
	  /*var highlightColor= 'f39912';
	  var mapache = getMapFromId('MapaComunidadesId');
	  var oxml = mapache.getXML();

	  var modifiedXML = "";

	  if (oxml.indexOf('f39912')) {
	    modifiedXML = oxml.replace('f39912', 'a7b40a');
	  }	
	      
	  if (modifiedXML == "") {
	    modifiedXML = oxml.replace(new RegExp("(<entity)([\\s\\S]+?)(id\\s*\\=\\s*['\"]"+seleccionado+"['\"])([\\s\\S]+?)(color\\s*=\\s*['\"]a7b40a['\"])([\\s\\S]+?)(\\/>)","i"), "$1$2$3$4 color='"+highlightColor+"' $6 $7");
	  }
	  else {
	    modifiedXML = modifiedXML.replace(new RegExp("(<entity)([\\s\\S]+?)(id\\s*\\=\\s*['\"]"+seleccionado+"['\"])([\\s\\S]+?)(color\\s*=\\s*['\"]a7b40a['\"])([\\s\\S]+?)(\\/>)","i"), "$1$2$3$4 color='"+highlightColor+"' $6 $7");
	  }
				
	  mapache.setDataXML(modifiedXML);  */
	}
