SelectBox.add_to_cache(to, { value: option.value, text: option.text, displayed: 1 }); SelectBox.delete_from_cache(from, option.value); 
if (SelectBox.cache_contains(from, option.value)) { SelectBox.add_to_cache(to, {value: option.value, text: option.text, displayed: 1}); SelectBox.delete_from_cache(from, option.value); } 
    move_all: function(from, to) {        var from_box = document.getElementById(from);        var to_box = document.getElementById(to);        var option;        for (var i = 0; (option = from_box.options[i]); i++) {            SelectBox.add_to_cache(to, { value: option.value, text: option.text, displayed: 1 });            SelectBox.delete_from_cache(from, option.value);        }        SelectBox.redisplay(from);        SelectBox.redisplay(to);    },
1086	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1086/70740d6eca8c4b439a95d17ef41e2229b2b8f399/SelectBox.js/buggy/django/contrib/admin/media/js/SelectBox.js