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'],['Kuga','1391'],['Transit','904'],['Transit Connect','1227']]],['32',[['Civic','282'],['CR-Z','2180'],['Insight','287']]],['34',[['i10','1301'],['i20','1412'],['i30','1286'],['ix35','2138']]],['35',[['D-MAX','898'],['NNR','2164']]],['39',[['Ceed','1126']]],['196',[['V80','2523']]],['44',[['IS','368']]],['51',[['CX-5','2227'],['Mazda2','409'],['Mazda3','925'],['Mazda6','410']]],['53',[['CLS Class','2174']]],['61',[['Qashqai','1145']]],['63',[['Astra','868']]],['67',[['207','1144'],['208','2230'],['308','1241']]],['78',[['Ibiza','672']]],['82',[['Kyron','1131']]],['85',[['Alto','704'],['Swift','713']]],['88',[['Auris','1154'],['Yaris','758']]],['92',[['Astra','785']]],['93',[['Caddy','964'],['Golf','812'],['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 }