var dyn_carsOptionTree = [['7',[['A4','43'],['A6','45']]],['10',[['1 Series','882'],['4 Series','2375'],['X5','98']]],['16',[['Berlingo','136'],['DS3','2223'],['Grand C4 Picasso','2204'],['Relay','1128'],['Xsara Picasso','151']]],['25',[['500','218'],['Doblo','225'],['Stilo','233']]],['26',[['Fiesta','252'],['Focus','253'],['Mondeo','259']]],['32',[['Fit','1448'],['Jazz','289'],['Stream','297']]],['35',[['D-MAX','898'],['NNR','2164']]],['39',[['Ceed','1126'],['Picanto','1118']]],['196',[['V80','2664'],['V80','2523']]],['44',[['CT','2627'],['IS','368']]],['51',[['Mazda2','409'],['Mazda6','410']]],['53',[['E Class','448']]],['57',[['Cooper','475']]],['58',[['Canter','1170'],['Outlander','892']]],['61',[['Micra','521'],['Qashqai','1145']]],['63',[['Astra','868'],['Insignia','1405'],['Vectra','880'],['Zafira','541']]],['67',[['207','1144'],['308','1241']]],['72',[['Clio','612'],['Fluence','2169'],['Megane','619']]],['78',[['Mii','2231']]],['80',[['Citigo','2232'],['Fabia','679'],['Octavia','682'],['Roomster','1248']]],['88',[['Camry','727'],['GT86','2358'],['Prius','747']]],['93',[['Caddy','964'],['Golf','812'],['Polo','819']]]] 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 }