var dyn_carsOptionTree = [['7',[['A3','42'],['A6','45']]],['10',[['5 Series','87']]],['25',[['124 Spider','2597'],['500','218'],['500l','2397'],['500X','2522'],['Bravo','221'],['Doblo','225'],['Ducato','903'],['Fiorino','1363'],['Fullback','2603'],['Punto','229'],['Talento','2594'],['Tipo','235']]],['32',[['Fit','1448']]],['34',[['ix20','2168']]],['37',[['Compass','1161'],['Renegade','330']]],['53',[['E Class','448']]],['57',[['Countryman','2188'],['Hatch','2414']]],['61',[['Juke','2162']]],['63',[['Astra','868'],['Corsa','871'],['Insignia','1405'],['Karl','2533'],['Meriva','873'],['Mokka','2371']]],['78',[['Ibiza','672'],['Mii','2231']]],['93',[['Golf','812'],['Passat','817']]]] 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 }