rem: quickElement('img', selector_filter, '', 'src', admin_media_prefix + 'img/admin/selector-add.gif', 'alt', 'Add'); 
add: quickElement('img', selector_filter, '', 'src', admin_media_prefix + (is_stacked ? 'img/admin/selector_stacked-add.gif':'img/admin/selector-add.gif'), 'alt', 'Add'); 
context:     init: function(field_id, field_name, is_stacked, admin_media_prefix) {        var from_box = document.getElementById(field_id);        from_box.id += '_from'; // change its ID        from_box.className = 'filtered';        // Remove <p class="info">, because it just gets in the way.        var ps = from_box.parentNode.getElementsByTagName('p');        for (var i=0; i<ps.length; i++) {            from_box.parentNode.removeChild(ps[i]);        }        // <div class="selector"> or <div class="selector stacked">        var selector_div = quickElement('div', from_box.parentNode);        selector_div.className = is_stacked ? 'selector stacked' : 'selector';        // <div class="selector-available">        var selector_available = quickElement('div', selector_div, '');        selector_available.className = 'selector-available';        quickElement('h2', selector_available, interpolate(gettext('Available %s'), [field_name]));        var filter_p = quickElement('p', selector_available, '');        filter_p.className = 'selector-filter';        quickElement('img', filter_p, '', 'src', admin_media_prefix + 'img/admin/selector-search.gif');        filter_p.appendChild(document.createTextNode(' '));        var filter_input = quickElement('input', filter_p, '', 'type', 'text');        filter_input.id = field_id + '_input';        selector_available.appendChild(from_box);        var choose_all = quickElement('a', selector_available, gettext('Choose all'), 'href', 'javascript: (function(){ SelectBox.move_all("' + field_id + '_from", "' + field_id + '_to"); })()');        choose_all.className = 'selector-chooseall';        // <ul class="selector-chooser">        var selector_chooser = quickElement('ul', selector_div, '');        selector_chooser.className = 'selector-chooser';        var add_link = quickElement('a', quickElement('li', selector_chooser, ''), gettext('Add'), 'href', 'javascript: (function(){ SelectBox.move("' + field_id + '_from","' + field_id + '_to");})()');        add_link.className = 'selector-add';        var remove_link = quickElement('a', quickElement('li', selector_chooser, ''), gettext('Remove'), 'href', 'javascript: (function(){ SelectBox.move("' + field_id + '_to","' + field_id + '_from");})()');        remove_link.className = 'selector-remove';        // <div class="selector-chosen">        var selector_chosen = quickElement('div', selector_div, '');        selector_chosen.className = 'selector-chosen';        quickElement('h2', selector_chosen, interpolate(gettext('Chosen %s'), [field_name]));        var selector_filter = quickElement('p', selector_chosen, gettext('Select your choice(s) and click '));        selector_filter.className = 'selector-filter';        quickElement('img', selector_filter, '', 'src', admin_media_prefix + 'img/admin/selector-add.gif', 'alt', 'Add');        var to_box = quickElement('select', selector_chosen, '', 'id', field_id + '_to', 'multiple', 'multiple', 'size', from_box.size, 'name', from_box.getAttribute('name'));        to_box.className = 'filtered';        var clear_all = quickElement('a', selector_chosen, gettext('Clear all'), 'href', 'javascript: (function() { SelectBox.move_all("' + field_id + '_to", "' + field_id + '_from");})()');        clear_all.className = 'selector-clearall';        from_box.setAttribute('name', from_box.getAttribute('name') + '_old');        // Set up the JavaScript event handlers for the select box filter interface        addEvent(filter_input, 'keyup', function(e) { SelectFilter.filter_key_up(e, field_id); });        addEvent(filter_input, 'keydown', function(e) { SelectFilter.filter_key_down(e, field_id); });        addEvent(from_box, 'dblclick', function() { SelectBox.move(field_id + '_from', field_id + '_to'); });        addEvent(to_box, 'dblclick', function() { SelectBox.move(field_id + '_to', field_id + '_from'); });        addEvent(findForm(from_box), 'submit', function() { SelectBox.select_all(field_id + '_to'); });        SelectBox.init(field_id + '_from');        SelectBox.init(field_id + '_to');        // Move selected from_box options to to_box        SelectBox.move(field_id + '_from', field_id + '_to');    },
meta: 779	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/779/5c3905cf48813d63764f3049e79aa2d668b53be1/SelectFilter2.js/buggy/django/contrib/admin/media/js/SelectFilter2.js