var regiondb = new Object() regiondb[0] = [{value:"0", text:"Lựa chọn"}];regiondb[530] = [{value:"0", text:"Lựa chọn"},{value:"549", text:"Khu Công nghiệp"},{value:"550", text:"Công Trình Công cộng"},{value:"551", text:"Căn hộ - Chung Cư"},{value:"552", text:"Phức hợp"},{value:"533", text:"Du lịch khách sạn"},{value:"531", text:"Đô Thị "},{value:"532", text:"Văn phòng - Cao ốc "}];regiondb[583] = [{value:"0", text:"Lựa chọn"}];regiondb[538] = [{value:"0", text:"Lựa chọn"}];regiondb[572] = [{value:"0", text:"Lựa chọn"}];regiondb[544] = [{value:"0", text:"Lựa chọn"}];regiondb[534] = [{value:"0", text:"Lựa chọn"},{value:"553", text:"Công Trình Công cộng"},{value:"548", text:"Khu Công nghiệp"},{value:"555", text:"Căn hộ - Chung Cư"},{value:"554", text:"Văn Phòng - Cao ốc"},{value:"556", text:"Du lịch khách sạn"},{value:"535", text:"Đô thị"},{value:"557", text:"Phức hợp"}];regiondb[526] = [{value:"0", text:"Lựa chọn"}];regiondb[573] = [{value:"0", text:"Lựa chọn"}];regiondb[545] = [{value:"0", text:"Lựa chọn"}];regiondb[527] = [{value:"0", text:"Lựa chọn"}];regiondb[578] = [{value:"0", text:"Lựa chọn"}];regiondb[536] = [{value:"0", text:"Lựa chọn"},{value:"558", text:"Khu Công nghiệp"},{value:"559", text:"Công Trình Công cộng"},{value:"560", text:"Căn hộ - Chung Cư"},{value:"561", text:"Du lịch khách sạn"},{value:"562", text:"Đô thị"},{value:"563", text:"Văn Phòng - Cao ốc"},{value:"564", text:"Du lịch khách sạn"}];regiondb[540] = [{value:"0", text:"Lựa chọn"}];regiondb[524] = [{value:"0", text:"Lựa chọn"}];regiondb[528] = [{value:"0", text:"Lựa chọn"}];regiondb[546] = [{value:"0", text:"Lựa chọn"}];regiondb[575] = [{value:"0", text:"Lựa chọn"}];regiondb[529] = [{value:"0", text:"Lựa chọn"}];regiondb[541] = [{value:"0", text:"Lựa chọn"}];regiondb[576] = [{value:"0", text:"Lựa chọn"}];regiondb[547] = [{value:"0", text:"Lựa chọn"}];regiondb[542] = [{value:"0", text:"Lựa chọn"}];regiondb[525] = [{value:"0", text:"Lựa chọn"}];regiondb[517] = [{value:"0", text:"Lựa chọn"}];regiondb[263] = [{value:"0", text:"Lựa chọn"}]; function setCities(thanpho,quan,valuequan) { var newElem; var chooser = document.getElementById(thanpho); var where = (navigator.appName == "Microsoft Internet Explorer") ? -1 : null; var categories_multiChooser = document.getElementById(quan); while (categories_multiChooser.options.length) { categories_multiChooser.remove(0); } var choice = chooser.options[chooser.selectedIndex].value; var db = regiondb[choice]; if (choice != "") { for (var i = 0; i < db.length; i++) { newElem = document.createElement("option"); newElem.text = db[i].text; newElem.value = db[i].value; categories_multiChooser.add(newElem, where); if(valuequan == db[i].value) categories_multiChooser.options[i].selected = true; } } }