var dyn_carsOptionTree = [['7',[['A3','42']]],['14',[['Captiva','1204']]],['26',[['C-Max','1218'],['Fiesta','252'],['Focus','253'],['Mondeo','259']]],['34',[['ix20','2168'],['ix35','2138'],['Montana','1369'],['Santa Fe','309'],['Tucson','983']]],['39',[['Carens','334'],['Ceed','1126'],['Cerato','1110'],['Optima','2225'],['pro_ceed','1306'],['Rio','339'],['Sorento','342'],['Sportage','343'],['Stonic','2643'],['Venga','2135']]],['57',[['Cooper','475']]],['58',[['ASX','2160']]],['61',[['Note','1091'],['Qashqai','1145']]],['63',[['Astra','868'],['Insignia','1405'],['Mokka','2371']]],['72',[['Captur','2400'],['Fluence','2169'],['Megane','619']]],['78',[['Ibiza','672']]],['83',[['Forester','696']]],['88',[['Auris','1154']]],['92',[['Insignia','1444']]],['93',[['Golf','812'],['Jetta','813'],['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 }