(function($){$.jce.Users={select:function(){var u=[],v,s,o,h;s=window.parent.document.getElementById('users').options;$('input:checkbox:checked').each(function(){v=$(this).val();if(u=document.getElementById('username_'+v)){h=$.trim(u.innerHTML);if($.jce.Users.check(s,v)){return}o=new Option(h,v);s[s.length]=o}})},check:function(s,v){var a=[];$.each(s,function(i,n){a.push(n.value)});return a.indexOf(v)!=-1}};window.selectUsers=$.jce.Users.select})(jQuery);