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};