function updateZona() 
{ 
var seltipval = ''+document.getElementById('smartTip').value; 
var tips = seltipval.split('-',2); 
var tip = '' + tips[0]; 
var theSel = document.getElementById('selca'); 

theSel.options.length = 0; 
theSel.options[theSel.length] = new Option('- zona imobil - ', '0'); 
switch(tip) 
{ 
case '1' : 
theSel.options[theSel.length] = new Option('Alexandru cel Bun', '44');
theSel.options[theSel.length] = new Option('Arcu', '174');
theSel.options[theSel.length] = new Option('Bicaz', '376');theSel.options[theSel.length] = new Option('Billa', '308');theSel.options[theSel.length] = new Option('Bularga', '396');theSel.options[theSel.length] = new Option('Bularga', '43');theSel.options[theSel.length] = new Option('Canta', '52');theSel.options[theSel.length] = new Option('Cantemir', '282');theSel.options[theSel.length] = new Option('Central', '56');theSel.options[theSel.length] = new Option('Centru Civic', '61');theSel.options[theSel.length] = new Option('Copou', '65');theSel.options[theSel.length] = new Option('Cug', '70');theSel.options[theSel.length] = new Option('Dacia', '75');theSel.options[theSel.length] = new Option('Dancu', '136');theSel.options[theSel.length] = new Option('Frumoasa', '231');theSel.options[theSel.length] = new Option('Galata', '79');theSel.options[theSel.length] = new Option('Gara', '83');theSel.options[theSel.length] = new Option('Gradinari', '286');theSel.options[theSel.length] = new Option('Independentei', '34');theSel.options[theSel.length] = new Option('Metalurgie', '272');theSel.options[theSel.length] = new Option('Mircea cel Batran', '91');theSel.options[theSel.length] = new Option('Nicolina', '93');theSel.options[theSel.length] = new Option('Pacurari', '96');theSel.options[theSel.length] = new Option('Piata Unirii', '32');theSel.options[theSel.length] = new Option('Podu Ros', '106');theSel.options[theSel.length] = new Option('Podul de Fier', '108');theSel.options[theSel.length] = new Option('Podul de Piatra', '327');theSel.options[theSel.length] = new Option('Poitiers', '21');theSel.options[theSel.length] = new Option('Socola', '111');theSel.options[theSel.length] = new Option('Stefan cel Mare', '227');theSel.options[theSel.length] = new Option('Targu Cucu', '298');theSel.options[theSel.length] = new Option('Tatarasi', '117');theSel.options[theSel.length] = new Option('Tomesti', '122');theSel.options[theSel.length] = new Option('Tudor Vladimirescu', '127');theSel.options[theSel.length] = new Option('Zimbru', '239');break;case '2' : theSel.options[theSel.length] = new Option('Barnova', '178');theSel.options[theSel.length] = new Option('Central', '57');theSel.options[theSel.length] = new Option('Chicerea', '181');theSel.options[theSel.length] = new Option('Ciurbesti', '384');theSel.options[theSel.length] = new Option('Copou', '66');theSel.options[theSel.length] = new Option('Cug', '71');theSel.options[theSel.length] = new Option('Dancu', '137');theSel.options[theSel.length] = new Option('Grajduri', '430');theSel.options[theSel.length] = new Option('Holboca', '381');theSel.options[theSel.length] = new Option('Horlesti', '428');theSel.options[theSel.length] = new Option('Lunca Cetatuii', '141');theSel.options[theSel.length] = new Option('Nicolina II', '337');theSel.options[theSel.length] = new Option('Osoi', '422');theSel.options[theSel.length] = new Option('Pacurari', '97');theSel.options[theSel.length] = new Option('Podu Iloaiei', '102');theSel.options[theSel.length] = new Option('Sararie', '198');theSel.options[theSel.length] = new Option('Tatarasi', '118');theSel.options[theSel.length] = new Option('Valea Adanca', '206');theSel.options[theSel.length] = new Option('Vanatori', '426');break;case '3' : theSel.options[theSel.length] = new Option('Aleea Tudor Neculai', '169');theSel.options[theSel.length] = new Option('Alexandru cel Bun', '46');theSel.options[theSel.length] = new Option('Aroneanu', '148');theSel.options[theSel.length] = new Option('Barnova', '179');theSel.options[theSel.length] = new Option('Breazu', '295');theSel.options[theSel.length] = new Option('Bucium', '133');theSel.options[theSel.length] = new Option('Cantemir', '284');theSel.options[theSel.length] = new Option('Central', '58');theSel.options[theSel.length] = new Option('Ciurea', '185');theSel.options[theSel.length] = new Option('Dancu', '406');theSel.options[theSel.length] = new Option('Galata', '81');theSel.options[theSel.length] = new Option('Holboca', '382');theSel.options[theSel.length] = new Option('Horpaz', '304');theSel.options[theSel.length] = new Option('Iezareni', '425');theSel.options[theSel.length] = new Option('Lunca Cetatuii', '142');theSel.options[theSel.length] = new Option('Miroslava', '145');theSel.options[theSel.length] = new Option('Moara de Vant', '154');theSel.options[theSel.length] = new Option('Moara Grecilor', '405');theSel.options[theSel.length] = new Option('Nicolina', '94');theSel.options[theSel.length] = new Option('Pacurari', '98');theSel.options[theSel.length] = new Option('Pietrarie', '423');theSel.options[theSel.length] = new Option('Podu de Fier', '280');theSel.options[theSel.length] = new Option('Podul de Piatra', '329');theSel.options[theSel.length] = new Option('Rediu', '157');theSel.options[theSel.length] = new Option('Strugurilor', '245');theSel.options[theSel.length] = new Option('Suceava', '409');theSel.options[theSel.length] = new Option('Targu Cucu', '300');theSel.options[theSel.length] = new Option('Targu Frumos', '388');theSel.options[theSel.length] = new Option('Tatarasi', '119');theSel.options[theSel.length] = new Option('Tomesti', '124');theSel.options[theSel.length] = new Option('Valea Ursului', '313');theSel.options[theSel.length] = new Option('Valea Adanca', '207');theSel.options[theSel.length] = new Option('Valea Lupului', '307');theSel.options[theSel.length] = new Option('Visani', '163');break;case '4' : theSel.options[theSel.length] = new Option('Alexandru cel Bun', '47');theSel.options[theSel.length] = new Option('Bicaz', '379');theSel.options[theSel.length] = new Option('Breazu', '296');theSel.options[theSel.length] = new Option('Bucium', '134');theSel.options[theSel.length] = new Option('Bularga', '51');theSel.options[theSel.length] = new Option('Canta', '55');theSel.options[theSel.length] = new Option('Central', '59');theSel.options[theSel.length] = new Option('Ciurea', '372');theSel.options[theSel.length] = new Option('Frumoasa', '234');theSel.options[theSel.length] = new Option('Galata', '82');theSel.options[theSel.length] = new Option('Gara', '86');theSel.options[theSel.length] = new Option('Holboca', '340');theSel.options[theSel.length] = new Option('Independentei', '37');theSel.options[theSel.length] = new Option('Manta Rosie', '370');theSel.options[theSel.length] = new Option('Metalurgie', '275');theSel.options[theSel.length] = new Option('Miroslava', '321');theSel.options[theSel.length] = new Option('Nicolina', '95');theSel.options[theSel.length] = new Option('Pacurari', '99');theSel.options[theSel.length] = new Option('Podu Ros', '107');theSel.options[theSel.length] = new Option('Podul de Fier', '109');theSel.options[theSel.length] = new Option('Podul de Piatra', '330');theSel.options[theSel.length] = new Option('Stefan cel Mare', '229');theSel.options[theSel.length] = new Option('Tatarasi', '120');theSel.options[theSel.length] = new Option('Tomesti', '125');theSel.options[theSel.length] = new Option('Valea Adanca', '363');theSel.options[theSel.length] = new Option('Valea Lupului', '360');theSel.options[theSel.length] = new Option('Zona Industriala', '325');break;case '5' : theSel.options[theSel.length] = new Option('Ses Bahlui', '262');theSel.options[theSel.length] = new Option('Aeroport', '167');theSel.options[theSel.length] = new Option('Aleea Strugurilor', '205');theSel.options[theSel.length] = new Option('Aleea Tudor Neculai', '170');theSel.options[theSel.length] = new Option('Aparatorii Patriei', '173');theSel.options[theSel.length] = new Option('Aroneanu', '149');theSel.options[theSel.length] = new Option('Bacau', '403');theSel.options[theSel.length] = new Option('Barnova', '180');theSel.options[theSel.length] = new Option('Bogdanesti', '320');theSel.options[theSel.length] = new Option('Breazu', '152');theSel.options[theSel.length] = new Option('Bucium', '135');theSel.options[theSel.length] = new Option('Bucsinescu', '271');theSel.options[theSel.length] = new Option('Carlig', '375');theSel.options[theSel.length] = new Option('Central', '60');theSel.options[theSel.length] = new Option('Chicerea', '183');theSel.options[theSel.length] = new Option('Ciurbesti', '252');theSel.options[theSel.length] = new Option('Ciurea', '186');theSel.options[theSel.length] = new Option('Copou', '69');theSel.options[theSel.length] = new Option('Cug', '74');theSel.options[theSel.length] = new Option('Dacia', '278');theSel.options[theSel.length] = new Option('Dancu', '139');theSel.options[theSel.length] = new Option('Dorobanti', '318');theSel.options[theSel.length] = new Option('Dumbrava Rosie', '265');theSel.options[theSel.length] = new Option('Epureni', '362');theSel.options[theSel.length] = new Option('Ferma Liliac', '261');theSel.options[theSel.length] = new Option('Galata', '253');theSel.options[theSel.length] = new Option('Grajduri', '188');theSel.options[theSel.length] = new Option('Hlincea', '366');theSel.options[theSel.length] = new Option('Holboca', '190');theSel.options[theSel.length] = new Option('Horlesti', '191');theSel.options[theSel.length] = new Option('Horpaz', '192');theSel.options[theSel.length] = new Option('Iezareni', '193');theSel.options[theSel.length] = new Option('Judetul Neamt', '383');theSel.options[theSel.length] = new Option('Letcani', '194');theSel.options[theSel.length] = new Option('Lunca Cetatuii', '143');theSel.options[theSel.length] = new Option('Manta Rosie', '371');theSel.options[theSel.length] = new Option('Miroslava', '146');theSel.options[theSel.length] = new Option('Moara de Vant', '155');theSel.options[theSel.length] = new Option('Nicolina', '254');theSel.options[theSel.length] = new Option('Osoi', '189');theSel.options[theSel.length] = new Option('Pacurari', '100');theSel.options[theSel.length] = new Option('Pietrari', '195');theSel.options[theSel.length] = new Option('Podis Beldiman', '196');theSel.options[theSel.length] = new Option('Podul de Fier', '110');theSel.options[theSel.length] = new Option('Popas Pacurari', '264');theSel.options[theSel.length] = new Option('Popricani', '197');theSel.options[theSel.length] = new Option('Rediu', '158');theSel.options[theSel.length] = new Option('Sculeni', '344');theSel.options[theSel.length] = new Option('Smardan', '259');theSel.options[theSel.length] = new Option('Socola', '255');theSel.options[theSel.length] = new Option('Sorogari', '204');theSel.options[theSel.length] = new Option('Tatarasi', '121');theSel.options[theSel.length] = new Option('Tomesti', '126');theSel.options[theSel.length] = new Option('Tudor Vladimirescu', '277');theSel.options[theSel.length] = new Option('Uricani', '263');theSel.options[theSel.length] = new Option('Valea Adanca', '161');theSel.options[theSel.length] = new Option('Valea Ursului', '209');theSel.options[theSel.length] = new Option('Vanatori', '210');theSel.options[theSel.length] = new Option('Visani', '164');theSel.options[theSel.length] = new Option('Vladiceni', '347');theSel.options[theSel.length] = new Option('Vulturi', '266');theSel.options[theSel.length] = new Option('Zahorna', '211');theSel.options[theSel.length] = new Option('Zona Dedeman', '212');break;case '19' : theSel.options[theSel.length] = new Option('Copou', '418');theSel.options[theSel.length] = new Option('Suceava', '420');break; default: break; } }