function myfaces_picklist_addAllToSelected(A,B,D){var C=document.getElementById(A);var E=document.getElementById(B);myfaces_picklist_moveAll(C,E,D);myfaces_picklist_updateHidden(E,D);}function myfaces_picklist_removeAllFromSelected(A,B,D){var C=document.getElementById(A);var E=document.getElementById(B);myfaces_picklist_moveAll(E,C,D);myfaces_picklist_updateHidden(E,D);}function myfaces_picklist_addToSelected(A,B,D){var C=document.getElementById(A);var E=document.getElementById(B);myfaces_picklist_move(C,E,D);myfaces_picklist_updateHidden(E,D);}function myfaces_picklist_removeFromSelected(A,B,D){var C=document.getElementById(A);var E=document.getElementById(B);myfaces_picklist_move(E,C,D);myfaces_picklist_updateHidden(E,D);}function myfaces_picklist_move(F,D,E){var B=F.selectedIndex;if(B<0){return ;}for(var C=F.options.length-1;C>=0;C--){if(F.options[C].selected){var A=D.options.length;D.options[A]=new Option(F.options[C].text);D.options[A].value=F.options[C].value;F.options[C]=null;}}}function myfaces_picklist_moveAll(E,C,D){for(var B=E.options.length-1;B>=0;B--){var A=C.options.length;C.options[A]=new Option(E.options[B].text);C.options[A].value=E.options[B].value;E.options[B]=null;}}function myfaces_picklist_updateHidden(E,D){var A=document.getElementById(D);var C=new Array(E.options.length);for(var B=0;B<E.options.length;B++){C[B]=E.options[B].value;}A.value=C.join();}