var dyn_carsOptionTree = [['10',[['3 Series','86'],['4 Series','2375'],['X5','98']]],['14',[['Aveo','1112']]],['16',[['Grand C4 Picasso','2204']]],['26',[['Fiesta','252'],['Focus','253'],['Mondeo','259'],['Transit','904']]],['32',[['Civic','282'],['Insight','287'],['Stream','297']]],['34',[['i40','2191']]],['35',[['D-MAX','898'],['NNR','2164']]],['39',[['Ceed','1126']]],['196',[['V80','2523']]],['44',[['IS','368']]],['51',[['Mazda2','409'],['Mazda6','410']]],['53',[['CLA Class','2378'],['E Class','448']]],['57',[['Cooper','475']]],['58',[['Canter','1170']]],['61',[['Almera','512'],['Micra','521'],['Note','1091']]],['63',[['Antara','1254'],['Astra','868'],['Insignia','1405'],['Vectra','880'],['Zafira','541']]],['67',[['207','1144'],['308','1241'],['Partner','1222']]],['72',[['Fluence','2169'],['Megane','619']]],['78',[['Mii','2231']]],['80',[['Citigo','2232'],['Octavia','682']]],['85',[['Swift','713']]],['88',[['Avensis','726'],['Prius','747'],['Yaris','758']]],['93',[['Golf','812'],['Passat','817'],['Polo','819'],['up!','2233']]]] 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 }