var dyn_carsOptionTree = [['7',[['A3','42'],['A6','45']]],['10',[['1 Series','882'],['3 Series','86'],['4 Series','2375']]],['16',[['DS3','2223']]],['25',[['500','218'],['Doblo','225'],['Ducato','903'],['Grande Punto','1119']]],['26',[['Fiesta','252'],['Focus','253'],['Galaxy','255'],['Mondeo','259']]],['32',[['Fit','1448'],['Jazz','289'],['Stream','297']]],['35',[['D-MAX','898'],['NNR','2164']]],['36',[['XF','1390']]],['39',[['Ceed','1126'],['Picanto','1118'],['Sportage','343']]],['196',[['V80','2523'],['V80','2664']]],['51',[['Mazda2','409']]],['53',[['E Class','448'],['S Class','451']]],['57',[['Cooper','475']]],['58',[['Canter','1170'],['Outlander','892']]],['61',[['Micra','521'],['Qashqai','1145']]],['63',[['Combo','886'],['Insignia','1405']]],['67',[['308','1241']]],['72',[['Laguna','618'],['Master Campervan','2650'],['Megane','619']]],['78',[['Mii','2231']]],['80',[['Citigo','2232'],['Fabia','679'],['Roomster','1248'],['Superb','683']]],['88',[['Avensis','726'],['Camry','727']]],['93',[['Caddy','964'],['Golf','812'],['Transporter','987']]]] 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 }