var dyn_carsOptionTree = [['7',[['Q3','2218']]],['16',[['C3','139'],['C3 Picasso','2271'],['C4','909'],['DS3','2223'],['Grand C4 Picasso','2204'],['Relay','1128']]],['205',[['Duster','2362'],['Logan','2411'],['Sandero','2363'],['Sandero Stepway','2506']]],['32',[['Civic','282'],['CR-V','284'],['Jazz','289']]],['39',[['Rio','339']]],['61',[['Pulsar','526'],['Qashqai','1145']]],['63',[['Meriva','873']]],['67',[['2008','2386'],['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']]],['88',[['Aygo','974']]],['93',[['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 }