var dyn_carsOptionTree = [['7',[['A6','45']]],['10',[['3 Series','86'],['5 Series','87']]],['205',[['Duster','2362'],['Sandero','2363'],['Sandero Stepway','2506']]],['34',[['i30','1286']]],['36',[['F-Pace','2565'],['XE','2528'],['XF','1390']]],['39',[['Rio','339']]],['43',[['Discovery','361'],['Range Rover Evoque','2226']]],['53',[['C Class','444']]],['61',[['Note','1091'],['Qashqai','1145']]],['63',[['Astra','868'],['Insignia','1405']]],['72',[['Captur','2400'],['Clio','612'],['Grand Megane','2189'],['Grand Scenic','1133'],['Kadjar','2538'],['Koleos','1360'],['Megane','619'],['Trafic','1167'],['Twizy','2511'],['Zoe','2384']]],['80',[['Superb','683']]],['88',[['Rav4','748']]],['93',[['Golf','812'],['Passat','817']]],['94',[['S40','846']]]] 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 }