var dyn_carsOptionTree = [['7',[['A3','42']]],['16',[['DS3','2223']]],['25',[['124 Spider','2597'],['500','218'],['500l','2397'],['500X','2522'],['Doblo','225'],['Fullback','2603'],['Panda','228'],['Punto','229'],['Tipo','235']]],['26',[['Focus','253'],['Kuga','1391'],['Mondeo','259']]],['37',[['Compass','1161'],['Renegade','330']]],['51',[['Mazda6','410']]],['53',[['180','421']]],['57',[['Cooper','475'],['One','477']]],['61',[['NV200','2144']]],['67',[['308','1241']]],['72',[['Captur','2400'],['Fluence','2169']]],['80',[['Fabia','679']]],['82',[['Rexton','693'],['Rodius','1113']]],['93',[['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 }