var dyn_carsOptionTree = [['16',[['Grand C4 Picasso','2204']]],['25',[['500','218']]],['26',[['Fiesta','252'],['Focus','253'],['Transit Connect','1227']]],['34',[['i10','1301'],['i20','1412'],['i30','1286'],['i40','2191'],['Santa Fe','309']]],['63',[['Astra','868']]],['67',[['207','1144'],['208','2230']]],['72',[['Fluence','2169'],['Kadjar','2538'],['Kangoo','617']]],['78',[['Ibiza','672'],['Leon','673']]],['80',[['Citigo','2232'],['Octavia','682']]],['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 }