var dyn_carsOptionTree = [['10',[['5 Series','87']]],['16',[['Berlingo','136']]],['205',[['Sandero','2363']]],['26',[['Fiesta','252'],['Focus','253'],['Mondeo','259'],['Transit Connect','1227']]],['34',[['i10','1301'],['i20','1412'],['i30','1286'],['i40','2191'],['Santa Fe','309']]],['63',[['Astra','868']]],['67',[['208','2230'],['308','1241']]],['72',[['Captur','2400'],['Clio','612'],['Fluence','2169'],['Kadjar','2538']]],['78',[['Ibiza','672'],['Leon','673'],['Toledo','676']]],['80',[['Citigo','2232'],['Octavia','682'],['Rapid','2364']]]] 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 }