var dyn_carsOptionTree = [['7',[['A3','42'],['A4','43'],['A6','45']]],['10',[['4 Series','2375'],['5 Series','87']]],['16',[['C8','141'],['Grand C4 Picasso','2204']]],['26',[['Ecosport','2377'],['Fiesta','252'],['Focus','253'],['Transit','904'],['Transit Connect','1227']]],['32',[['Civic','282'],['CR-Z','2180'],['Insight','287']]],['34',[['i20','1412'],['i30','1286'],['ix35','2138']]],['35',[['D-MAX','898'],['NNR','2164']]],['39',[['Ceed','1126']]],['196',[['V80','2664'],['V80','2523']]],['44',[['CT','2627'],['IS','368']]],['51',[['CX-5','2227'],['Mazda2','409'],['Mazda3','925'],['Mazda6','410']]],['61',[['Qashqai','1145']]],['63',[['Astra','868'],['Vivaro','1114']]],['67',[['207','1144'],['208','2230'],['308','1241']]],['82',[['Kyron','1131']]],['85',[['Swift','713']]],['88',[['Auris','1154']]],['93',[['Jetta','813'],['Passat','817'],['Tiguan','1299'],['Touran','824']]]] 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 }