var dyn_carsOptionTree = [['16',[['Berlingo','136'],['C5','140'],['Grand C4 Picasso','2204']]],['26',[['Focus','253'],['S-Max','1189']]],['35',[['D-MAX','898']]],['39',[['Ceed','1126'],['Rio','339'],['Sedona','340'],['Soul','1420'],['Sportage','343']]],['43',[['Freelander','362']]],['51',[['Mazda3','925']]],['57',[['One','477']]],['61',[['Qashqai','1145']]],['63',[['Combo','886']]],['67',[['2008','2386'],['207','1144'],['208','2230'],['3008','1457'],['307','554'],['308','1241'],['407','977'],['Expert','1201'],['Partner','1222']]],['78',[['Cordoba','671']]],['85',[['SX4','1236']]],['88',[['Auris','1154'],['Avensis','726']]]] 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 }