var dyn_carsOptionTree = [['10',[['1 Series','882'],['3 Series','86'],['4 Series','2375'],['X5','98']]],['14',[['Aveo','1112']]],['16',[['Grand C4 Picasso','2204'],['Relay','1128'],['Xsara Picasso','151']]],['25',[['500','218'],['Doblo','225'],['Ducato','903'],['Scudo','1132'],['Stilo','233']]],['26',[['Fiesta','252'],['Focus','253'],['Mondeo','259'],['Transit','904']]],['32',[['Civic','282'],['Jazz','289'],['Stream','297']]],['35',[['D-MAX','898'],['NNR','2164']]],['39',[['Ceed','1126'],['Picanto','1118']]],['196',[['V80','2523'],['V80','2664']]],['44',[['IS','368']]],['51',[['Mazda2','409'],['Mazda6','410']]],['53',[['E Class','448']]],['57',[['Cooper','475']]],['58',[['Canter','1170']]],['61',[['Micra','521'],['Note','1091'],['Pulsar','526'],['Qashqai','1145']]],['63',[['Antara','1254'],['Corsa','871'],['Insignia','1405'],['Vectra','880'],['Zafira','541']]],['67',[['206','550'],['308','1241'],['508','2182'],['Partner','1222']]],['72',[['Fluence','2169'],['Megane','619']]],['78',[['Mii','2231']]],['80',[['Citigo','2232'],['Octavia','682']]],['88',[['Avensis','726'],['Camry','727'],['GT86','2358'],['Hiace','736'],['Prius','747']]],['93',[['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 }