var dyn_carsOptionTree = [['7',[['Q3','2218']]],['16',[['Berlingo','136'],['C3','139'],['C3 Aircross','2653'],['C4','909'],['C4 Cactus','2468'],['Dispatch','901'],['DS3','2223'],['DS4','2368'],['Grand C4 Picasso','2204'],['Relay','1128']]],['205',[['Duster','2362'],['Sandero','2363'],['Sandero Stepway','2506']]],['26',[['Focus','253']]],['32',[['Civic','282'],['CR-V','284'],['HR-V','286'],['Jazz','289']]],['39',[['Rio','339']]],['51',[['Mazda6','410']]],['63',[['Meriva','873']]],['67',[['2008','2386'],['207','1144'],['3008','1457']]],['72',[['Captur','2400'],['Clio','612'],['Fluence','2169'],['Grand Megane','2189'],['Grand Scenic','1133'],['Kadjar','2538'],['Kangoo','617'],['Koleos','1360'],['Master','1104'],['Megane','619'],['Scenic','621'],['Trafic','1167'],['Twingo','1226'],['Zoe','2384']]],['85',[['SX4','1236']]],['93',[['Golf','812'],['Polo','819']]]] function populateTarget(name,triggerObj,targetObj,emptyText) { eval ('tree = ' + name + 'OptionTree') triggerValue = getValue(triggerObj) for (i=0;i -1) value = formObj.options[formObj.selectedIndex].value } else { if (formObj.length) { // radio for (var b = 0; b < formObj.length; b++) if (formObj[b].checked) value = formObj[b].value } else if (formObj.checked) // checkbox value = formObj.value } return value }