var dyn_carsOptionTree = [['7',[['A3','42']]],['10',[['5 Series','87']]],['16',[['C5','140']]],['26',[['Focus','253']]],['34',[['i40','2191'],['ix35','2138'],['Santa Fe','309'],['Sonata','310'],['Tucson','983']]],['39',[['Carens','334'],['Ceed','1126'],['Optima','2225'],['Picanto','1118'],['pro_ceed','1306'],['Rio','339'],['Sorento','342'],['Soul','1420'],['Sportage','343']]],['61',[['Qashqai','1145']]],['63',[['Astra','868'],['Corsa','871'],['Mokka','2371']]],['67',[['207','1144'],['3008','1457']]],['72',[['Captur','2400'],['Fluence','2169']]],['80',[['Octavia','682']]],['83',[['Forester','696']]],['88',[['Avensis','726'],['Rav4','748']]],['93',[['Jetta','813']]]] 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 }