var dyn_carsOptionTree = [['16',[['C4 Picasso','1375'],['Grand C4 Picasso','2204']]],['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'],['Tucson','983']]],['61',[['Qashqai','1145']]],['63',[['Astra','868']]],['67',[['208','2230']]],['72',[['Captur','2400'],['Clio','612'],['Fluence','2169'],['Kadjar','2538'],['Kangoo','617'],['Master','1104'],['Megane','619']]],['78',[['Ibiza','672'],['Leon','673'],['Toledo','676']]],['80',[['Citigo','2232'],['Octavia','682']]],['88',[['Corolla','730']]],['93',[['Jetta','813'],['Passat','817']]]] 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 }