var dyn_carsOptionTree = [['113',[['DUETTO','1537']]],['125',[['11','1665'],['FLASH','1677'],['WELCOME 26','2491']]],['132',[['GLOBETROTTER ADVANTAGE','1721']]],['140',[['RIMOR KATA MARANO','1821'],['TRANSIT','1824']]],['150',[['600','1852'],['TOSKANA','1856']]],['154',[['B544','1868'],['CAMP','1871'],['STARLINE','1875']]],['156',[['Z550','1890']]],['158',[['TRAVELLER 608','1892']]],['166',[['LAGAN','1924']]],['176',[['GALAXY','1985']]],['180',[['KATAMARANO','2488'],['SAILER','2015']]],['181',[['AUTOROLLER','2017'],['GRANDUCA','2018']]],['185',[['ROYALE','2045'],['SUNDANCE','2046']]],['191',[['650','2079']]],['193',[['CAMPER VAN','2096']]]] 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 }