var dyn_carsOptionTree = [['10',[['5 Series','87']]],['16',[['Grand C4 Picasso','2204']]],['205',[['Duster','2362'],['Sandero','2363']]],['26',[['Fiesta','252'],['Focus','253']]],['34',[['i10','1301'],['i30','1286'],['i40','2191'],['Tucson','983']]],['67',[['208','2230'],['308','1241']]],['72',[['Clio','612'],['Fluence','2169'],['Kadjar','2538'],['Kangoo','617'],['Master','1104'],['Megane','619']]],['78',[['Leon','673'],['Toledo','676']]],['80',[['Citigo','2232'],['Octavia','682'],['Rapid','2364']]],['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 }