var dyn_carsOptionTree = [['16',[['Berlingo','136'],['C1','906'],['C3','139'],['C3 Picasso','2271'],['C4 Picasso','1375'],['DS3','2223'],['Grand C4 Picasso','2204']]],['205',[['Duster','2362'],['Logan','2411'],['Sandero Stepway','2506']]],['25',[['Panda','228']]],['32',[['CR-V','284'],['Jazz','289']]],['34',[['i10','1301']]],['39',[['Rio','339']]],['63',[['Meriva','873']]],['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',[['Yaris','758']]],['93',[['Golf','812'],['Golf SV','2470'],['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 }