var dyn_carsOptionTree = [['7',[['Q5','1419']]],['26',[['Ecosport','2377'],['Fiesta','252'],['Focus','253'],['Transit','904']]],['34',[['i30','1286'],['ix20','2168'],['Tucson','983']]],['39',[['Carens','334'],['Ceed','1126'],['Magentis','336'],['Niro','2595'],['Optima','2225'],['Picanto','1118'],['pro_ceed','1306'],['Rio','339'],['Sorento','342'],['Sportage','343'],['Stonic','2643'],['Venga','2135']]],['61',[['Qashqai','1145']]],['63',[['Astra','868'],['Mokka','2371']]],['67',[['Partner','1222']]],['72',[['Fluence','2169']]],['88',[['Avensis','726']]],['93',[['Jetta','813'],['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 }