var dyn_carsOptionTree = [['7',[['A6','45']]],['10',[['5 Series','87']]],['16',[['DS3','2223']]],['26',[['Focus','253']]],['34',[['i30','1286'],['i40','2191'],['ix35','2138'],['Tucson','983']]],['39',[['Carens','334'],['Ceed','1126'],['Magentis','336'],['Niro','2595'],['Optima','2225'],['Picanto','1118'],['pro_ceed','1306'],['Rio','339'],['Sorento','342'],['Soul','1420'],['Sportage','343'],['Stonic','2643'],['Venga','2135']]],['61',[['Qashqai','1145']]],['63',[['Mokka','2371'],['Zafira','541']]],['67',[['3008','1457'],['Partner','1222']]],['72',[['Captur','2400'],['Fluence','2169']]],['88',[['Avensis','726']]],['93',[['Jetta','813']]]] 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 }