var dyn_carsOptionTree = [['16',[['Berlingo','136'],['Grand C4 Picasso','2204']]],['25',[['Grande Punto','1119'],['Scudo','1132']]],['26',[['Focus','253'],['Kuga','1391'],['S-Max','1189'],['Transit','904']]],['34',[['Tucson','983']]],['35',[['D-MAX','898']]],['39',[['Ceed','1126'],['Rio','339'],['Sedona','340'],['Soul','1420'],['Sportage','343'],['Venga','2135']]],['51',[['BT-50','1359'],['Mazda3','925']]],['57',[['One','477']]],['58',[['Pajero','490']]],['63',[['Astra','868'],['Combo','886']]],['67',[['2008','2386'],['207','1144'],['3008','1457'],['307','554'],['308','1241'],['407','977'],['5008','2137'],['508','2182'],['Expert','1201']]],['78',[['Alhambra','669'],['Cordoba','671']]],['80',[['Fabia','679']]],['85',[['SX4','1236']]],['88',[['Auris','1154'],['Landcruiser','738']]],['93',[['Golf','812']]]] 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 }