rem: if (elem.nodeName == 'SELECT') { 
add: if (elem) { if (elem.nodeName == 'SELECT') { var o = new Option(newRepr, newId); elem.options[elem.options.length] = o elem.selectedIndex = elem.length - 1; } else if (elem.nodeName == 'INPUT') { elem.value = newId; } } else { var toId = name + "_to"; elem = document.getElementById(toId); 
context: function dismissAddAnotherPopup(win, newId, newRepr) {    var name = win.name.replace(/___/g, '.')    var elem = document.getElementById(name);    if (elem.nodeName == 'SELECT') {        var o = new Option(newRepr, newId);        elem.options[elem.options.length] = o        elem.selectedIndex = elem.length - 1;    } else if (elem.nodeName == 'INPUT') {        elem.value = newId;    }    win.close();}
meta: 3560	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3560/e0d6b7feed22ec2878b7072f175f4da630f6ba46/RelatedObjectLookups.js/clean/django/contrib/admin/media/js/admin/RelatedObjectLookups.js