var dyn_carsOptionTree = [['3',[['Giulia','2258'],['Stelvio','2637']]],['14',[['Cruze','2183']]],['25',[['124 Spider','2597'],['500','218'],['500l','2397'],['500X','2522'],['Doblo','225'],['Ducato','903'],['Fullback','2603'],['Punto','229'],['Tipo','235']]],['26',[['Focus','253'],['Galaxy','255'],['Transit Custom','2505']]],['34',[['i30','1286']]],['37',[['Compass','1161'],['Renegade','330']]],['51',[['Mazda6','410']]],['53',[['C Class','444']]],['63',[['Astra','868'],['Corsa','871']]],['67',[['207','1144'],['5008','2137']]],['72',[['Fluence','2169']]],['80',[['Octavia','682']]],['82',[['Rodius','1113']]],['85',[['SX4','1236']]]] 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 }