var dyn_carsOptionTree = [['3',[['Giulia','2258']]],['7',[['A1','2163'],['A4','43'],['A5','1244'],['A6','45']]],['10',[['3 Series','86']]],['25',[['124 Spider','2597'],['500','218'],['500X','2522'],['Doblo','225'],['Ducato','903'],['Fiorino','1363'],['Fullback','2603'],['Punto','229'],['Qubo','1410'],['Talento','2594'],['Tipo','235']]],['26',[['Focus','253']]],['32',[['Fit','1448'],['Stream','297']]],['34',[['ix35','2138']]],['37',[['Grand Cherokee','329'],['Renegade','330']]],['57',[['Hatch','2414']]],['58',[['Colt','482']]],['63',[['Astra','868'],['Corsa','871'],['Insignia','1405'],['Karl','2533'],['Mokka','2371'],['Zafira','541']]],['67',[['Partner','1222']]],['72',[['Clio','612']]],['80',[['Yeti','2115']]],['88',[['Corolla','730']]],['93',[['Caddy','964'],['Golf','812']]]] 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 }