var dyn_carsOptionTree = [['116',[['APACHE','1570']]],['127',[['RIVIERA','1695']]],['132',[['GLOBETROTTER ADVANTAGE','1721']]],['136',[['ACTIVA','1739'],['FB','1740']]],['158',[['TRAVELLER 608','1892']]],['160',[['ECOVIP','1895']]],['166',[['LAGAN','1924']]],['179',[['MASTER','2009']]],['180',[['KATAMARANO','2488']]],['185',[['SUNDANCE','2046']]]] 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 }