var regiondb = new Object() regiondb[0] = [{value:"", text:"Chọn Model"}];regiondb[94] = [{value:"", text:"Chọn Model"},{value:"1197", text:"Murcielago LP640 "}];regiondb[93] = [{value:"", text:"Chọn Model"},{value:"1196", text:"Cayenne S 4.8"}];regiondb[91] = [{value:"", text:"Chọn Model"}];regiondb[95] = [{value:"", text:"Chọn Model"},{value:"1200", text:"QM5_BOSE"}];regiondb[92] = [{value:"", text:"Chọn Model"},{value:"1193", text:"REXTON"},{value:"1194", text:"REXTON RX4"}];regiondb[28] = [{value:"", text:"Chọn Model"},{value:"1022", text:"Accent"},{value:"1023", text:"Atos"},{value:"1024", text:"Avante"},{value:"1155", text:"Ben"},{value:"1025", text:"Centennial"},{value:"1026", text:"Click"},{value:"1027", text:"County"},{value:"1028", text:"Coupe"},{value:"1029", text:"Dynasty"},{value:"1030", text:"Elantra"},{value:"1031", text:"Excel"},{value:"1032", text:"Galloper"},{value:"1033", text:"Genesis"},{value:"1034", text:"Getz"},{value:"1035", text:"Gold"},{value:"1036", text:"Grandeur"},{value:"1037", text:"H-1"},{value:"1038", text:"H-100"},{value:"1039", text:"I10"},{value:"1040", text:"I30"},{value:"1041", text:"Innovation"},{value:"1042", text:"Lantra"},{value:"1043", text:"Lavita"},{value:"1044", text:"Libero"},{value:"1045", text:"Marcia"},{value:"1046", text:"Matrix"},{value:"1047", text:"Pony"},{value:"1048", text:"S-coupe"},{value:"1198", text:"Santafe MLX"},{value:"1049", text:"SantaFe SLX"},{value:"1050", text:"Santamo"},{value:"1183", text:"Sonata Y20 Royal"},{value:"1051", text:"Sonata Y20 Sport"},{value:"1052", text:"Starex"},{value:"1053", text:"Terracan"},{value:"1054", text:"Tiboron"},{value:"1055", text:"Trajet"},{value:"1192", text:"Tucson"},{value:"1188", text:"Tucson IX"},{value:"1182", text:"Tucson LMX20"},{value:"1056", text:"Tucson LX20"},{value:"1057", text:"Tuscani"},{value:"1202", text:"Veloster"},{value:"1059", text:"Verna"},{value:"1058", text:"Verracrus"},{value:"1158", text:"Xe tải"},{value:"1060", text:"XG"}];regiondb[33] = [{value:"", text:"Chọn Model"},{value:"952", text:"Avella"},{value:"953", text:"Carens"},{value:"954", text:"Carnival"},{value:"955", text:"Cerato"},{value:"1203", text:"Cerato"},{value:"956", text:"Clarus"},{value:"957", text:"Elan"},{value:"958", text:"Enterprise"},{value:"959", text:"Forte"},{value:"1195", text:"Forte GDI"},{value:"1184", text:"Forte Hatchback"},{value:"1185", text:"Forte Koup"},{value:"960", text:"Jeep"},{value:"961", text:"Joice"},{value:"962", text:"K2700"},{value:"963", text:"Magentis"},{value:"1199", text:"Morning"},{value:"1204", text:"Morning LX"},{value:"964", text:"Morning SLX"},{value:"965", text:"Opirus"},{value:"966", text:"Picanto"},{value:"967", text:"Potentia"},{value:"968", text:"Pregio"},{value:"969", text:"Pride"},{value:"970", text:"Retona"},{value:"971", text:"Rio"},{value:"972", text:"Roadster"},{value:"973", text:"Sephia"},{value:"975", text:"Serento"},{value:"974", text:"Shuma"},{value:"1186", text:"Sorento Limited"},{value:"1187", text:"Sorento TLX"},{value:"976", text:"Soul 4U"},{value:"977", text:"Spectra"},{value:"978", text:"Sportage"},{value:"1189", text:"Sportage Limited"},{value:"1190", text:"Sportage TLX"},{value:"979", text:"Visto"},{value:"1159", text:"Xe tải"}];regiondb[16] = [{value:"", text:"Chọn Model"},{value:"622", text:"Aranos"},{value:"623", text:"Arcadia"},{value:"624", text:"Brougham"},{value:"625", text:"Chairman"},{value:"626", text:"Cielo"},{value:"627", text:"Damas"},{value:"628", text:"Espero"},{value:"629", text:"Evanda"},{value:"630", text:"Gentra"},{value:"1191", text:"GenTra SX"},{value:"631", text:"GentraX"},{value:"632", text:"Istana"},{value:"633", text:"Kalos"},{value:"634", text:"Karando"},{value:"635", text:"Labo"},{value:"1181", text:"Lacetti CDX"},{value:"1201", text:"Lacetti CDX 1.8"},{value:"636", text:"Lacetti SE"},{value:"637", text:"Lanos"},{value:"638", text:"Leganza"},{value:"1148", text:"Loại khác"},{value:"639", text:"Lublin"},{value:"640", text:"Magnus"},{value:"641", text:"Matiz"},{value:"642", text:"Musso"},{value:"643", text:"Nexia"},{value:"644", text:"Nubira"},{value:"645", text:"Plince"},{value:"646", text:"Polonez"},{value:"647", text:"Racer"},{value:"648", text:"Rexton"},{value:"649", text:"Rezzo"},{value:"650", text:"Tacuma"},{value:"651", text:"Tico"},{value:"652", text:"Winstorm"}];regiondb[89] = [{value:"", text:"Chọn Model"},{value:"432", text:"Yaris Hatchback"},{value:"433", text:"Yaris Sedan"}];regiondb[90] = [{value:"", text:"Chọn Model"},{value:"128", text:"Qashqai SE"}];regiondb[57] = [{value:"", text:"Chọn Model"},{value:"554", text:"11"},{value:"555", text:"19"},{value:"556", text:"21"},{value:"557", text:"25"},{value:"558", text:"4"},{value:"559", text:"9"},{value:"560", text:"Avantime"},{value:"561", text:"Clio"},{value:"562", text:"Espace"},{value:"563", text:"Express"},{value:"564", text:"Grand Espace"},{value:"565", text:"Kangoo"},{value:"566", text:"Laguna"},{value:"567", text:"Magnum"},{value:"568", text:"Master"},{value:"569", text:"Megane"},{value:"570", text:"Modus"},{value:"571", text:"Rapid"},{value:"572", text:"Safrane"},{value:"573", text:"Scenic"},{value:"574", text:"Sport Spider"},{value:"575", text:"Super 5"},{value:"576", text:"Symbol"},{value:"577", text:"Thalia"},{value:"578", text:"Trafic"},{value:"579", text:"Twingo"},{value:"580", text:"Vel Satic"}];regiondb[79] = [{value:"", text:"Chọn Model"},{value:"1161", text:"Xe cẩu"},{value:"1162", text:"Xe tải cẩu"},{value:"1163", text:"Xe téc"}]; function setCities(thanpho,quan,valuequan) { var newElem; var chooser = document.getElementById(thanpho); var where = (navigator.appName == "Microsoft Internet Explorer") ? -1 : null; var cityChooser = document.getElementById(quan); while (cityChooser.options.length) { cityChooser.remove(0); } var choice = chooser.options[chooser.selectedIndex].value; document.cookie = 'cha='+choice+';con=0'; var db = regiondb[choice]; if (choice != "") { if(choice ==0){ cityChooser.disabled = true; }else{ cityChooser.disabled = false; } for (var i = 0; i < db.length; i++) { newElem = document.createElement("option"); newElem.text = db[i].text; newElem.value = db[i].value; cityChooser.add(newElem, where); if(valuequan == db[i].value){ cityChooser.options[i].selected = true; document.cookie = 'cha='+choice+';con='+valuequan; } } } } function changenameoto(){ var choose1 = document.getElementById("oto_supplier"); var choose2 = document.getElementById("oto_model"); var choose3 = document.getElementById("oto_nam_sx"); var hangsx = choose1.options[choose1.selectedIndex].innerHTML; var doixe = choose2.options[choose2.selectedIndex].innerHTML; var namsx = choose3.options[choose3.selectedIndex].innerHTML; document.getElementById("oto_name").value = hangsx+ ' ' + doixe + ' ' + namsx; }