var dyn_carsOptionTree = [['26',[['C-Max','1218'],['Focus','253']]],['34',[['Montana','1369'],['Santa Fe','309'],['Tucson','983']]],['39',[['Carens','334'],['Ceed','1126'],['Cerato','1110'],['Optima','2225'],['Picanto','1118'],['pro_ceed','1306'],['Rio','339'],['Sorento','342'],['Soul','1420'],['Sportage','343'],['Stonic','2643'],['Venga','2135']]],['57',[['Cooper','475']]],['58',[['ASX','2160'],['Lancer','488']]],['61',[['Qashqai','1145']]],['63',[['Adam','2381']]],['72',[['Captur','2400'],['Fluence','2169']]],['78',[['Leon','673']]],['80',[['Superb','683']]],['83',[['Forester','696']]],['92',[['Insignia','1444']]],['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 }