Horde_Form_Assign={};Horde_Form_Assign.deselectHeaders=function(c,a,b){if(b){document.forms[c].elements[a+"__right"][0].selected=false}else{document.forms[c].elements[a+"__left"][0].selected=false}};Horde_Form_Assign.move=function(d,a,f){var e=document.forms[d].elements[a+"__left"];var c=document.forms[d].elements[a+"__right"];var h,g;if(f){h=c;g=e}else{h=e;g=c}for(var b=0;b<h.length;++b){if(h[b].selected){g[g.length]=new Option(h[b].text,h[b].value);g[g.length-1].ondblclick=function(){Horde_Form_Assign.move(d,a,1-f)};h[b]=null;--b}}this.setField(d,a)};Horde_Form_Assign.setField=function(e,b){var g=document.forms[e].elements[b+"__left"];var d=document.forms[e].elements[b+"__right"];var a="";var f=false;for(var c=0;c<g.options.length;++c){if(c==0&&!g[c].value){continue}a+=g.options[c].value+"\t";f=true}if(f){a=a.substring(0,a.length-1)}a+="\t\t";f=false;for(c=0;c<d.options.length;++c){if(c==0&&!d[c].value){continue}a+=d.options[c].value+"\t";f=true}if(f){a=a.substring(0,a.length-1)}document.forms[e].elements[b+"__values"].value=a};