var dyn_carsOptionTree = [['116',[['APACHE','1570']]],['123',[['FAMILY','1637']]],['127',[['RIVIERA','1695']]],['136',[['FB','1740']]],['164',[['ROADSTAR','1917']]],['166',[['GLEN','1923'],['LAGAN','1924']]],['180',[['KATAMARANO','2488']]]] 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 }