var locations = new Array(); locations[15] = new Array(); locations[15][0] = new Array('3', 'Barban (Barbano)'); locations[15][1] = new Array('1', 'Buje (Buie)'); locations[15][2] = new Array('2', 'Buzet (Pinguente)'); locations[15][3] = new Array('17', 'Icici'); locations[15][4] = new Array('19', 'Isole '); locations[15][5] = new Array('15', 'Izola (Isola)'); locations[15][6] = new Array('14', 'Koper (Caopodistria)'); locations[15][7] = new Array('10', 'Labin (Albona)'); locations[15][8] = new Array('22', 'Ličko-senjska'); locations[15][9] = new Array('18', 'Lovran'); locations[15][10] = new Array('7', 'Motovun (Montona)'); locations[15][11] = new Array('8', 'Novigrad (Cittanova)'); locations[15][12] = new Array('16', 'Opatija'); locations[15][13] = new Array('11', 'Pazin (Pisino)'); locations[15][14] = new Array('13', 'Piran (Pirano)'); locations[15][15] = new Array('4', 'Poreč (Parenzo)'); locations[15][16] = new Array('21', 'Primorsko-goranska'); locations[15][17] = new Array('9', 'Pula (Pola)'); locations[15][18] = new Array('20', 'Rabac'); locations[15][19] = new Array('5', 'Rovinj (Rovigno)'); locations[15][20] = new Array('25', 'Splitsko-dalmatinska'); locations[15][21] = new Array('12', 'Umag (Umago)'); locations[15][22] = new Array('6', 'Vrsar (Orsera)'); locations[15][23] = new Array('23', 'Zadarska'); locations[15][24] = new Array('26', 'Zagrebačka'); locations[15][25] = new Array('24', 'Šibensko-kninska'); locations[16] = new Array(); locations[16][0] = new Array('3', 'Barban (Barbano)'); locations[16][1] = new Array('1', 'Buje (Buie)'); locations[16][2] = new Array('2', 'Buzet (Pinguente)'); locations[16][3] = new Array('17', 'Icici'); locations[16][4] = new Array('19', 'Isole '); locations[16][5] = new Array('15', 'Izola (Isola)'); locations[16][6] = new Array('14', 'Koper (Caopodistria)'); locations[16][7] = new Array('10', 'Labin (Albona)'); locations[16][8] = new Array('18', 'Lovran'); locations[16][9] = new Array('7', 'Motovun (Montona)'); locations[16][10] = new Array('8', 'Novigrad (Cittanova)'); locations[16][11] = new Array('16', 'Opatija'); locations[16][12] = new Array('11', 'Pazin (Pisino)'); locations[16][13] = new Array('13', 'Piran (Pirano)'); locations[16][14] = new Array('4', 'Poreč (Parenzo)'); locations[16][15] = new Array('9', 'Pula (Pola)'); locations[16][16] = new Array('20', 'Rabac'); locations[16][17] = new Array('5', 'Rovinj (Rovigno)'); locations[16][18] = new Array('12', 'Umag (Umago)'); locations[16][19] = new Array('6', 'Vrsar (Orsera)'); locations[17] = new Array(); locations[17][0] = new Array('16', ''); locations[17][1] = new Array('24', 'Banjole'); locations[17][2] = new Array('3', 'Barban (Barbano)'); locations[17][3] = new Array('1', 'Buje (Buie)'); locations[17][4] = new Array('2', 'Buzet (Pinguente)'); locations[17][5] = new Array('18', 'Icici'); locations[17][6] = new Array('20', 'Isole '); locations[17][7] = new Array('15', 'Izola (Isola)'); locations[17][8] = new Array('14', 'Koper (Caopodistria)'); locations[17][9] = new Array('10', 'Labin (Albona)'); locations[17][10] = new Array('22', 'Liznjan'); locations[17][11] = new Array('27', 'Ličko-senjska'); locations[17][12] = new Array('19', 'Lovran'); locations[17][13] = new Array('23', 'Medulin'); locations[17][14] = new Array('7', 'Motovun (Montona)'); locations[17][15] = new Array('8', 'Novigrad (Cittanova)'); locations[17][16] = new Array('17', 'Opatija'); locations[17][17] = new Array('11', 'Pazin (Pisino)'); locations[17][18] = new Array('13', 'Piran (Pirano)'); locations[17][19] = new Array('25', 'Pomer'); locations[17][20] = new Array('4', 'Poreč (Parenzo)'); locations[17][21] = new Array('26', 'Primorsko-goranska'); locations[17][22] = new Array('9', 'Pula (Pola)'); locations[17][23] = new Array('21', 'Rabac'); locations[17][24] = new Array('5', 'Rovinj (Rovigno)'); locations[17][25] = new Array('30', 'Splitsko-dalmatinska'); locations[17][26] = new Array('12', 'Umag (Umago)'); locations[17][27] = new Array('6', 'Vrsar (Orsera)'); locations[17][28] = new Array('28', 'Zadarska'); locations[17][29] = new Array('31', 'Zagrebačka'); locations[17][30] = new Array('29', 'Šibensko-kninska'); locations[18] = new Array(); locations[18][0] = new Array('3', 'Barban (Barbano)'); locations[18][1] = new Array('1', 'Buje (Buie)'); locations[18][2] = new Array('2', 'Buzet (Pinguente)'); locations[18][3] = new Array('17', 'Icici'); locations[18][4] = new Array('19', 'Isole '); locations[18][5] = new Array('15', 'Izola (Isola)'); locations[18][6] = new Array('14', 'Koper (Caopodistria)'); locations[18][7] = new Array('10', 'Labin (Albona)'); locations[18][8] = new Array('22', 'Ličko-senjska'); locations[18][9] = new Array('18', 'Lovran'); locations[18][10] = new Array('7', 'Motovun (Montona)'); locations[18][11] = new Array('8', 'Novigrad (Cittanova)'); locations[18][12] = new Array('16', 'Opatija'); locations[18][13] = new Array('11', 'Pazin (Pisino)'); locations[18][14] = new Array('13', 'Piran (Pirano)'); locations[18][15] = new Array('4', 'Poreč (Parenzo)'); locations[18][16] = new Array('21', 'Primorsko-goranska'); locations[18][17] = new Array('9', 'Pula (Pola)'); locations[18][18] = new Array('20', 'Rabac'); locations[18][19] = new Array('5', 'Rovinj (Rovigno)'); locations[18][20] = new Array('25', 'Splitsko-dalmatinska'); locations[18][21] = new Array('12', 'Umag (Umago)'); locations[18][22] = new Array('6', 'Vrsar (Orsera)'); locations[18][23] = new Array('23', 'Zadarska'); locations[18][24] = new Array('26', 'Zagrebačka'); locations[18][25] = new Array('24', 'Šibensko-kninska'); locations[14] = new Array(); locations[14][0] = new Array('3', 'Barban (Barbano)'); locations[14][1] = new Array('1', 'Buje (Buie)'); locations[14][2] = new Array('2', 'Buzet (Pinguente)'); locations[14][3] = new Array('17', 'Icici'); locations[14][4] = new Array('19', 'Isole '); locations[14][5] = new Array('15', 'Izola (Isola)'); locations[14][6] = new Array('14', 'Koper (Caopodistria)'); locations[14][7] = new Array('10', 'Labin (Albona)'); locations[14][8] = new Array('22', 'Ličko-senjska'); locations[14][9] = new Array('18', 'Lovran'); locations[14][10] = new Array('7', 'Motovun (Montona)'); locations[14][11] = new Array('8', 'Novigrad (Cittanova)'); locations[14][12] = new Array('16', 'Opatija'); locations[14][13] = new Array('11', 'Pazin (Pisino)'); locations[14][14] = new Array('13', 'Piran (Pirano)'); locations[14][15] = new Array('4', 'Poreč (Parenzo)'); locations[14][16] = new Array('21', 'Primorsko-goranska'); locations[14][17] = new Array('9', 'Pula (Pola)'); locations[14][18] = new Array('20', 'Rabac'); locations[14][19] = new Array('5', 'Rovinj (Rovigno)'); locations[14][20] = new Array('25', 'Splitsko-dalmatinska'); locations[14][21] = new Array('12', 'Umag (Umago)'); locations[14][22] = new Array('6', 'Vrsar (Orsera)'); locations[14][23] = new Array('23', 'Zadarska'); locations[14][24] = new Array('26', 'Zagrebačka'); locations[14][25] = new Array('24', 'Šibensko-kninska '); locations[109] = new Array(); locations[109][0] = new Array('3', 'Barban (Barbano)'); locations[109][1] = new Array('1', 'Buje (Buie)'); locations[109][2] = new Array('2', 'Buzet (Pinguente)'); locations[109][3] = new Array('17', 'Icici'); locations[109][4] = new Array('19', 'Isole '); locations[109][5] = new Array('15', 'Izola (Isola)'); locations[109][6] = new Array('14', 'Koper (Caopodistria)'); locations[109][7] = new Array('10', 'Labin (Albona)'); locations[109][8] = new Array('18', 'Lovran'); locations[109][9] = new Array('7', 'Motovun (Montona)'); locations[109][10] = new Array('8', 'Novigrad (Cittanova)'); locations[109][11] = new Array('16', 'Opatija'); locations[109][12] = new Array('11', 'Pazin (Pisino)'); locations[109][13] = new Array('13', 'Piran (Pirano)'); locations[109][14] = new Array('4', 'Poreč (Parenzo)'); locations[109][15] = new Array('9', 'Pula (Pola)'); locations[109][16] = new Array('20', 'Rabac'); locations[109][17] = new Array('5', 'Rovinj (Rovigno)'); locations[109][18] = new Array('12', 'Umag (Umago)'); locations[109][19] = new Array('6', 'Vrsar (Orsera)'); locations[108] = new Array(); locations[108][0] = new Array('3', 'Barban (Barbano)'); locations[108][1] = new Array('1', 'Buje (Buie)'); locations[108][2] = new Array('2', 'Buzet (Pinguente)'); locations[108][3] = new Array('17', 'Icici'); locations[108][4] = new Array('19', 'Isole '); locations[108][5] = new Array('15', 'Izola (Isola)'); locations[108][6] = new Array('14', 'Koper (Caopodistria)'); locations[108][7] = new Array('10', 'Labin (Albona)'); locations[108][8] = new Array('18', 'Lovran'); locations[108][9] = new Array('7', 'Motovun (Montona)'); locations[108][10] = new Array('8', 'Novigrad (Cittanova)'); locations[108][11] = new Array('16', 'Opatija'); locations[108][12] = new Array('11', 'Pazin (Pisino)'); locations[108][13] = new Array('13', 'Piran (Pirano)'); locations[108][14] = new Array('4', 'Poreč (Parenzo)'); locations[108][15] = new Array('9', 'Pula (Pola)'); locations[108][16] = new Array('20', 'Rabac'); locations[108][17] = new Array('5', 'Rovinj (Rovigno)'); locations[108][18] = new Array('12', 'Umag (Umago)'); locations[108][19] = new Array('6', 'Vrsar (Orsera)'); function fillLocations(categoryId,selectedLocation) { if (categoryId!=0) { d = document.getElementById('selectLocation'); d.options.lenght=0; d.options[0] = new Option('-- --', 0, false, false); for (a=1; a<=locations[categoryId].length-1; a++) { if (selectedLocation == locations[categoryId][a][0]) { d.options[a]=new Option(locations[categoryId][a][1], locations[categoryId][a][0], true, true); } else { d.options[a]=new Option(locations[categoryId][a][1], locations[categoryId][a][0], false, false); } } } else { d = document.getElementById('selectLocation'); d.options.lenght=0; } }