var dyn_carsOptionTree = [['3',[['Mito','1409']]],['7',[['A4','43'],['A6','45']]],['10',[['5 Series','87']]],['16',[['C4','909']]],['25',[['124 Spider','2597'],['500','218'],['500X','2522'],['Bravo','221'],['Doblo','225'],['Ducato','903'],['Fiorino','1363'],['Fullback','2603'],['Punto','229'],['Qubo','1410'],['Talento','2594'],['Tipo','235']]],['26',[['Focus','253']]],['34',[['ix20','2168']]],['37',[['Compass','1161'],['Renegade','330']]],['53',[['A Class','442']]],['57',[['Countryman','2188']]],['61',[['Note','1091'],['Qashqai +2','2129']]],['63',[['Astra','868'],['Corsa','871'],['Insignia','1405'],['Karl','2533'],['Meriva','873'],['Mokka','2371'],['Vectra','880'],['Zafira','541']]],['80',[['Octavia','682']]],['88',[['Yaris','758']]],['93',[['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 }