
/*This javaScript file holds functions to handle Provinces/Municipios/Barrios */



//The declaration of the Arrays holding the JavaScript Objects Provincia/Municipio/Barrio and their IDs
  arrP  = new Array();
  arrM  = new Array();
  arrB  = new Array();


//*********  INICIO DE PONER LAS ASIGNACIONES DE LOS ARRAYS arrP/arrM/arrB
// *** OJO, copiar aqui lo que genere la ASP adm_create_js_records__prov_mun_barr.asp
//BEGIN_COPY

arrP[arrP.length]=new pR('1','Pinar del Río'); arrP[arrP.length]=new pR('2','Ciudad Habana'); arrP[arrP.length]=new pR('3','Prov. Habana'); arrP[arrP.length]=new pR('4','Matanzas'); arrP[arrP.length]=new pR('5','Cienfuegos'); arrP[arrP.length]=new pR('6','Villa Clara'); arrP[arrP.length]=new pR('7','Sancti Spíritus'); arrP[arrP.length]=new pR('8','Ciego de Ávila'); arrP[arrP.length]=new pR('9','Camagüey'); arrP[arrP.length]=new pR('10','Las Tunas'); arrP[arrP.length]=new pR('11','Holguín'); arrP[arrP.length]=new pR('12','Granma'); arrP[arrP.length]=new pR('13','Stgo. de Cuba'); arrP[arrP.length]=new pR('14','Guantánamo'); arrP[arrP.length]=new pR('15','Isla de la Juv.');
arrM[arrM.length]=new mR('1','34','Bahía Honda'); arrM[arrM.length]=new mR('1','92','Candelaria'); arrM[arrM.length]=new mR('1','93','Consolación del Sur'); arrM[arrM.length]=new mR('1','94','Guane'); arrM[arrM.length]=new mR('1','95','La Palma'); arrM[arrM.length]=new mR('1','96','Los Palacios'); arrM[arrM.length]=new mR('1','101','Mantua'); arrM[arrM.length]=new mR('1','102','Minas de Matahambre'); arrM[arrM.length]=new mR('1','103','Pinar del Río'); arrM[arrM.length]=new mR('1','104','San Cristóbal'); arrM[arrM.length]=new mR('1','105','San Juan y Martínez'); arrM[arrM.length]=new mR('1','106','San Luis'); arrM[arrM.length]=new mR('1','107','Sandino'); arrM[arrM.length]=new mR('1','108','Viñales'); arrM[arrM.length]=new mR('2','25','10 de Octubre'); arrM[arrM.length]=new mR('2','89','Arroyo Naranjo'); arrM[arrM.length]=new mR('2','88','Boyeros'); arrM[arrM.length]=new mR('2','83','Centro Habana'); arrM[arrM.length]=new mR('2','24','Cerro'); arrM[arrM.length]=new mR('2','90','Cotorro'); arrM[arrM.length]=new mR('2','86','Guanabacoa'); arrM[arrM.length]=new mR('2','81','Habana del Este'); arrM[arrM.length]=new mR('2','82','Habana Vieja'); arrM[arrM.length]=new mR('2','87','La Lisa'); arrM[arrM.length]=new mR('2','85','Marianao'); arrM[arrM.length]=new mR('2','91','Playa'); arrM[arrM.length]=new mR('2','80','Plaza de la Revolución'); arrM[arrM.length]=new mR('2','33','Regla'); arrM[arrM.length]=new mR('2','84','S.M. del Padrón'); arrM[arrM.length]=new mR('3','109','Alquízar'); arrM[arrM.length]=new mR('3','110','Artemisa'); arrM[arrM.length]=new mR('3','98','Batabanó'); arrM[arrM.length]=new mR('3','99','Bauta'); arrM[arrM.length]=new mR('3','111','Bejucal'); arrM[arrM.length]=new mR('3','35','Caimito'); arrM[arrM.length]=new mR('3','112','Guanajay'); arrM[arrM.length]=new mR('3','113','Güines'); arrM[arrM.length]=new mR('3','114','Güira de Melena'); arrM[arrM.length]=new mR('3','115','Jaruco'); arrM[arrM.length]=new mR('3','116','Madruga'); arrM[arrM.length]=new mR('3','117','Mariel'); arrM[arrM.length]=new mR('3','118','Melena del Sur'); arrM[arrM.length]=new mR('3','119','Nueva Paz'); arrM[arrM.length]=new mR('3','120','Quivicán'); arrM[arrM.length]=new mR('3','97','San Antonio de los Baños'); arrM[arrM.length]=new mR('3','121','San José de las Lajas'); arrM[arrM.length]=new mR('3','122','San Nicolás'); arrM[arrM.length]=new mR('3','123','Santa Cruz del Norte'); arrM[arrM.length]=new mR('4','124','Calimete'); arrM[arrM.length]=new mR('4','70','Cárdenas'); arrM[arrM.length]=new mR('4','125','Ciénaga de Zapata'); arrM[arrM.length]=new mR('4','126','Colón'); arrM[arrM.length]=new mR('4','127','Jagüey Grande'); arrM[arrM.length]=new mR('4','128','Jovellanos'); arrM[arrM.length]=new mR('4','129','Limonar'); arrM[arrM.length]=new mR('4','130','Los Arabos'); arrM[arrM.length]=new mR('4','131','Martí'); arrM[arrM.length]=new mR('4','132','Matanzas'); arrM[arrM.length]=new mR('4','133','Pedro Betancourt'); arrM[arrM.length]=new mR('4','134','Perico'); arrM[arrM.length]=new mR('4','135','Unión de Reyes'); arrM[arrM.length]=new mR('4','136','Varadero'); arrM[arrM.length]=new mR('5','137','Abreus'); arrM[arrM.length]=new mR('5','138','Aguada de Pasajeros'); arrM[arrM.length]=new mR('5','139','Cienfuegos'); arrM[arrM.length]=new mR('5','140','Cruces'); arrM[arrM.length]=new mR('5','141','Cumanayagua'); arrM[arrM.length]=new mR('5','142','Lajas'); arrM[arrM.length]=new mR('5','143','Palmira'); arrM[arrM.length]=new mR('5','144','Rodas'); arrM[arrM.length]=new mR('6','145','Caibarién'); arrM[arrM.length]=new mR('6','146','Camajuaní'); arrM[arrM.length]=new mR('6','147','Cifuentes'); arrM[arrM.length]=new mR('6','148','Corralillo'); arrM[arrM.length]=new mR('6','149','Encrucijada'); arrM[arrM.length]=new mR('6','150','Manicaragua'); arrM[arrM.length]=new mR('6','151','Placetas'); arrM[arrM.length]=new mR('6','152','Quemado de Güines'); arrM[arrM.length]=new mR('6','153','Ranchuelo'); arrM[arrM.length]=new mR('6','154','Remedios'); arrM[arrM.length]=new mR('6','155','Sagua la Grande'); arrM[arrM.length]=new mR('6','156','Santa Clara'); arrM[arrM.length]=new mR('6','157','Santo Domingo'); arrM[arrM.length]=new mR('7','158','Cabaiguán'); arrM[arrM.length]=new mR('7','159','Fomento'); arrM[arrM.length]=new mR('7','160','Jatibonico'); arrM[arrM.length]=new mR('7','161','La Sierpe'); arrM[arrM.length]=new mR('7','162','Sancti Spíritus'); arrM[arrM.length]=new mR('7','163','Taguasco'); arrM[arrM.length]=new mR('7','164','Trinidad'); arrM[arrM.length]=new mR('7','165','Yaguajay'); arrM[arrM.length]=new mR('8','166','Baraguá'); arrM[arrM.length]=new mR('8','167','Bolivia'); arrM[arrM.length]=new mR('8','168','Chambas'); arrM[arrM.length]=new mR('8','169','Ciego de Ávila'); arrM[arrM.length]=new mR('8','170','Ciro Redondo'); arrM[arrM.length]=new mR('8','171','Florencia'); arrM[arrM.length]=new mR('8','172','Majagua'); arrM[arrM.length]=new mR('8','173','Morón'); arrM[arrM.length]=new mR('8','174','Primero de Enero'); arrM[arrM.length]=new mR('8','175','Venezuela'); arrM[arrM.length]=new mR('9','176','Camagüey'); arrM[arrM.length]=new mR('9','177','Carlos Manuel de Céspedes'); arrM[arrM.length]=new mR('9','178','Esmeralda'); arrM[arrM.length]=new mR('9','179','Florida'); arrM[arrM.length]=new mR('9','180','Guáimaro'); arrM[arrM.length]=new mR('9','181','Jimaguayú'); arrM[arrM.length]=new mR('9','182','Minas'); arrM[arrM.length]=new mR('9','183','Najasa'); arrM[arrM.length]=new mR('9','184','Nuevitas'); arrM[arrM.length]=new mR('9','185','Santa Cruz del Sur'); arrM[arrM.length]=new mR('9','186','Sibanicú'); arrM[arrM.length]=new mR('9','187','Sierra de Cubitas'); arrM[arrM.length]=new mR('9','188','Vertientes'); arrM[arrM.length]=new mR('10','189','Amancio'); arrM[arrM.length]=new mR('10','190','Colombia'); arrM[arrM.length]=new mR('10','191','Jesús Menéndez'); arrM[arrM.length]=new mR('10','192','Jobabo'); arrM[arrM.length]=new mR('10','193','Las Tunas'); arrM[arrM.length]=new mR('10','194','Majibacoa'); arrM[arrM.length]=new mR('10','195','Manatí'); arrM[arrM.length]=new mR('10','196','Puerto Padre'); arrM[arrM.length]=new mR('11','197','Antilla'); arrM[arrM.length]=new mR('11','198','Báguanos'); arrM[arrM.length]=new mR('11','199','Banes'); arrM[arrM.length]=new mR('11','200','Cacocum'); arrM[arrM.length]=new mR('11','201','Calixto García'); arrM[arrM.length]=new mR('11','202','Cueto'); arrM[arrM.length]=new mR('11','203','Frank País'); arrM[arrM.length]=new mR('11','204','Gibara'); arrM[arrM.length]=new mR('11','205','Holguín'); arrM[arrM.length]=new mR('11','206','Mayarí'); arrM[arrM.length]=new mR('11','207','Moa'); arrM[arrM.length]=new mR('11','208','Rafael Freyre'); arrM[arrM.length]=new mR('11','209','Sagua de Tánamo'); arrM[arrM.length]=new mR('11','210','Urbano Noris'); arrM[arrM.length]=new mR('12','211','Bartolomé Masó'); arrM[arrM.length]=new mR('12','212','Bayamo'); arrM[arrM.length]=new mR('12','213','Buey Arriba'); arrM[arrM.length]=new mR('12','214','Campechuela'); arrM[arrM.length]=new mR('12','215','Cauto Cristo'); arrM[arrM.length]=new mR('12','216','Guisa'); arrM[arrM.length]=new mR('12','217','Jiguaní'); arrM[arrM.length]=new mR('12','218','Manzanillo'); arrM[arrM.length]=new mR('12','219','Media Luna'); arrM[arrM.length]=new mR('12','220','Niquero'); arrM[arrM.length]=new mR('12','221','Pilón'); arrM[arrM.length]=new mR('12','222','Río Cauto'); arrM[arrM.length]=new mR('12','223','Yara'); arrM[arrM.length]=new mR('13','224','Contramaestre'); arrM[arrM.length]=new mR('13','225','Guamá'); arrM[arrM.length]=new mR('13','226','Mella'); arrM[arrM.length]=new mR('13','227','Palma Soriano'); arrM[arrM.length]=new mR('13','228','San Luis'); arrM[arrM.length]=new mR('13','230','Segundo Frente'); arrM[arrM.length]=new mR('13','231','Songo-La Maya'); arrM[arrM.length]=new mR('13','229','Stgo. de Cuba'); arrM[arrM.length]=new mR('13','232','Tercer Frente'); arrM[arrM.length]=new mR('14','233','Baracoa'); arrM[arrM.length]=new mR('14','234','Caimanera'); arrM[arrM.length]=new mR('14','235','El Salvador'); arrM[arrM.length]=new mR('14','236','Guantánamo'); arrM[arrM.length]=new mR('14','237','Imías'); arrM[arrM.length]=new mR('14','238','Maisí'); arrM[arrM.length]=new mR('14','239','Manuel Tames'); arrM[arrM.length]=new mR('14','240','Niceto Pérez'); arrM[arrM.length]=new mR('14','241','San Antonio del Sur'); arrM[arrM.length]=new mR('14','242','Yateras'); arrM[arrM.length]=new mR('15','243','Isla de la Juventud');
arrB[arrB.length]=new bR('24','307','Antonio Maceo'); arrB[arrB.length]=new bR('24','301','Atarés'); arrB[arrB.length]=new bR('24','302','Ayestarán'); arrB[arrB.length]=new bR('24','297','Canal'); arrB[arrB.length]=new bR('24','308','Casino Deportivo'); arrB[arrB.length]=new bR('24','299','Cerro'); arrB[arrB.length]=new bR('24','304','El Pilar'); arrB[arrB.length]=new bR('24','303','Jesús del Monte'); arrB[arrB.length]=new bR('24','298','Las Cañas'); arrB[arrB.length]=new bR('24','309','Martí'); arrB[arrB.length]=new bR('24','300','Palatino'); arrB[arrB.length]=new bR('24','305','Príncipe'); arrB[arrB.length]=new bR('24','310','Santa Catalina'); arrB[arrB.length]=new bR('24','306','Villa Nueva'); arrB[arrB.length]=new bR('25','295','Atarés'); arrB[arrB.length]=new bR('25','296','Canteras de San Miguel'); arrB[arrB.length]=new bR('25','286','El Rubio'); arrB[arrB.length]=new bR('25','290','Jesús del monte'); arrB[arrB.length]=new bR('25','288','La Asunción'); arrB[arrB.length]=new bR('25','289','La Bien Aparecida'); arrB[arrB.length]=new bR('25','281','La Floresta'); arrB[arrB.length]=new bR('25','294','Las 20 casitas'); arrB[arrB.length]=new bR('25','14','Lawton'); arrB[arrB.length]=new bR('25','282','Loma del Chaple'); arrB[arrB.length]=new bR('25','12','Luyanó'); arrB[arrB.length]=new bR('25','283','Mendosa'); arrB[arrB.length]=new bR('25','291','Mirador de Lawton'); arrB[arrB.length]=new bR('25','284','Naranjito'); arrB[arrB.length]=new bR('25','285','Rivero'); arrB[arrB.length]=new bR('25','292','Santa Inés'); arrB[arrB.length]=new bR('25','11','Santos Suárez'); arrB[arrB.length]=new bR('25','287','Sevillano'); arrB[arrB.length]=new bR('25','13','Víbora'); arrB[arrB.length]=new bR('25','293','Vista Alegre'); arrB[arrB.length]=new bR('33','110','Braulio Coroneaux'); arrB[arrB.length]=new bR('33','111','Casablanca'); arrB[arrB.length]=new bR('33','112','Cinco de Belot'); arrB[arrB.length]=new bR('33','101','Colinas de Belot'); arrB[arrB.length]=new bR('33','113','Comunidad Dos'); arrB[arrB.length]=new bR('33','103','Habana Nueva'); arrB[arrB.length]=new bR('33','114','Ingenito'); arrB[arrB.length]=new bR('33','102','La Colonia (Pedro Lantigua)'); arrB[arrB.length]=new bR('33','115','La Julia'); arrB[arrB.length]=new bR('33','104','Lídice'); arrB[arrB.length]=new bR('33','105','Manuel Ascunce'); arrB[arrB.length]=new bR('33','106','Modelo'); arrB[arrB.length]=new bR('33','107','Parcelación Rotaria'); arrB[arrB.length]=new bR('33','108','Regla'); arrB[arrB.length]=new bR('33','116','San Nicolás'); arrB[arrB.length]=new bR('33','117','Tiscornia'); arrB[arrB.length]=new bR('33','109','Unión'); arrB[arrB.length]=new bR('80','61','Aldecoa'); arrB[arrB.length]=new bR('80','62','Ayestarán'); arrB[arrB.length]=new bR('80','64','Hidalgo'); arrB[arrB.length]=new bR('80','63','La Dionisia'); arrB[arrB.length]=new bR('80','65','Nuevo Vedado'); arrB[arrB.length]=new bR('80','32','Plaza de la Rev.'); arrB[arrB.length]=new bR('80','59','Príncipe'); arrB[arrB.length]=new bR('80','66','Puentes Grandes'); arrB[arrB.length]=new bR('80','60','Vedado'); arrB[arrB.length]=new bR('81','141','Agromar'); arrB[arrB.length]=new bR('81','142','Alt. de Boca Ciega'); arrB[arrB.length]=new bR('81','131','Alt. de Celimar'); arrB[arrB.length]=new bR('81','137','Antonio Guiteras'); arrB[arrB.length]=new bR('81','144','Bello Monte'); arrB[arrB.length]=new bR('81','145','Boca Ciega'); arrB[arrB.length]=new bR('81','154','Brisas del Mar'); arrB[arrB.length]=new bR('81','118','Camilo Cienfuegos'); arrB[arrB.length]=new bR('81','157','Campo Florido'); arrB[arrB.length]=new bR('81','132','Celimar'); arrB[arrB.length]=new bR('81','149','Cojímar'); arrB[arrB.length]=new bR('81','146','Guanabo'); arrB[arrB.length]=new bR('81','120','La Habana del Este'); arrB[arrB.length]=new bR('81','156','La Veneciana'); arrB[arrB.length]=new bR('81','143','Marbella'); arrB[arrB.length]=new bR('81','150','Mégano'); arrB[arrB.length]=new bR('81','130','Micro X Alamar'); arrB[arrB.length]=new bR('81','147','Mirador de Marbella'); arrB[arrB.length]=new bR('81','155','Peñas Altas'); arrB[arrB.length]=new bR('81','586','Repto. de los Rusos Alamar'); arrB[arrB.length]=new bR('81','140','Resid. Via Tunel'); arrB[arrB.length]=new bR('81','152','Santa Maria del Mar'); arrB[arrB.length]=new bR('81','151','Santa Maria Loma'); arrB[arrB.length]=new bR('81','148','Sibarimar'); arrB[arrB.length]=new bR('81','153','Tarará'); arrB[arrB.length]=new bR('81','540','Villa Panamericana'); arrB[arrB.length]=new bR('81','121','Zona 1 Alamar'); arrB[arrB.length]=new bR('81','122','Zona 2 Alamar'); arrB[arrB.length]=new bR('81','123','Zona 3 Alamar'); arrB[arrB.length]=new bR('81','124','Zona 4 Alamar'); arrB[arrB.length]=new bR('81','125','Zona 5 Alamar'); arrB[arrB.length]=new bR('81','126','Zona 6 Alamar'); arrB[arrB.length]=new bR('81','127','Zona 7 Alamar'); arrB[arrB.length]=new bR('81','128','Zona 8 Alamar'); arrB[arrB.length]=new bR('81','129','Zona 9 Alamar'); arrB[arrB.length]=new bR('81','566','Zona 10 Alamar'); arrB[arrB.length]=new bR('81','567','Zona 11 Alamar'); arrB[arrB.length]=new bR('81','568','Zona 12 Alamar'); arrB[arrB.length]=new bR('81','569','Zona 13 Alamar'); arrB[arrB.length]=new bR('81','570','Zona 14 Alamar'); arrB[arrB.length]=new bR('81','571','Zona 15 Alamar'); arrB[arrB.length]=new bR('81','572','Zona 16 Alamar'); arrB[arrB.length]=new bR('81','573','Zona 17 Alamar'); arrB[arrB.length]=new bR('81','574','Zona 18 Alamar'); arrB[arrB.length]=new bR('81','575','Zona 19 Alamar'); arrB[arrB.length]=new bR('81','576','Zona 20 Alamar'); arrB[arrB.length]=new bR('81','577','Zona 21 Alamar'); arrB[arrB.length]=new bR('81','582','Zona 22 Alamar'); arrB[arrB.length]=new bR('81','583','Zona 23 Alamar'); arrB[arrB.length]=new bR('81','584','Zona 24 Alamar'); arrB[arrB.length]=new bR('81','585','Zona 25 Alamar'); arrB[arrB.length]=new bR('82','90','Arsenal'); arrB[arrB.length]=new bR('82','89','Atarés'); arrB[arrB.length]=new bR('82','91','Ceiba'); arrB[arrB.length]=new bR('82','93','Chávez'); arrB[arrB.length]=new bR('82','92','Colón'); arrB[arrB.length]=new bR('82','95','El Pilar'); arrB[arrB.length]=new bR('82','94','Jesus María'); arrB[arrB.length]=new bR('82','96','La Punta'); arrB[arrB.length]=new bR('82','79','Paula'); arrB[arrB.length]=new bR('82','80','San Felipe'); arrB[arrB.length]=new bR('82','81','San Francisco'); arrB[arrB.length]=new bR('82','82','San Isidro'); arrB[arrB.length]=new bR('82','83','San Juan de Dios'); arrB[arrB.length]=new bR('82','97','San Nicolás'); arrB[arrB.length]=new bR('82','84','Santa Clara'); arrB[arrB.length]=new bR('82','85','Santa Teresa'); arrB[arrB.length]=new bR('82','86','Santo Angel'); arrB[arrB.length]=new bR('82','87','Santo Cristo'); arrB[arrB.length]=new bR('82','98','Tacón'); arrB[arrB.length]=new bR('82','88','Templete'); arrB[arrB.length]=new bR('82','99','Vives'); arrB[arrB.length]=new bR('83','67','Cayo Hueso'); arrB[arrB.length]=new bR('83','71','Colón'); arrB[arrB.length]=new bR('83','72','Dragones'); arrB[arrB.length]=new bR('83','68','El Pilar'); arrB[arrB.length]=new bR('83','73','Guadalupe'); arrB[arrB.length]=new bR('83','75','La Punta'); arrB[arrB.length]=new bR('83','76','Los Sitios'); arrB[arrB.length]=new bR('83','74','Monserrate'); arrB[arrB.length]=new bR('83','69','Pueblo Nuevo'); arrB[arrB.length]=new bR('83','70','San Lázaro'); arrB[arrB.length]=new bR('83','77','San Leopoldo'); arrB[arrB.length]=new bR('83','78','Tacón'); arrB[arrB.length]=new bR('84','266','Alt. de Luyanó'); arrB[arrB.length]=new bR('84','232','Alt. de San Francisco'); arrB[arrB.length]=new bR('84','267','Alt. de San Miguel'); arrB[arrB.length]=new bR('84','248','Alt. del Diezmero'); arrB[arrB.length]=new bR('84','250','Alt. del Lucero'); arrB[arrB.length]=new bR('84','249','Alt. Mirador del Diezmero'); arrB[arrB.length]=new bR('84','268','Ampl. de Luyanó'); arrB[arrB.length]=new bR('84','251','Ampl. de San Matías'); arrB[arrB.length]=new bR('84','216','Barrio Obrero'); arrB[arrB.length]=new bR('84','233','Bellavista'); arrB[arrB.length]=new bR('84','218','Buenos Aires'); arrB[arrB.length]=new bR('84','219','California (Luis Carbó)'); arrB[arrB.length]=new bR('84','234','Cambute'); arrB[arrB.length]=new bR('84','220','Carolina'); arrB[arrB.length]=new bR('84','221','Central'); arrB[arrB.length]=new bR('84','269','Ciudamar'); arrB[arrB.length]=new bR('84','253','Delicias del Diezmero'); arrB[arrB.length]=new bR('84','254','Diezmero'); arrB[arrB.length]=new bR('84','255','Dolores'); arrB[arrB.length]=new bR('84','265','El Afán'); arrB[arrB.length]=new bR('84','237','El Encanto'); arrB[arrB.length]=new bR('84','257','El Lucero'); arrB[arrB.length]=new bR('84','231','El Ziche'); arrB[arrB.length]=new bR('84','236','Emilio Mola'); arrB[arrB.length]=new bR('84','224','Guardiola'); arrB[arrB.length]=new bR('84','225','Jacomino'); arrB[arrB.length]=new bR('84','226','Juanelo'); arrB[arrB.length]=new bR('84','217','La Bien Aparecida'); arrB[arrB.length]=new bR('84','252','La Cumbre'); arrB[arrB.length]=new bR('84','222','La Fernanda'); arrB[arrB.length]=new bR('84','256','La Flora'); arrB[arrB.length]=new bR('84','223','La Florida'); arrB[arrB.length]=new bR('84','238','La Lolita'); arrB[arrB.length]=new bR('84','230','La Rosalía'); arrB[arrB.length]=new bR('84','243','La Rosita'); arrB[arrB.length]=new bR('84','270','Las Granjas'); arrB[arrB.length]=new bR('84','239','Las Merceditas'); arrB[arrB.length]=new bR('84','276','Las Palmas'); arrB[arrB.length]=new bR('84','240','Las Piedras'); arrB[arrB.length]=new bR('84','263','Las Tejas'); arrB[arrB.length]=new bR('84','215','Los Angeles'); arrB[arrB.length]=new bR('84','235','Los Corojos'); arrB[arrB.length]=new bR('84','271','Luyanó Moderno'); arrB[arrB.length]=new bR('84','258','María Cristina'); arrB[arrB.length]=new bR('84','259','María Luisa'); arrB[arrB.length]=new bR('84','272','Maria Santísima'); arrB[arrB.length]=new bR('84','227','Martín Pérez'); arrB[arrB.length]=new bR('84','260','Mirador del Diezmero'); arrB[arrB.length]=new bR('84','273','Mirtha'); arrB[arrB.length]=new bR('84','274','Monterrey'); arrB[arrB.length]=new bR('84','275','Núñez'); arrB[arrB.length]=new bR('84','228','Otero'); arrB[arrB.length]=new bR('84','241','Prosperidad'); arrB[arrB.length]=new bR('84','242','Reboredo'); arrB[arrB.length]=new bR('84','277','Residencial Miguel'); arrB[arrB.length]=new bR('84','229','Rocafort'); arrB[arrB.length]=new bR('84','244','San Francisco de Paula'); arrB[arrB.length]=new bR('84','278','San Juan de Los Pinos'); arrB[arrB.length]=new bR('84','261','San Martín'); arrB[arrB.length]=new bR('84','262','San Matías'); arrB[arrB.length]=new bR('84','245','Siboney'); arrB[arrB.length]=new bR('84','279','Tamarindo'); arrB[arrB.length]=new bR('84','264','Veracruz'); arrB[arrB.length]=new bR('84','246','Villa Rosa'); arrB[arrB.length]=new bR('84','247','Vista Alegre'); arrB[arrB.length]=new bR('84','280','Vista Hermosa'); arrB[arrB.length]=new bR('85','327','Altura de Columbia'); arrB[arrB.length]=new bR('85','329','Altura de La Salle'); arrB[arrB.length]=new bR('85','328','Altura Luisa Quijano'); arrB[arrB.length]=new bR('85','311','Alturas de Belén'); arrB[arrB.length]=new bR('85','312','Bagatelle'); arrB[arrB.length]=new bR('85','331','Brisas de Marianao'); arrB[arrB.length]=new bR('85','313','Buen retiro'); arrB[arrB.length]=new bR('85','342','Central Martínez Prieto'); arrB[arrB.length]=new bR('85','314','Ciudad Libertad'); arrB[arrB.length]=new bR('85','333','Cocosolo'); arrB[arrB.length]=new bR('85','315','Curazao'); arrB[arrB.length]=new bR('85','336','El Palmar'); arrB[arrB.length]=new bR('85','316','Finlay'); arrB[arrB.length]=new bR('85','318','Jesús María'); arrB[arrB.length]=new bR('85','332','La Clarisa'); arrB[arrB.length]=new bR('85','334','La Conchita'); arrB[arrB.length]=new bR('85','323','La Paz'); arrB[arrB.length]=new bR('85','319','Larrazabal'); arrB[arrB.length]=new bR('85','320','Libertad'); arrB[arrB.length]=new bR('85','321','Loma de Llave'); arrB[arrB.length]=new bR('85','330','Los Angeles'); arrB[arrB.length]=new bR('85','317','Los Hornos'); arrB[arrB.length]=new bR('85','338','Los Pocitos'); arrB[arrB.length]=new bR('85','325','Los quemados'); arrB[arrB.length]=new bR('85','335','Machín'); arrB[arrB.length]=new bR('85','322','Oriental Park'); arrB[arrB.length]=new bR('85','337','Padre Zamora'); arrB[arrB.length]=new bR('85','324','Pogolotti'); arrB[arrB.length]=new bR('85','339','Rivero'); arrB[arrB.length]=new bR('85','340','Sanguily'); arrB[arrB.length]=new bR('85','326','Santa Felicia'); arrB[arrB.length]=new bR('85','341','Vista Hermosa'); arrB[arrB.length]=new bR('86','159','Alt. de Via Blanca'); arrB[arrB.length]=new bR('86','175','Alt. de Villa María'); arrB[arrB.length]=new bR('86','158','Alt. del Mañana'); arrB[arrB.length]=new bR('86','212','Arango'); arrB[arrB.length]=new bR('86','213','Aranguito'); arrB[arrB.length]=new bR('86','198','Bacuranao'); arrB[arrB.length]=new bR('86','193','Barreras'); arrB[arrB.length]=new bR('86','161','Bellavista'); arrB[arrB.length]=new bR('86','201','Berroa'); arrB[arrB.length]=new bR('86','176','Castilla'); arrB[arrB.length]=new bR('86','163','Chibás'); arrB[arrB.length]=new bR('86','162','Corralito'); arrB[arrB.length]=new bR('86','204','Cruz de Piedra'); arrB[arrB.length]=new bR('86','164','D´Beche'); arrB[arrB.length]=new bR('86','209','El Repollo'); arrB[arrB.length]=new bR('86','187','El Roble'); arrB[arrB.length]=new bR('86','211','El Sauce'); arrB[arrB.length]=new bR('86','178','Federal'); arrB[arrB.length]=new bR('86','179','Fuente Blanca'); arrB[arrB.length]=new bR('86','165','Garrido'); arrB[arrB.length]=new bR('86','166','Guanabacoa'); arrB[arrB.length]=new bR('86','167','Habana Nueva'); arrB[arrB.length]=new bR('86','195','L. del Ferrocarril'); arrB[arrB.length]=new bR('86','160','La Azotea'); arrB[arrB.length]=new bR('86','202','La Caridad'); arrB[arrB.length]=new bR('86','203','La Ceiba'); arrB[arrB.length]=new bR('86','177','La Escala'); arrB[arrB.length]=new bR('86','194','La Gallega'); arrB[arrB.length]=new bR('86','180','La Jata'); arrB[arrB.length]=new bR('86','181','La Lima'); arrB[arrB.length]=new bR('86','196','La Pelá'); arrB[arrB.length]=new bR('86','214','La Sepultura'); arrB[arrB.length]=new bR('86','199','La Vega'); arrB[arrB.length]=new bR('86','206','Las Palmas'); arrB[arrB.length]=new bR('86','205','Los Mangos'); arrB[arrB.length]=new bR('86','169','Mambí'); arrB[arrB.length]=new bR('86','168','Mañana'); arrB[arrB.length]=new bR('86','182','Mi Gloria'); arrB[arrB.length]=new bR('86','200','Minas'); arrB[arrB.length]=new bR('86','170','Mirador del Puerto'); arrB[arrB.length]=new bR('86','183','Nalón'); arrB[arrB.length]=new bR('86','184','Naranjo'); arrB[arrB.length]=new bR('86','207','Peñalver'); arrB[arrB.length]=new bR('86','208','Planta de Asfalto'); arrB[arrB.length]=new bR('86','185','Pomo de Oro'); arrB[arrB.length]=new bR('86','186','Ricabal'); arrB[arrB.length]=new bR('86','210','Santa Fe'); arrB[arrB.length]=new bR('86','171','Unión'); arrB[arrB.length]=new bR('86','172','Valero'); arrB[arrB.length]=new bR('86','197','Valle Alegre'); arrB[arrB.length]=new bR('86','173','Via Blanca'); arrB[arrB.length]=new bR('86','188','Villa Elena'); arrB[arrB.length]=new bR('86','189','Villa Haydée'); arrB[arrB.length]=new bR('86','190','Villa María'); arrB[arrB.length]=new bR('86','191','Villa Nomar'); arrB[arrB.length]=new bR('86','192','Villa Oliva'); arrB[arrB.length]=new bR('86','174','Vista Alegre'); arrB[arrB.length]=new bR('87','395','Alt. de La Coronela'); arrB[arrB.length]=new bR('87','381','Alt. de La Lisa'); arrB[arrB.length]=new bR('87','343','Ampl. de Arroyo Arenas'); arrB[arrB.length]=new bR('87','382','Ampl. de Versalles'); arrB[arrB.length]=new bR('87','344','Anita'); arrB[arrB.length]=new bR('87','383','Arimao'); arrB[arrB.length]=new bR('87','345','Arroyo Arenas'); arrB[arrB.length]=new bR('87','347','Autop. del Mediodía'); arrB[arrB.length]=new bR('87','384','Balcón de La Lisa'); arrB[arrB.length]=new bR('87','348','Barbosa'); arrB[arrB.length]=new bR('87','396','Bello 26'); arrB[arrB.length]=new bR('87','374','Calle Veinte'); arrB[arrB.length]=new bR('87','375','Club Campestre'); arrB[arrB.length]=new bR('87','351','Cruz de Piedra'); arrB[arrB.length]=new bR('87','352','Cuatro Caminos de Falcón'); arrB[arrB.length]=new bR('87','353','Cuba Tabaco'); arrB[arrB.length]=new bR('87','354','Dulce Nombre'); arrB[arrB.length]=new bR('87','346','El Atrevido'); arrB[arrB.length]=new bR('87','372','El Cano'); arrB[arrB.length]=new bR('87','355','El Dorado'); arrB[arrB.length]=new bR('87','356','El Francés'); arrB[arrB.length]=new bR('87','387','El Hueco'); arrB[arrB.length]=new bR('87','359','El Mayor'); arrB[arrB.length]=new bR('87','400','El Morado'); arrB[arrB.length]=new bR('87','391','El Palenque'); arrB[arrB.length]=new bR('87','361','El Piche'); arrB[arrB.length]=new bR('87','377','Guatao'); arrB[arrB.length]=new bR('87','357','Herrera Sotolongo'); arrB[arrB.length]=new bR('87','358','Juan de Dios Fraga'); arrB[arrB.length]=new bR('87','397','L. de Ferrocarril'); arrB[arrB.length]=new bR('87','350','La Concepción'); arrB[arrB.length]=new bR('87','386','La Coronela'); arrB[arrB.length]=new bR('87','376','La Cuca'); arrB[arrB.length]=new bR('87','385','La Ermita'); arrB[arrB.length]=new bR('87','388','La Lisa'); arrB[arrB.length]=new bR('87','389','La Magdalena'); arrB[arrB.length]=new bR('87','371','La Viviana'); arrB[arrB.length]=new bR('87','349','Los Cocos'); arrB[arrB.length]=new bR('87','362','Los Pinos'); arrB[arrB.length]=new bR('87','365','Los Rusos'); arrB[arrB.length]=new bR('87','360','Mordazo'); arrB[arrB.length]=new bR('87','390','Novoa'); arrB[arrB.length]=new bR('87','378','Nuevo Amanecer'); arrB[arrB.length]=new bR('87','379','Punta Brava'); arrB[arrB.length]=new bR('87','380','René Cabrera'); arrB[arrB.length]=new bR('87','363','Resid. Montecarlos'); arrB[arrB.length]=new bR('87','364','Resurrección'); arrB[arrB.length]=new bR('87','398','San Agustín'); arrB[arrB.length]=new bR('87','392','San Rafael'); arrB[arrB.length]=new bR('87','393','Santa Elena'); arrB[arrB.length]=new bR('87','366','Santa Rita'); arrB[arrB.length]=new bR('87','367','Tamayo'); arrB[arrB.length]=new bR('87','368','Titico'); arrB[arrB.length]=new bR('87','399','Valle Grande'); arrB[arrB.length]=new bR('87','369','Vegas'); arrB[arrB.length]=new bR('87','394','Versalles'); arrB[arrB.length]=new bR('87','370','Villapol'); arrB[arrB.length]=new bR('87','373','XX Aniv. Granma'); arrB[arrB.length]=new bR('88','429','Abel Santamaría'); arrB[arrB.length]=new bR('88','401','Aldabó'); arrB[arrB.length]=new bR('88','402','Altahabana'); arrB[arrB.length]=new bR('88','403','Altura de Embil'); arrB[arrB.length]=new bR('88','404','Arday'); arrB[arrB.length]=new bR('88','406','C. de la Construcción'); arrB[arrB.length]=new bR('88','542','Calabazar'); arrB[arrB.length]=new bR('88','422','Capdevila'); arrB[arrB.length]=new bR('88','405','Ciro Redondo'); arrB[arrB.length]=new bR('88','414','Cuervo'); arrB[arrB.length]=new bR('88','421','El Trigal'); arrB[arrB.length]=new bR('88','407','Embil'); arrB[arrB.length]=new bR('88','432','Fontanar'); arrB[arrB.length]=new bR('88','415','García'); arrB[arrB.length]=new bR('88','425','General Peraza'); arrB[arrB.length]=new bR('88','416','Gran Boulevard'); arrB[arrB.length]=new bR('88','417','Guayabal'); arrB[arrB.length]=new bR('88','418','José A. Saco'); arrB[arrB.length]=new bR('88','408','La Fortuna'); arrB[arrB.length]=new bR('88','411','Los Pinos'); arrB[arrB.length]=new bR('88','560','Lugardita'); arrB[arrB.length]=new bR('88','423','María del Carmen'); arrB[arrB.length]=new bR('88','428','Mazorra'); arrB[arrB.length]=new bR('88','409','Miraflores'); arrB[arrB.length]=new bR('88','431','Mulgoba'); arrB[arrB.length]=new bR('88','410','Nuevo Miraflores'); arrB[arrB.length]=new bR('88','419','Parajón'); arrB[arrB.length]=new bR('88','412','Puente Nuevo'); arrB[arrB.length]=new bR('88','413','Resid. Almendares'); arrB[arrB.length]=new bR('88','427','Rincón'); arrB[arrB.length]=new bR('88','424','Río Cristal'); arrB[arrB.length]=new bR('88','559','Río Verde'); arrB[arrB.length]=new bR('88','430','Sierra Maestra'); arrB[arrB.length]=new bR('88','426','Stgo. de Las Vegas'); arrB[arrB.length]=new bR('88','420','Trébol'); arrB[arrB.length]=new bR('88','433','Wajay'); arrB[arrB.length]=new bR('89','488','Adelaida'); arrB[arrB.length]=new bR('89','462','Alkázar'); arrB[arrB.length]=new bR('89','453','Altura de La Víbora'); arrB[arrB.length]=new bR('89','463','Altura del Rosario'); arrB[arrB.length]=new bR('89','454','Alturas del Sevillano'); arrB[arrB.length]=new bR('89','455','Ampl. del Sevillano'); arrB[arrB.length]=new bR('89','435','Arroyo Apolo'); arrB[arrB.length]=new bR('89','477','Averoff'); arrB[arrB.length]=new bR('89','436','Barrio Azul'); arrB[arrB.length]=new bR('89','437','Bellavista'); arrB[arrB.length]=new bR('89','478','Buenos Aires'); arrB[arrB.length]=new bR('89','438','Callejas'); arrB[arrB.length]=new bR('89','464','Capri'); arrB[arrB.length]=new bR('89','490','Ciudad Jardín'); arrB[arrB.length]=new bR('89','465','Ciudad Popular'); arrB[arrB.length]=new bR('89','466','Comodoro'); arrB[arrB.length]=new bR('89','467','Cuervo'); arrB[arrB.length]=new bR('89','439','Delicias'); arrB[arrB.length]=new bR('89','489','El Calvario'); arrB[arrB.length]=new bR('89','481','El Lucero'); arrB[arrB.length]=new bR('89','484','El Moro'); arrB[arrB.length]=new bR('89','494','El Retiro'); arrB[arrB.length]=new bR('89','491','Eléctrico'); arrB[arrB.length]=new bR('89','475','Frank País'); arrB[arrB.length]=new bR('89','442','Gavilán'); arrB[arrB.length]=new bR('89','469','José Antonio Saco'); arrB[arrB.length]=new bR('89','440','La Esperanza'); arrB[arrB.length]=new bR('89','479','La Fortuna'); arrB[arrB.length]=new bR('89','441','La Fraternidad'); arrB[arrB.length]=new bR('89','468','La Güinera'); arrB[arrB.length]=new bR('89','457','La India'); arrB[arrB.length]=new bR('89','434','La Lira'); arrB[arrB.length]=new bR('89','487','La Solita'); arrB[arrB.length]=new bR('89','476','Las Guásimas'); arrB[arrB.length]=new bR('89','480','Las Lajas'); arrB[arrB.length]=new bR('89','456','Los Ángeles'); arrB[arrB.length]=new bR('89','443','Los Mameyes'); arrB[arrB.length]=new bR('89','460','Los Pinos'); arrB[arrB.length]=new bR('89','474','Managua'); arrB[arrB.length]=new bR('89','482','Mantilla'); arrB[arrB.length]=new bR('89','492','María Antonia'); arrB[arrB.length]=new bR('89','483','María Santísima'); arrB[arrB.length]=new bR('89','470','Mendoza'); arrB[arrB.length]=new bR('89','444','Montejo'); arrB[arrB.length]=new bR('89','493','Parcelación Moderna'); arrB[arrB.length]=new bR('89','445','Párraga'); arrB[arrB.length]=new bR('89','458','Patricio Lumumba'); arrB[arrB.length]=new bR('89','485','Pepe Hermoso'); arrB[arrB.length]=new bR('89','459','Perla'); arrB[arrB.length]=new bR('89','446','Poey'); arrB[arrB.length]=new bR('89','471','Ponce'); arrB[arrB.length]=new bR('89','486','Portocarrero'); arrB[arrB.length]=new bR('89','447','Porvenir'); arrB[arrB.length]=new bR('89','472','Rosario'); arrB[arrB.length]=new bR('89','448','San Agustín'); arrB[arrB.length]=new bR('89','449','San José'); arrB[arrB.length]=new bR('89','450','Santa Amalia'); arrB[arrB.length]=new bR('89','451','Tamarindo'); arrB[arrB.length]=new bR('89','452','Víbora Park'); arrB[arrB.length]=new bR('89','461','Vieja Linda'); arrB[arrB.length]=new bR('89','473','Volpe'); arrB[arrB.length]=new bR('90','517','Aguila Hatuey'); arrB[arrB.length]=new bR('90','518','Alberro'); arrB[arrB.length]=new bR('90','519','Alturas de Lotería'); arrB[arrB.length]=new bR('90','495','América'); arrB[arrB.length]=new bR('90','496','Amor'); arrB[arrB.length]=new bR('90','533','Caraballo'); arrB[arrB.length]=new bR('90','499','Centro de Cotorro'); arrB[arrB.length]=new bR('90','500','Cotorro'); arrB[arrB.length]=new bR('90','501','Cruz Verde'); arrB[arrB.length]=new bR('90','534','Cuatro caminos'); arrB[arrB.length]=new bR('90','502','Dulce Nombre'); arrB[arrB.length]=new bR('90','521','Edificio Alberro'); arrB[arrB.length]=new bR('90','507','El Polvorín'); arrB[arrB.length]=new bR('90','522','Federal'); arrB[arrB.length]=new bR('90','498','La Caridad'); arrB[arrB.length]=new bR('90','523','La Fortuna'); arrB[arrB.length]=new bR('90','524','La Granada'); arrB[arrB.length]=new bR('90','525','La Juanita'); arrB[arrB.length]=new bR('90','504','La Lolita'); arrB[arrB.length]=new bR('90','505','La Magdalena'); arrB[arrB.length]=new bR('90','509','La Purísima'); arrB[arrB.length]=new bR('90','512','La Torre'); arrB[arrB.length]=new bR('90','513','La Torriente'); arrB[arrB.length]=new bR('90','497','Las Brisas'); arrB[arrB.length]=new bR('90','520','Las Delicias'); arrB[arrB.length]=new bR('90','503','Las Granjas'); arrB[arrB.length]=new bR('90','526','Loma de Tierra'); arrB[arrB.length]=new bR('90','527','Lotería'); arrB[arrB.length]=new bR('90','528','Modelo'); arrB[arrB.length]=new bR('90','506','Paraíso'); arrB[arrB.length]=new bR('90','508','Primavera'); arrB[arrB.length]=new bR('90','510','Resid. América'); arrB[arrB.length]=new bR('90','511','San Pedro'); arrB[arrB.length]=new bR('90','535','Santa Amelia'); arrB[arrB.length]=new bR('90','529','Santa Ana'); arrB[arrB.length]=new bR('90','530','Santa Clara'); arrB[arrB.length]=new bR('90','531','Santa ISabel'); arrB[arrB.length]=new bR('90','536','Santa M. del Rosario'); arrB[arrB.length]=new bR('90','532','Santa Teresa'); arrB[arrB.length]=new bR('90','514','Vedado (Cotorro)'); arrB[arrB.length]=new bR('90','515','Villa Rosa'); arrB[arrB.length]=new bR('90','516','Vista Alegre'); arrB[arrB.length]=new bR('91','33','Almendares'); arrB[arrB.length]=new bR('91','54','Alt. de Jaimanitas'); arrB[arrB.length]=new bR('91','34','Alt. de Miramar'); arrB[arrB.length]=new bR('91','39','Ampl. de Almendares'); arrB[arrB.length]=new bR('91','49','Atabey'); arrB[arrB.length]=new bR('91','43','Bajo de Santa Ana'); arrB[arrB.length]=new bR('91','55','Barlovento'); arrB[arrB.length]=new bR('91','40','Buenavista'); arrB[arrB.length]=new bR('91','50','Cubanacán'); arrB[arrB.length]=new bR('91','47','El Roble'); arrB[arrB.length]=new bR('91','51','Flores'); arrB[arrB.length]=new bR('91','57','Jaimanitas'); arrB[arrB.length]=new bR('91','44','Juan Manuel Marquez'); arrB[arrB.length]=new bR('91','36','Kohly'); arrB[arrB.length]=new bR('91','35','La Ceiba'); arrB[arrB.length]=new bR('91','38','La Sierra'); arrB[arrB.length]=new bR('91','56','Mayanima'); arrB[arrB.length]=new bR('91','37','Miramar'); arrB[arrB.length]=new bR('91','52','Náutico'); arrB[arrB.length]=new bR('91','45','Nuevo Santa Fe'); arrB[arrB.length]=new bR('91','58','Playa Jaimanitas'); arrB[arrB.length]=new bR('91','48','Playa Santa Fe'); arrB[arrB.length]=new bR('91','41','Playas de Miramar'); arrB[arrB.length]=new bR('91','42','Querejeta'); arrB[arrB.length]=new bR('91','46','Resid. Santa Fe'); arrB[arrB.length]=new bR('91','53','Siboney'); arrB[arrB.length]=new bR('99','557','Playa Baracoa'); arrB[arrB.length]=new bR('103','541','Hermanos Cruz (El Calero)'); arrB[arrB.length]=new bR('117','543','Boca'); arrB[arrB.length]=new bR('117','558','Cabañas'); arrB[arrB.length]=new bR('136','565','Julián Alemán'); arrB[arrB.length]=new bR('136','564','Santa Martha'); arrB[arrB.length]=new bR('139','538','Punta Gorda'); arrB[arrB.length]=new bR('224','539','Frank País'); arrB[arrB.length]=new bR('229','580','Dist. 26 de Julio'); arrB[arrB.length]=new bR('229','581','Dist. Abel Santamaría'); arrB[arrB.length]=new bR('229','579','Dist. Antonio Maceo'); arrB[arrB.length]=new bR('229','578','Dist. José Martí'); arrB[arrB.length]=new bR('229','587','El Caney'); arrB[arrB.length]=new bR('229','588','El Cobre'); arrB[arrB.length]=new bR('229','589','Siboney'); arrB[arrB.length]=new bR('236','545','Caribe'); arrB[arrB.length]=new bR('236','548','Centro'); arrB[arrB.length]=new bR('236','551','Este'); arrB[arrB.length]=new bR('236','556','Isleta'); arrB[arrB.length]=new bR('236','547','Los Cocos'); arrB[arrB.length]=new bR('236','555','Mártires'); arrB[arrB.length]=new bR('236','549','Norte'); arrB[arrB.length]=new bR('236','552','Oeste'); arrB[arrB.length]=new bR('236','544','Pastorita'); arrB[arrB.length]=new bR('236','546','Reparto obrero'); arrB[arrB.length]=new bR('236','554','San Justo'); arrB[arrB.length]=new bR('236','553','Santa María'); arrB[arrB.length]=new bR('236','550','Sur'); arrB[arrB.length]=new bR('243','563','La Demajagua'); arrB[arrB.length]=new bR('243','561','Nueva Gerona'); arrB[arrB.length]=new bR('243','562','Santa Fé');


//END_COPY
//*********  FIN DE PONER LAS ASIGNACIONES DE LOS ARRAYS arrP/arrM/arrB






// Esta función servirá para crear un "objeto provincia".
  function pR(idProvincia, nombreProvincia){
    this.idProvincia = idProvincia;
    this.nombreProvincia = nombreProvincia;
  }

// Esta función servirá para crear un "objeto municipio", asociada a una provincia.
  function mR(idProvincia, idMunicipio, nombreMunicipio){
    this.idProvincia = idProvincia;
    this.idMunicipio = idMunicipio;
    this.nombreMunicipio = nombreMunicipio;
  }

// Esta función servirá para crear un "objeto barrio", asociada a una municipio.
  function bR(idMunicipio, idBarrio, nombreBarrio){
    this.idMunicipio = idMunicipio;
    this.idBarrio = idBarrio;
    this.nombreBarrio = nombreBarrio;
  }









  /* Función para cargar las provincias lo cual se realiza a partir de los arrays....
  Recibe además de cada select, el ID de la correspondiente provincia, municipio y barrio en la que se desea que se
  seleccione inicialmente*/

  function cargarProvincias(myDynamicProvincia ,  idInitialProvincia,
                                    myDynamicMunicipio,   idInitialMunicipio,
                                    myDynamicBarrio,        idInitialBarrio) {

        // Elimino todas las options de la provincia por si acaso se ha creado con algun elemento
        deleteAllOptionsInSelect(myDynamicProvincia);

        if (arrP == null) {

             alert("No se han cargado correctamente las provincias");

          }else{
              //Ok, aqui el array de las Provincias está correcto!


               // SIEMPRE creo el primer OPTION del select de las Provincias que solo diga --Seleccione--
               opcion = new Option("--Seleccione--", "100", false, false);

               // Le añado al select de las Provincias, esta option que es la de seleccione!
               myDynamicProvincia.options[myDynamicProvincia.length] = opcion;


              // Recorro las provincias!
              for (prov = 0; prov < arrP.length; prov++){

                  idProvincia     = arrP[prov].idProvincia; // tomo el id de la provincia
                  nombreProvincia = arrP[prov].nombreProvincia; // tomo el nombre de la provincia


                  // Creo la opción i-esima seleccionada o no
                  if (idProvincia == idInitialProvincia){
                     opcion = new Option(nombreProvincia, idProvincia, true, true);
                  }else{
                    opcion = new Option(nombreProvincia, idProvincia, false, false);
                  }//end if


                  // Añado al select de las provincias, el option con la provincia que acabo de crear
                  myDynamicProvincia.options[myDynamicProvincia.length] = opcion;

              } // end for

        }

      // Al final luego de cargar las provincias, llamo a cargar las municipios para la provincia que ha sido seleccionada por defecto.
      cargarMunicipiosParaProvinciaSeleccionada(myDynamicProvincia ,  idInitialProvincia, myDynamicMunicipio, idInitialMunicipio, myDynamicBarrio, idInitialBarrio);

  }





  /* Función para cargar las municipios para la provincia que está seleccionada.
      Recibe el select de la provincia, el select de las municipios y el select de las barrios!
      NOTA, Aqui se asume que ya el select de las provincias ha sido cargado con las provincias!
  */
  function cargarMunicipiosParaProvinciaSeleccionada( myDynamicProvincia ,  idInitialProvincia,
                                                      myDynamicMunicipio,   idInitialMunicipio,
                                                      myDynamicBarrio,        idInitialBarrio){


     if ((myDynamicProvincia == null) ||
         (myDynamicMunicipio.options == null ) ||
         (myDynamicBarrio.options == null )     ){

        // OOPs aqui ha ocurrido que el select de las provincias NO existe o no tiene options, de momento no hago nada!



     }else{
        // Ok, aqui las provincias estan creadas y tienen al menos un elemento


        // I create an Array of Strings out of the coma separated string with the initial IDs of the Municipals.
        var arrayIdInitialMunicipio = idInitialMunicipio.split(",");

        // Elimino todas las options de las municipios que seguro tiene elementos!
        deleteAllOptionsInSelect(myDynamicMunicipio);

        // Tomo el ID de la provincia que está seleccionada en el select de las provincias!

        indexOfSelectedProvincia = myDynamicProvincia.selectedIndex;



        // ---  *********** BEGIN OF Create and add the first Optin in the Municipio Select
         // Creo el primer OPTION del select de las municipios con el texto en dependencia de si el Select Municipio es multiple o no
         if (myDynamicMunicipio.multiple == true){
            textoParaPrimerOptionDelSelect = "--Cualquier Munic.--";
         }else{
            textoParaPrimerOptionDelSelect = "--Seleccione--";
         }

        // If the index of the selected Province is not the first one (--seleccione--) and there si no initial ID of Municipios to Select, I set setMunicipioFirstOptionAsSelected = true to set Selected the first Option of Municipio
        if ((indexOfSelectedProvincia > 0) && (trim(idInitialMunicipio) == "")){
             setMunicipioFirstOptionAsSelected = true;
         }else{
            setMunicipioFirstOptionAsSelected = false;
         }

         // Depending on whether the first Option is to be mark as selected OR the if
         // value 100 (normally the value should be the value of
         // the Const C_ID_NO_MUNICIPIO...but as this is a plain JavaScript, I cannot access
         // the VB stuff from here so I hardcoded the value 100) is found in the idInitialMunicipio string parameter

         if ((setMunicipioFirstOptionAsSelected == true) || (stringIsFoundInArray("100", arrayIdInitialMunicipio) == true )){
            // I create an Option that is selected by default
             opcion = new Option(textoParaPrimerOptionDelSelect, "100", true, true);
         }else{
            // I create an Option that is NOT selected by default
            opcion = new Option(textoParaPrimerOptionDelSelect, "100", false, false);;
         }//end if


         // I finally add the first Option to the Municipio Select. This is the one with the text "--Seleccione--"!
         myDynamicMunicipio.options[myDynamicMunicipio.length] = opcion;

        // ---  *********** END OF Create and add the first Optin in the Municipio Select



        // Ok, only if the index of Selected Province is valid for searching it´s Municipals, then I do the search for Municipals!
        if (indexOfSelectedProvincia > 0){

            var idProvinciaSelected = myDynamicProvincia.options[indexOfSelectedProvincia].value;
            //Recorro todo el array de las municipios para buscar cuales son las municipios para esta provincia seleccionada!
             for (mun = 0; (mun < arrM.length); mun++){


                // Si estoy en una municipio cuyo ID de Provincia es el de la provincia que se ha seleccionado!
                if (arrM[mun].idProvincia == idProvinciaSelected){

                    idMunicipio     = arrM[mun].idMunicipio;
                    nombreMunicipio = arrM[mun].nombreMunicipio;


                   // Creo la opción i-esima seleccionada o no en dependencia de si este ID se encuentra en los IDs inciales...
                   // Pregunto si el iseimo idMunicipio es encontrado en

                    if (stringIsFoundInArray(idMunicipio, arrayIdInitialMunicipio) == true ){
                       opcion = new Option(nombreMunicipio, idMunicipio, true, true);
                    }else{
                      opcion = new Option(nombreMunicipio, idMunicipio, false, false);;
                    }//end if

                    // Añado al select de las municipios, el option con la municipio que acabo de crear
                    myDynamicMunicipio.options[myDynamicMunicipio.length] = opcion;

                 } // end if



           } // end for


         } //end if


     }



      // Al final luego de cargar las municipios, llamo a cargar las Barrios para el o los municipios que han sido seleccionados.
      cargarBarriosParaMunicipioSeleccionado(myDynamicProvincia ,  idInitialProvincia, myDynamicMunicipio, idInitialMunicipio, myDynamicBarrio, idInitialBarrio);


  }



//  ************************ Method to load Barrios from the selected Municipios
// It will ask whether the Select barrio is Multiple or not and will call the corresponding load method!
    function cargarBarriosParaMunicipioSeleccionado( myDynamicProvincia ,  idInitialProvincia,
                                                     myDynamicMunicipio,   idInitialMunicipio,
                                                     myDynamicBarrio,        idInitialBarrio){

      // Llamo a una función u otra en dependencia de si el Select Barrios es multiple o no

      if (myDynamicBarrio.multiple == false){
          //Llamo al método de cargar los Barrios en el select SIMLPE pues el select de los Barrios AQUI NO ES MULTIPLE
          cargarBarriosSimpleParaMunicipioSeleccionado(myDynamicProvincia ,  idInitialProvincia, myDynamicMunicipio, idInitialMunicipio, myDynamicBarrio, idInitialBarrio);
       }else{
            //Llamo al método de cargar los Barrios en el select MULTIPLE pues el select de los Barrios AQUI SI ES MULTIPLE
            cargarBarriosMultipleParaMunicipioSeleccionado(myDynamicProvincia ,  idInitialProvincia, myDynamicMunicipio, idInitialMunicipio, myDynamicBarrio, idInitialBarrio);
       }

    }









    /* Función para cargar las Barrios en el select SIMPLE para la municipio que está seleccionado.
        Recibe el select de la provincia, el select de las municipios y el select de las barrios
    */
    function cargarBarriosSimpleParaMunicipioSeleccionado( myDynamicProvincia ,  idInitialProvincia,
                                                     myDynamicMunicipio,   idInitialMunicipio,
                                                     myDynamicBarrio,        idInitialBarrio){


       if ((myDynamicProvincia == null) ||
           (myDynamicMunicipio.options == null ) ||
           (myDynamicBarrio.options == null )     ){

          // OOPs aqui ha ocurrido que el select de las provincias NO existe o no tiene options, de momento no hago nada!


       }else{
          // Ok, aqui las municipios estan creadas y tienen al menos un elemento

          // Elimino todas las options de las barrios que seguro tiene elementos!
          deleteAllOptionsInSelect(myDynamicBarrio);

          // Tomo el ID de la municipio que está seleccionada en el select de las municipios!
          firstSelectedIndexInMunicipio = getIndexOfFirstSelectedOptionInSelect(myDynamicMunicipio);



           // SIEMPRE creo el primer OPTION del select de las barrios que solo diga --Seleccione--
          // Creo la primera opción seleccionada o no en dependencia de si el 100 está entre los valores de ID de Barrio Iniciales
          if (idInitialBarrio == "100"){
             opcion = new Option("--Seleccione--", "100", true, true);
          }else{
            opcion = new Option("--Seleccione--", "100", false, false);
          }//end if

           // Le añado al select de las barrios, esta option que es la de seleccionarlas todas!
           myDynamicBarrio.options[myDynamicBarrio.length] = opcion;


              if (firstSelectedIndexInMunicipio > -1){

                  var idMunicipioSelected = myDynamicMunicipio.options[firstSelectedIndexInMunicipio].value;

                  //Recorro todo el array de las barrios para buscar cuales son las barrios para esta municipio seleccionado!
                   for (barr = 0; (barr < arrB.length); barr++ ){


                     // Si estoy en una Barrio cuyo ID de Municipio es el de la Municipio que se ha seleccionado!
                      if (arrB[barr].idMunicipio == idMunicipioSelected){

                          idBarrio     = arrB[barr].idBarrio;
                          nombreBarrio = arrB[barr].nombreBarrio;

                          // Creo la opción i-esima seleccionada o no
                          if (idBarrio == idInitialBarrio){
                             opcion = new Option(nombreBarrio, idBarrio, true, true);
                          }else{
                            opcion = new Option(nombreBarrio, idBarrio, false, false);
                          }//end if

                          // Añado al select de las Barrios, el option con esta barrio que acabo de crear
                          myDynamicBarrio.options[myDynamicBarrio.length] = opcion;

                       } // end if


                     } // end for

              } // end if


       }


  }







    /* Función para cargar las Barrios en el select SIMPLE para la municipio que está seleccionado.
        Recibe el select de la provincia, el select de las municipios y el select de las barrios
        Si se reciben valores separados por comas de IDs iniciales de Barrios para seleccionar, en el parámetro cadena idInitialBarrio, éstos serán los Options que serán Seleccionados!
    */
    function cargarBarriosMultipleParaMunicipioSeleccionado( myDynamicProvincia ,  idInitialProvincia,
                                                     myDynamicMunicipio,   idInitialMunicipio,
                                                     myDynamicBarrio,        idInitialBarrio){


       if ((myDynamicProvincia == null) ||
           (myDynamicMunicipio.options == null ) ||
           (myDynamicBarrio.options == null )     ){

          // OOPs aqui ha ocurrido que el select de las provincias NO existe o no tiene options, de momento no hago nada!


       }else{



          // OJO, if the first Option in the Municipio Select is selected  (--cualquier Munic.--),
          // then I will deselect the rest of the Options in this Municipio Select
          // I do this by DESELECTING ALL OPtions and then set selected = true for teh first one AGAIN!
          //*********************
          if (myDynamicMunicipio.options[0].selected == true){
             // Desselecciono todos los Options del Select Municipio!!
              deselectAllOptionsInSelect(myDynamicMunicipio);

              // And I set selected = true again to the first Option...because I only want the first one to be selected...if the first one is to be selected...
              myDynamicMunicipio.options[0].selected = true;
          }
          //*********************




          // Ok, aqui las municipios estan creadas y tienen al menos un elemento


          // I create an Array of Strings out of the coma separated string with the initial IDs of the Barrios.
          var arrayIdInitialBarrio = idInitialBarrio.split(",");


          // Elimino todas las options de las barrios que seguro tiene elementos!
          deleteAllOptionsInSelect(myDynamicBarrio);

          // Tomo el ID del primer municipio que está seleccionado en el select de las municipios!
          firstSelectedIndexInMunicipio = getIndexOfFirstSelectedOptionInSelect(myDynamicMunicipio);



           // Como este es un Select MULTIPLE, creo el primer OPTION del select de las barrios que solo diga --Cualquier Munic.-- y lo creo Selected o no en dependencia de si el valor 100 viene en la cadena de valores iniciales de Barrios
           if (stringIsFoundInArray("100", arrayIdInitialBarrio) == true ){
              opcion = new Option("--Cualquier Barrio--", "100", true, true);
           }else{
             opcion = new Option("--Cualquier Barrio--", "100", false, false);
           }//end if

           // Le añado al select de las barrios, esta option que es la de seleccionarlas todas!
           myDynamicBarrio.options[myDynamicBarrio.length] = opcion;




           if (firstSelectedIndexInMunicipio > -1){
           // Ok, there is at least one valid Option selected in Municipio..

            maxLengthMunicipioName = 11;

             // I traverse the Options in the Municipio Select looking for the ones that are selected!
             for (indexMun = 1; indexMun < myDynamicMunicipio.options.length; indexMun++){

                // If the ith_Option in the Municipio Select is selected, then I klook for all it´s barrios to insert them in the Barrio Select
                if (myDynamicMunicipio.options[indexMun].selected == true){

                   idMunicipioSelected = myDynamicMunicipio.options[indexMun].value;
                   nameMunicipioSelected = getMunicipioNameById(idMunicipioSelected);


                   // Ponerle el nombre del MUNICIPIO entre corchetes y asegurarme de que no se pase de una longitud determinada!
                   nameForOptionWithMunicipioName = "<Todos en " + nameMunicipioSelected.substring(0,maxLengthMunicipioName);
                   if (nameMunicipioSelected.length > maxLengthMunicipioName){
                       nameForOptionWithMunicipioName += "...";
                     }
                   nameForOptionWithMunicipioName += "> ";




                   // If the string with the initial values of IDs of Barrios, has anything I should not SELECT this initial Option [todos en...]
                   if (trim(idInitialBarrio).length > 0){


                       // I check now whether the string "100" + idMunicipioSelected was received in the initial Values of Selected Barrios, if so, then I must create this Object as Seelcted!
                       if (stringIsFoundInArray("100" + idMunicipioSelected, arrayIdInitialBarrio) == true ){
                          markThisOptionAsSelected = true;
                       }else{
                          markThisOptionAsSelected = false;
                       }


                     }else{
                       markThisOptionAsSelected = true;
                   }


                   opcion = new Option(nameForOptionWithMunicipioName, "100" + idMunicipioSelected, markThisOptionAsSelected, markThisOptionAsSelected);

                   // I add an OPtion saying "[Todos en XXX]"
                   myDynamicBarrio.options[myDynamicBarrio.length] = opcion;


                   //Recorro todo el array de las barrios para buscar cuales son las barrios para esta municipio seleccionado!
                    for (barr = 0; (barr < arrB.length); barr++ ){


                      // Si estoy en una Barrio cuyo ID de Municipio es el de la Municipio que se ha seleccionado!
                       if (arrB[barr].idMunicipio == idMunicipioSelected){

                           idBarrio     = arrB[barr].idBarrio;
                           nombreBarrio = arrB[barr].nombreBarrio;

                           // Creo la opción i-esima seleccionada o no
                           if (stringIsFoundInArray(idBarrio, arrayIdInitialBarrio) == true ){
                              opcion = new Option(nombreBarrio, idBarrio, true, true);
                           }else{
                             opcion = new Option(nombreBarrio, idBarrio, false, false);
                           }//end if

                           // Añado al select de las Barrios, el option con esta barrio que acabo de crear
                           myDynamicBarrio.options[myDynamicBarrio.length] = opcion;

                        } // end if


                      } // end for


                    } // end if


                  } // end for




              } // end if


       }


  }





// ********************* INICIO DE BUSCAR NOMBRES DE PROVINCIAS
//Obtener el nombre de la provincia seleccionada según un Select recibido
function getProvinciaSelectedNameBySelect(selectProvincia){

  if ((selectProvincia != null) && (selectProvincia.options != null)) {

    indexOfSelectedProvincia = selectProvincia.selectedIndex;

    if (indexOfSelectedProvincia > 0){
      idOfSelectedProvince = selectProvincia.options[indexOfSelectedProvincia].value;
      return getProvinciaNameById(idOfSelectedProvince);
    }else {
        return "";
    }


  }

}


//Obtener el nombre de una Provincia a partir del ID de su provincia. OJO, se busca en el array de Provincias!
function getProvinciaNameById(idProvincia){

  integerIdProvincia = parseInt(idProvincia);

  // Recorro el array con TODAS las provincias
  for  (prov = 0; (prov < arrP.length); prov++) {

    //Si me encuentro la Provincia con el ID que me han solicitado idProvincia, lo devuelvo!
    if (integerIdProvincia == arrP[prov].idProvincia) {
        return arrP[prov].nombreProvincia;
    } //end if

  } // end for

  return "";

}
// ********************* FIN DE BUSCAR NOMBRES DE PROVINCIAS






// ********************* INICIO DE BUSCAR NOMBRES DE MUNICIPIOS
// Get the names of the Selected municipios from a Select Object holding the Municipios.
// The names of teh Municipios are taken from the large Array of Municipios (arrM) by calling the function getMunicipioNameById(Id)
function getMunicipioSelectedNameBySelect(selectMunicipio){

  valueToReturn = "";
  if ((selectMunicipio != null) && (selectMunicipio.options != null)) {

     // I traverse the options in the Municipio Select looking for the ones that are selected!
     for (indexMun = 1; indexMun < selectMunicipio.options.length; indexMun++){

        // If the ith_Option in the Municipio Select is selected, then I look for it´s name in the large Array of Municipios!
       if (selectMunicipio.options[indexMun].selected == true){

            idOfSelectedMunicipio = selectMunicipio.options[indexMun].value;

            if (valueToReturn.length > 0) {
                valueToReturn += ", ";
            }
            valueToReturn += getMunicipioNameById(idOfSelectedMunicipio);


        } //end if

     } //end for

  } //end if

  return valueToReturn;

}


//Obtener el nombre de un Municipio a partir del ID de su Municipio. OJO, se busca en el array de Municipios!
function getMunicipioNameById(idMunicipio){

  integerIdMunicipio = parseInt(idMunicipio);

  // Recorro el array con TODAS los Municipios
  for  (mun = 0; (mun < arrM.length); mun++) {

    //Si me encuentro la Municipio con el ID que me han solicitado idMunicipio, lo devuelvo!
    if (integerIdMunicipio == arrM[mun].idMunicipio) {
        return arrM[mun].nombreMunicipio;
    } //end if

  } // end for

  return "";

}
// ********************* FIN DE BUSCAR NOMBRES DE MUNICIPIOS







// ********************* INICIO DE BUSCAR NOMBRES DE BARRIOS
//Obtener el nombre del barrio seleccionado según un Select recibido
function getBarrioSelectedNameBySelect(selectBarrio){

  valueToReturn = "";
  if ((selectBarrio != null) && (selectBarrio.options != null)) {

     // I traverse the options in the Barrio Select looking for the ones that are selected!
     for (indexBarr = 1; indexBarr < selectBarrio.options.length; indexBarr++){

        // If the ith_Option in the Barrio Select is selected, then I look for it´s name in the large Array of Barrios!
       if (selectBarrio.options[indexBarr].selected == true){

            idOfSelectedBarrio = selectBarrio.options[indexBarr].value;

            if (valueToReturn.length > 0) {
                valueToReturn += ", ";
            }

            // The next line is commented because I will take the Barrios names from the text attribute of this option...
            //    *** COMMENTED, read above:   valueToReturn += getBarrioNameById(idOfSelectedBarrio);

            //Take the ith selected Barrio name from the text attribute of this selected Option in the Select Barrios!!
            valueToReturn += selectBarrio.options[indexBarr].text;

        } //end if

     } //end for


  } // end if

  return valueToReturn;

}


//Obtener el nombre de un Barrio a partir del ID de su Barrio. OJO, se busca en el array de Barrios!
function getBarrioNameById(idBarrio){

  integerIdBarrio = parseInt(idBarrio);

  // Recorro el array con TODOS los Barrios
  for  (barr = 0; (barr < arrB.length); barr++) {

    //Si me encuentro la Barrio con el ID que me han solicitado idBarrio, lo devuelvo!
    if (integerIdBarrio == arrB[barr].idBarrio) {
        return arrB[barr].nombreBarrio;
    } //end if

  } // end for

  return "";

}
// ********************* FIN DE BUSCAR NOMBRES DE BARRIOS




//Get a coma separated string with the values of the Selñected Options in the Select object received
function getComaSeparatedStringWithSelectedValuesFromSelect(selectObject){

  valueToReturn = ""

  if ((selectObject != null) && (selectObject.options != null)) {

    // Recorro los Options del Select recibido
    for  (indexSelect = 0; (indexSelect < selectObject.options.length); indexSelect++) {

        // If the ith_Option in the Select Object is selected, then I take it´s value!
       if (selectObject.options[indexSelect].selected == true){

            if (valueToReturn.length > 0) {
                valueToReturn += ", ";
            }

            //Take the ith selected Barrio name from the text attribute of this selected Option in the Select Barrios!!
            valueToReturn += selectObject.options[indexSelect].value;

        } //end if


    } // end for

  } //end if


  return valueToReturn;

}
// ********************* FIN DE BUSCAR NOMBRES DE BARRIOS



//This function receives a Select Object Corresponding to a Barrio Select that is Multiple rearranges the selected
function doSetCorrectOptionsInOneMultipleBarrioSelectObject(selectBarrio){



 if  ((selectBarrio == null) || (selectBarrio.multiple == false)){

 // OOps here the Select Object received as parameter is NULL or it is NOT a multiple one!
 // I do nothing for the moment




 }else{

   // Ok, here the parameter selectBarrio received is actually a Select Object that is multiple. I proceed to rearrange it


   optionCualquierBarrioPivoteIsSelected = false;


  // OJO, Si el primer option del Barrio (--Cualquier Barrio--) está seleccionado, desmarco a TO el mundo y corro lo siguiente para que se me seleccionen SOLO los de TODO en !
  if (selectBarrio.options[0].selected == true) {

    //Desmarco a TODOS los Options....
    deselectAllOptionsInSelect(selectBarrio);

  }



  indexOfOptionCualquierBarrioPivote = 0;
  atLeastOneOptionIsSelectedInThisSection = false;  // true if I find an Option that is selectdd between two Options of the type [Todos en...]


  // Recorro el select de los Barrios buscando los que están seleccionados y que son los que indican el INICIO de los Barrios de un Municipio dado!!
  for (indexSelectBarrio = 1; indexSelectBarrio < selectBarrio.options.length; indexSelectBarrio++){

    // Si estoy en un option que tenga el nombre del Municipio que son los que en el VALUE tienen al inicio el valor 100 (del C_ID_NO_BARRIO ( en vez de un barrio como tal...)
    if (selectBarrio.options[indexSelectBarrio].value.substring(0,"100".length) == "100"){


        // OK, here is a change of a block, I mean I found an Option of the type [Todos en...]
        // So I will ask whether at least one option was selected (actually in the block before...)
        // so if no Option was selected, then I would set selected = true to the last pivote Option...

        if (atLeastOneOptionIsSelectedInThisSection == false){
          if (indexOfOptionCualquierBarrioPivote > 0){
            selectBarrio.options[indexOfOptionCualquierBarrioPivote].selected = true;
          }
        }


        // No I will check the following Option which will become the "Pivot" Option...to go on checking it´s next block of options..
        if (selectBarrio.options[indexSelectBarrio].selected == true){
          optionCualquierBarrioPivoteIsSelected = true;
        }else{
          optionCualquierBarrioPivoteIsSelected = false;
        }

        // I keep the index within the Options Array of the last Option that says "Cualquier barrio en..."
        indexOfOptionCualquierBarrioPivote = indexSelectBarrio;

        // Of course I will set that no Option in this block has been selected...
        atLeastOneOptionIsSelectedInThisSection = false;


    }else{


      // Ok, aqui estamos en un option que ES UN BARRIO DE VERDAD, NO EN UNO QUE DIGA [Todos en ...]!

            //If the current Option is selected, I will deselect the Pivote Option corresponding to it´s Cualquier Barrio option above...

          if (selectBarrio.options[indexSelectBarrio].selected == true){

             // Ok, then if the pivot Option is not the first one, then I deselect it!
             if (indexOfOptionCualquierBarrioPivote > 0){
                selectBarrio.options[indexOfOptionCualquierBarrioPivote].selected = false;
             }

             // Ok, I set that at least One Option in this section is selected...
             atLeastOneOptionIsSelectedInThisSection = true;

          }


    }


  }// for



    // Si al final del For (de recorrer todos los Options del Select) tengo que en este último bloque, No ha habido ningún Option seleccionado, ENTONCES MARCO COMO SELECCIONADO AL OPTION DE PIVOTE!
          if (atLeastOneOptionIsSelectedInThisSection == false){
            if (indexOfOptionCualquierBarrioPivote > 0){
              selectBarrio.options[indexOfOptionCualquierBarrioPivote].selected = true;
            }
          }


   //In the end I always leave UNSELECTED the first option...
   selectBarrio.options[0].selected == false;


 }// end if


}










//KK BORRAME Esta funcion es de prueba asi que debe estar fuera del codigo final
function doCheckNames(){

  //alert("Los names son \nProvincia: " + getProvinciaSelectedNameBySelect(document.myForm.provinciaSearch) + "\nMunicipio: " + getMunicipioSelectedNameBySelect(document.myForm.municipioSearch) + "\nBarrio:      " + getBarrioSelectedNameBySelect(document.myForm.barrioSearch) + "\n") ;

  alert("Los names son \nProvincia: " + getProvinciaSelectedNameBySelect(document.myForm.provinciaSearch) );
  alert("Los names son \nMunicipio: " + getMunicipioSelectedNameBySelect(document.myForm.municipioSearch) );
  alert("Los names son \nBarrio:    " + getBarrioSelectedNameBySelect(document.myForm.barrioSearch) + "\n") ;

}



//KK BORRAME
function doAnotherTest(){
  selectProvincia = document.myForm.provinciaSearch;
  selectMunicipio = document.myForm.municipioSearch;
  selectBarrio    = document.myForm.barrioSearch;

  //alert("selectBarrio.selectedIndex = " + selectBarrio.selectedIndex);

  alert("el valor de los valores ID tomados de los OPTIONS ES:\nID_Provincia: " + getComaSeparatedStringWithSelectedValuesFromSelect(selectProvincia) + "\nID_Municipio: " + getComaSeparatedStringWithSelectedValuesFromSelect(selectMunicipio) + "\nIdBarrio: " + getComaSeparatedStringWithSelectedValuesFromSelect(selectBarrio) );

}
