var _shuttle_no_name="You must supply the shuttle's name to create a proxy"; var _shuttle_no_form_name_provided="A form name must be provided"; var _shuttle_no_form_available="This shuttle is not in a form"; function ShuttleProxy( a0, a1 ) { if(a0==(void 0)) { alert(_shuttle_no_name); this.shuttleName=""; this.formName=""; return; } this.shuttleName=a0; this.formName=""; if(a1==(void 0)) { var a2=document.forms.length; var a3=a0+":leading"; for(var a4=0;a4a3) return; for(var a4=a1;a4=a3.length||a3[a4]!=a2[a4]) return a1[a2[a4]]; } return""; } function _getSelectedArray ( a0 ) { var a1=window[a0.replace(':','_')+'_sel']; return a1; } function _setSelected ( a0, a1 ) { var a2=_getSelectedArray(a0); if(a2!=(void 0)) { var a3=a2.length; _remove(a2,0,a3); for(var a4=0;a4=a2;a4--) { a0[a4+1]=a0[a4]; } a0[a2]=a1; a0.length=a3+1; } } function _deleteDescAtIndex ( a0, a1 ) { if(a0!=(void 0)) _remove(a0,a1,1); } function _deleteDescAtIndexes ( a0, a1 ) { if(a0!=(void 0)) { for(var a2=a1.length-1;a2>=0;a2--) { _remove(a0,a1[a2],1); } } } function _clearDescAreas( a0, a1, a2 ) { var a3=document.forms[a0].elements[a1+':desc']; var a4=document.forms[a0].elements[a2+':desc']; if(a3!=void(0)) { a3.value=""; } if(a4!=void(0)) { a4.value=""; } } function _moveItems( a0, a1, a2 ) { if(a2==(void 0)) { a2=_findFormNameContaining(a0); } if(a2.length==0) { alert(shuttle_no_form_available); return; } var a3=document.forms[a2].elements[a0]; var a4=document.forms[a2].elements[a1]; if(a3==(void 0)||a4==(void 0)) return; var a5=_getSelectedIndexes(a2,a0); if(a5.length==0) { if(_shuttle_no_items_selected.length>0) alert(_shuttle_no_items_selected); return; } var a6=_getDescArray(a0); var a7=_getDescArray(a1); a4.selectedIndex=-1; var a8=a4.length-1; var a9=a4.options[a8].text; for(var a10=0;a10=0;a10--) { if(a6!=(void 0)) _remove(a6,a5[a10],1); a3.options[a5[a10]]=null; } a3.selectedIndex=-1; _clearDescAreas(a2,a0); _displayDesc(a1,a2); _makeList(a2,a0); _makeList(a2,a1); _navDirty=true; } function _moveAllItems( a0, a1, a2 ) { if(a2==(void 0)) { a2=_findFormNameContaining(a0); } var a3=document.forms[a2].elements[a0]; var a4=document.forms[a2].elements[a1]; var a5= a4.options[document.forms[a2].elements[a1].length-1].text var a6=a4.length-1; var a7=_getDescArray(a0); var a8=_getDescArray(a1); if(a3.length>1) { var a9=a3.length for(var a10=0;a100) { alert(_shuttle_no_items); } } function _orderList( a0, a1, a2 ) { if(a2==(void 0)) { a2=_findFormNameContaining(a1); } var a3=document.forms[a2].elements[a1]; var a4=_getSelectedIndexes(a2,a1); if(a4.length==0) { if(_shuttle_no_items_selected.length>0) alert(_shuttle_no_items_selected); return; } var a5=_getDescArray(a1); var a6=a4.length-1; while(a6>=0) { var a7=a4[a6]; var a8=a7; var a9=a6; var a10=0; var a11=0; if(_agent.isNav||_agent.isGecko) { a10=a3.scrollLeft; a11=a3.scrollTop; } while((a9>0)&&((a4[a9]- a4[a9-1])==1)) { a9--; a8--; } if(a0==0) { if(a8!=0) { var a12=a3.options[a8-1].text; var a13=a3.options[a8-1].value; if(a5!=(void 0)) var a14=a5[a8-1]; for(var a15=a8;a15<=a7;a15++) { a3.options[a15-1].text=a3.options[a15].text; a3.options[a15-1].value=a3.options[a15].value; a3.options[a15-1].selected=true; if(a5!=(void 0)) a5[a15-1]=a5[a15]; } a3.options[a7].text=a12; a3.options[a7].value=a13; a3.options[a7].selected=false; if(a5!=(void 0)) a5[a7]=a14; _navDirty=true; } } else { if(a7!=a3.length-2) { var a12=a3.options[a7+1].text; var a13=a3.options[a7+1].value; if(a5!=(void 0)) var a14=a5[a7+1]; for(var a15=a7;a15>=a8;a15--) { a3.options[a15+1].text=a3.options[a15].text; a3.options[a15+1].value=a3.options[a15].value; a3.options[a15+1].selected=true; if(a5!=(void 0)) a5[a15+1]=a5[a15]; } a3.options[a8].text=a12; a3.options[a8].value=a13; a3.options[a8].selected=false; if(a5!=(void 0)) a5[a8]=a14; _navDirty=true; } } a6=a9-1; } if(_agent.isNav||_agent.isGecko) { a3.scrollTop=a11; a3.scrollLeft=a10; } _displayDesc(a1,a2); _makeList(a2,a1); } function _orderTopBottomList( a0, a1, a2 ) { if(a2==(void 0)) { a2=_findFormNameContaining(a1); } var a3=document.forms[a2].elements[a1]; var a4=_getSelectedIndexes(a2,a1); if(a4.length==0) { if(_shuttle_no_items_selected.length>0) alert(_shuttle_no_items_selected); return; } var a5=_getDescArray(a1); var a6=new Array(); var a7=new Array(); var a8=new Array(); var a9=new Array(); var a10=0; if(a0==0) { var a11=0; var a10=0; for(var a12=0; a12=0;a13--) { a3.options[a14].text=a3.options[a4[a13]].text; a3.options[a14].value=a3.options[a4[a13]].value; a3.options[a14].selected=true; if(a5!=(void 0)) a5[a14]=a7[a13]; a14--; } for(var a13=a8.length-1;a13>=0;a13--) { a3.options[a14].text=a8[a13]; a3.options[a14].value=a9[a13]; a3.options[a14].selected=false; if(a5!=(void 0)) a5[a14]=a6[a13]; a14-- } if(_agent.isNav||_agent.isGecko) { a3.scrollTop=a3.scrollHeight-a3.offsetHeight; } } _displayDesc(a1,a2); _makeList(a2,a1); _navDirty=true; } function _getSelectedIndexes( a0, a1 ) { var a2=document.forms[a0].elements[a1]; var a3=new Array(); var a4=0; for(var a5=0;a50) { a3=a3+ _trimString(a2.options[a4].value) +';'; } else { a3=a3+ _trimString(a2.options[a4].text) +';'; } } document.forms[a0].elements[a1+':items'].value=a3; } function _trimString( a0 ) { var a1=a0.length-1; if(a0.charAt(a1)!=' ') { return a0; } while((a0.charAt(a1)==' ')&&(a1>0)) { a1=a1-1; } a0=a0.substring(0,a1+1); return a0; } function _getListName( a0, a1 ) { var a2=(a1)?a0+":leading": a0+":trailing"; return a2; } function _resetItems( a0, a1) { if(a1==(void 0)) { a1=_findFormNameContaining(from); } if(a1.length==0) { alert(shuttle_no_form_available); return; } leadingListName=_getListName(a0,true); trailingListName=_getListName(a0,false); var a2=document.forms[a1].elements[leadingListName]; var a3=document.forms[a1].elements[trailingListName]; var a4=_getOriginalLists(a0,a1); var a5=a4.leading; var a6=a4.trailing; var a7=_getDescArray(leadingListName); var a8=_getDescArray(trailingListName); _resetToOriginalList(a5,a7,a2); _resetToOriginalList(a6,a8,a3); _makeList(a1,leadingListName); _makeList(a1,trailingListName); return false; } function _getOriginalLists ( a0, a1 ) { var a2=window['_'+a1+'_'+a0+'_orig']; return a2; } function _resetToOriginalList ( a0, a1, a2 ) { if(a0==(void 0)||a2==(void 0)) return; a2.selectedIndex=a0.selectedIndex; var a3=0; for(;a3=a3) { if(a1!=(void 0)) a1[a8]=null; a2.options[a8]=null; a8--; } } function _copyLists(a0,a1) { if(a1==(void 0)) { a1=_findFormNameContaining(from); } if(a1.length==0) { alert(shuttle_no_form_available); return; } var a2=new Object(); a2.leading=_copyList(_getListName(a0,true),a1); a2.trailing=_copyList(_getListName(a0,false),a1); return a2; } function _copyList(a0,a1) { if(a1==(void 0)||a0==(void 0)) return; var a2=document.forms[a1].elements[a0]; if(a2==null) return; var a3=_getDescArray(a0); var a4=new Object(); a4.selectedIndex=a2.selectedIndex; a4.options=new Array(); a4.descriptions=new Array(); for(var a5=0;a5document.forms[this.formName].elements[a5].length-1) { a1=document.forms[this.formName].elements[a5].length-1; } var a6=document.forms[this.formName].elements[a5]; a6.options[a6.length]= new Option(a6.options[a6.length-1].text, a6.options[a6.length-1].value, false, false); for(var a7=a6.length-1;a7>a1;a7--) { a6.options[a7].text=a6.options[a7-1].text; a6.options[a7].value=a6.options[a7-1].value; a6.options[a7].selected=a6.options[a7-1].selected; } a6.options[a1].text=a2; a6.options[a1].value=a3; a6.options[a1].selected=false; var a8=_getDescArray(a5); _addDescAtIndex(a8,a4,a1); _makeList(this.formName,a5); _navDirty=true; } function _deleteItemByValue( a0, a1 ) { if(a1==(void 0)) { return; } var a2=_getListName(this.shuttleName,a0); var a3=document.forms[this.formName].elements[a2]; for(var a4=0;a4=0;a4--) { a2.options[a3[a4]]=null; } var a5=_getDescArray(a1); _deleteDescAtIndexes(a5,a3); _clearDescAreas(this.formName,a1); _makeList(this.formName,a1); _navDirty=true; }