var dyn_carsOptionTree = [['7',[['A3','42'],['A4','43']]],['10',[['1 Series','882'],['5 Series','87'],['X3','1015']]],['16',[['DS3','2223']]],['205',[['Duster','2362']]],['25',[['124 Spider','2597'],['500','218'],['500X','2522'],['Doblo','225'],['Panda','228'],['Punto','229'],['Tipo','235']]],['26',[['Focus','253'],['Galaxy','255']]],['37',[['Compass','1161'],['Renegade','330']]],['51',[['Mazda6','410']]],['61',[['Interstar','1206'],['Juke','2162'],['Note','1091'],['NV200','2144']]],['63',[['Insignia','1405']]],['67',[['207','1144'],['508','2182']]],['72',[['Megane','619'],['Trafic','1167']]],['82',[['Korando','691'],['Kyron','1131'],['Musso','692'],['Rexton','693']]],['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 }