if(!nexacro.FileUpload){nexacro.FileUploadItemEventInfo=function(_a,_b,_c){this.id=this.eventid=_b||"onfileuploaditem";this.fromobject=this.fromreferenceobject=_a;this.index=_c;};var _pEventFileUploadItemEventInfo=nexacro._createPrototype(nexacro.Event,nexacro.FileUploadItemEventInfo);nexacro.FileUploadItemEventInfo.prototype=_pEventFileUploadItemEventInfo;_pEventFileUploadItemEventInfo._type_name="FileUploadItemEventInfo";delete _pEventFileUploadItemEventInfo;nexacro.FileUploadMouseEventInfo=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o){this.id=this.eventid=_b||"onmouse";this.fromobject=_n;this.fromreferenceobject=_o;this.altKey=_d||false;this.ctrlKey=_e||false;this.shiftKey=_f||false;this.button=_c||"";this.index=_a.index;this.screenX=_h|| -1;this.screenY=_i|| -1;this.canvasX=_j|| -1;this.canvasY=_k|| -1;this.clientX=_l|| -1;this.clientY=_m|| -1;};var _pFileUploadMouseEventInfo=nexacro._createPrototype(nexacro.Event,nexacro.FileUploadMouseEventInfo);nexacro.FileUploadMouseEventInfo.prototype=_pFileUploadMouseEventInfo;_pFileUploadMouseEventInfo._type_name="FileUploadMouseEventInfo";delete _pFileUploadMouseEventInfo;nexacro.FileUploadLoadEventInfo=function(_a,_b,_c,_d,_e,_f){this.id=this.eventid=_b||"onsuccess";this.fromobject=this.fromreferenceobject=_a;this.datasets=_c;this.errorcode=_d;this.errormsg=_e;this.url=_f;};var _pFileUploadLoadEventInfo=nexacro._createPrototype(nexacro.Event,nexacro.FileUploadLoadEventInfo);nexacro.FileUploadLoadEventInfo.prototype=_pFileUploadLoadEventInfo;_pFileUploadLoadEventInfo._type_name="FileUploadLoadEventInfo";delete _pFileUploadLoadEventInfo;nexacro.FileUploadItemChangeEventInfo=function(_a,_b,_c,_d,_e){this.id=this.eventid=_b||"onitemchanged";this.fromobject=this.fromreferenceobject=_a;this.index=_a.index;this.oldvalue=_a.oldvalue;this.newvalue=_a.value;};var _pFileUploadItemChangeEventInfo=nexacro._createPrototype(nexacro.Event,nexacro.FileUploadItemChangeEventInfo);nexacro.FileUploadItemChangeEventInfo.prototype=_pFileUploadItemChangeEventInfo;_pFileUploadItemChangeEventInfo._type_name="FileUploadItemChangeEventInfo";delete _pFileUploadItemChangeEventInfo;nexacro.FileUploadErrorEventInfo=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.ErrorEventInfo.call(this,_a,_b,_c,_d,_e,_f,_g,_h);this.index=_i;};var _pFileUploadErrorEventInfo=nexacro._createPrototype(nexacro.ErrorEventInfo,nexacro.FileUploadErrorEventInfo);nexacro.FileUploadErrorEventInfo.prototype=_pFileUploadErrorEventInfo;_pFileUploadErrorEventInfo._type_name="FileUploadErrorEventInfo";delete _pFileUploadErrorEventInfo;nexacro.FileUpload_Style=function(_a){nexacro.Style.call(this);if(_a){this._target=_a;}this.itemheight=null;this.buttonbackground=null;this.buttonborder=null;this.buttonbordertype=null;this.buttongradation=null;this.buttonpadding=null;this.buttonmargin=null;this.buttonfont=null;this.buttoncolor=null;this.buttonsize=null;this.buttontext=null;this.editbackground=null;this.editborder=null;this.editbordertype=null;this.editgradation=null;this.editpadding=null;this.editmargin=null;this.editfont=null;this.editcolor=null;this.editaccessibility=null;this.buttonaccessibility=null;};var _pFileUploadStyle=nexacro._createPrototype(nexacro.Style,nexacro.FileUpload_Style);nexacro.FileUpload_Style.prototype=_pFileUploadStyle;_pFileUploadStyle._type_name="FileUploadStyle";eval(nexacro._createValueAttributeEvalStr("_pFileUploadStyle","itemheight"));eval(nexacro._createValueAttributeEvalStr("_pFileUploadStyle","buttonsize"));eval(nexacro._createValueAttributeEvalStr("_pFileUploadStyle","buttontext"));eval(nexacro._createColorAttributeEvalStr("_pFileUploadStyle","editcolor"));eval(nexacro._createColorAttributeEvalStr("_pFileUploadStyle","buttoncolor"));eval(nexacro._createBorderAttributeEvalStr("_pFileUploadStyle","editborder"));eval(nexacro._createBorderAttributeEvalStr("_pFileUploadStyle","buttonborder"));eval(nexacro._createBordertypeAttributeEvalStr("_pFileUploadStyle","editbordertype"));eval(nexacro._createBordertypeAttributeEvalStr("_pFileUploadStyle","buttonbordertype"));eval(nexacro._createBackgroundAttributeEvalStr("_pFileUploadStyle","editbackground"));eval(nexacro._createBackgroundAttributeEvalStr("_pFileUploadStyle","buttonbackground"));eval(nexacro._createGradationAttributeEvalStr("_pFileUploadStyle","editgradation"));eval(nexacro._createGradationAttributeEvalStr("_pFileUploadStyle","buttongradation"));eval(nexacro._createPaddingAttributeEvalStr("_pFileUploadStyle","editpadding"));eval(nexacro._createPaddingAttributeEvalStr("_pFileUploadStyle","buttonpadding"));eval(nexacro._createMarginAttributeEvalStr("_pFileUploadStyle","editmargin"));eval(nexacro._createMarginAttributeEvalStr("_pFileUploadStyle","buttonmargin"));eval(nexacro._createFontAttributeEvalStr("_pFileUploadStyle","editfont"));eval(nexacro._createFontAttributeEvalStr("_pFileUploadStyle","buttonfont"));eval(nexacro._createAccessibilityAttributeEvalStr("_pFileUploadStyle","editaccessibility"));eval(nexacro._createAccessibilityAttributeEvalStr("_pFileUploadStyle","buttonaccessibility"));_pFileUploadStyle.__custom_emptyObject=function(){this.itemheight=null;this.buttonbackground=null;this.buttonborder=null;this.buttonbordertype=null;this.buttongradation=null;this.buttonpadding=null;this.buttonmargin=null;this.buttonfont=null;this.buttoncolor=null;this.buttonsize=null;this.buttontext=null;this.editbackground=null;this.editborder=null;this.editbordertype=null;this.editgradation=null;this.editpadding=null;this.editmargin=null;this.editfont=null;this.editcolor=null;this.editaccessibility=null;this.buttonaccessibility=null;};_pFileUploadStyle.__get_custom_style_value=function(){var _a="";if(this.itemheight&&this.itemheight._is_empty){_a+="itemheight"+this.itemheight._value+"; ";}if(this.buttonsize&&this.buttonsize._is_empty){_a+="buttonsize"+this.buttonsize._value+"; ";}if(this.buttontext&&this.buttontext._is_empty){_a+="buttontext"+this.buttontext._value+"; ";}if(this.buttonbackground&&this.buttonbackground._is_empty){_a+="buttonbackground"+this.buttonbackground._value+"; ";}if(this.buttonborder&&this.buttonborder._is_empty){_a+="buttonborder"+this.buttonborder._value+"; ";}if(this.buttonbordertype&&this.buttonbordertype._is_empty){_a+="buttonbordertype"+this.buttonbordertype._value+"; ";}if(this.buttongradation&&this.buttongradation._is_empty){_a+="buttongradation"+this.buttongradation._value+"; ";}if(this.buttonpadding&&this.buttonpadding._is_empty){_a+="buttonpadding"+this.buttonpadding._value+"; ";}if(this.buttonmargin&&this.buttonmargin._is_empty){_a+="buttonmargin"+this.buttonmargin._value+"; ";}if(this.buttonfont&&this.buttonfont._is_empty){_a+="buttonfont"+this.buttonfont._value+"; ";}if(this.buttoncolor&&this.buttoncolor._is_empty){_a+="buttoncolor"+this.buttoncolor._value+"; ";}if(this.editbackground&&this.editbackground._is_empty){_a+="editbackground"+this.editbackground._value+"; ";}if(this.editborder&&this.editborder._is_empty){_a+="editborder"+this.editborder._value+"; ";}if(this.editbordertype&&this.editbordertype._is_empty){_a+="editbordertype"+this.editbordertype._value+"; ";}if(this.editgradation&&this.editgradation._is_empty){_a+="editgradation"+this.editgradation._value+"; ";}if(this.editpadding&&this.editpadding._is_empty){_a+="editpadding"+this.editpadding._value+"; ";}if(this.editmargin&&this.editmargin._is_empty){_a+="editmargin"+this.editmargin._value+"; ";}if(this.editfont&&this.editfont._is_empty){_a+="editfont"+this.editfont._value+"; ";}if(this.editcolor&&this.editcolor._is_empty){_a+="editcolor"+this.editcolor._value+"; ";}if(this.editaccessibility&&this.editaccessibility._is_empty){_a+="editaccessibility"+this.editaccessibility._value+"; ";}if(this.buttonaccessibility&&this.buttonaccessibility._is_empty){_a+="buttonaccessibility"+this.buttonaccessibility._value+"; ";}return _a;};nexacro.FileUpload_CurrentStyle=function(){nexacro.CurrentStyle.call(this);this.itemheight=null;this.buttonbackground=null;this.buttonborder=null;this.buttonbordertype=null;this.buttongradation=null;this.buttonpadding=null;this.buttonmargin=null;this.buttonfont=null;this.buttoncolor=null;this.buttonsize=null;this.buttontext=null;this.editbackground=null;this.editborder=null;this.editbordertype=null;this.editgradation=null;this.editpadding=null;this.editmargin=null;this.editfont=null;this.editcolor=null;this.editaccessibility=null;this.buttonaccessibility=null;};var _pFileUploadCurrentStyle=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.FileUpload_CurrentStyle);nexacro.FileUpload_CurrentStyle.prototype=_pFileUploadCurrentStyle;_pFileUploadCurrentStyle.__custom_emptyObject=_pFileUploadStyle.__custom_emptyObject;_pFileUploadCurrentStyle.__get_custom_style_value=_pFileUploadStyle.__get_custom_style_value;delete _pFileUploadStyle;delete _pFileUploadCurrentStyle;nexacro.FileUpload=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Component.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.scrollbars="autoboth";this.filecolumn="";this.innerdataset=null;this._innerdataset=null;this.text="";this.index= -1;this.async="false";this.retry=3;this.timeout=30;this.itemheight=18;this.itemcount=1;this.uploadurl="";this.multiselect=false;this._multiselect=false;this.filelist=[];this._is_scrollable=true;this._scrollbars=3;this._items=[];this._handle=null;this._last_id= -1;this._editFlag=null;this._buttonFlag=true;this._set_focus_dir= -1;this._want_tab=true;this._want_arrow=false;this.filepathedits=new nexacro.Collection();this.filefindbuttons=new nexacro.Collection();this._onPopupWin=false;this._accessibility_role="fileupload";this._first_focus=false;this._event_list={"onclick":1,"ondblclick":1,"onkeypress":1,"onkeydown":1,"onkeyup":1,"onkillfocus":1,"onsetfocus":1,"ondrag":1,"ondrop":1,"ondragenter":1,"ondragleave":1,"ondragmove":1,"onlbuttondown":1,"onlbuttonup":1,"onrbuttondown":1,"onrbuttonup":1,"onmousedown":1,"onmouseup":1,"onmouseenter":1,"onmouseleave":1,"onmousemove":1,"onmousewheel":1,"onmove":1,"onsize":1,"onsuccess":1,"onerror":1,"onappenditem":1,"ondeleteitem":1,"onitemclick":1,"onfindclick":1,"onitemchanged":1,"ontouchstart":1,"ontouchmove":1,"ontouchend":1,"onpinchstart":1,"onpinch":1,"onpinchend":1,"onflingstart":1,"onfling":1,"onflingend":1,"onlongpress":1,"onslidestart":1,"onslide":1,"onslideend":1};};var _pFileUpload=nexacro._createPrototype(nexacro.Component,nexacro.FileUpload);nexacro.FileUpload.prototype=_pFileUpload;_pFileUpload._type_name="FileUpload";_pFileUpload._defaultButtontext=nexacro._getCachedStyleObj("buttontext","find");_pFileUpload._defaultButtonsize=nexacro._getCachedStyleObj("buttonsize","18");_pFileUpload._defaultItemheight=nexacro._getCachedStyleObj("itemheight","18");_pFileUpload.on_apply_custom_pseudo=function(_a){var _b=this.currentstyle;var _c=this.on_find_CurrentStyle_padding(_a);if(_c!=_b.padding){_b.padding=_c;this.on_apply_style_padding(_c);}var _d=this.on_find_CurrentStyle_align(_a);if(_d!=_b.align){_b.align=_d;this.on_apply_style_align(_d);}var _e=this.on_find_CurrentStyle_font(_a);if(_e!=_b.font){_b.font=_e;this.on_apply_style_font(_e);}var _f=this.on_find_CurrentStyle_color(_a);if(_f!=_b.color){_b.color=_f;this.on_apply_style_color(_f);}var _g=this.on_find_CurrentStyle_rtlimagemirroring(_a);if(_g!=_b.rtlimagemirroring){_b.rtlimagemirroring=_g;this.on_apply_style_rtlimagemirroring(_g);}var _h=this.on_find_CurrentStyle_editbackground(_a);if(_h!=_b.editbackground){_b.editbackground=_h;}var _i=this.on_find_CurrentStyle_editborder(_a);if(_i!=_b.editborder){_b.editborder=_i;}var _j=this.on_find_CurrentStyle_editbordertype(_a);if(_j!=_b.editbordertype){_b.editbordertype=_j;}var _k=this.on_find_CurrentStyle_editgradation(_a);if(_k!=_b.editgradation){_b.editgradation=_k;}var _l=this.on_find_CurrentStyle_editpadding(_a);if(_l!=_b.editpadding){_b.editpadding=_l;}var _m=this.on_find_CurrentStyle_editmargin(_a);if(_m!=_b.editmargin){_b.editmargin=_m;}var _n=this.on_find_CurrentStyle_editfont(_a);if(_n!=_b.editfont){_b.editfont=_n;}var _o=this.on_find_CurrentStyle_editcolor(_a);if(_o!=_b.editcolor){_b.editcolor=_o;}var _p=this.on_find_CurrentStyle_buttonbackground(_a);if(_p!=_b.buttonbackground){_b.buttonbackground=_p;}var _q=this.on_find_CurrentStyle_buttonborder(_a);if(_q!=_b.buttonborder){_b.buttonborder=_q;}var _r=this.on_find_CurrentStyle_buttonbordertype(_a);if(_r!=_b.buttonbordertype){_b.buttonbordertype=_r;}var _s=this.on_find_CurrentStyle_buttongradation(_a);if(_s!=_b.buttongradation){_b.buttongradation=_s;}var _t=this.on_find_CurrentStyle_buttonpadding(_a);if(_t!=_b.buttonpadding){_b.buttonpadding=_t;}var _u=this.on_find_CurrentStyle_buttonmargin(_a);if(_u!=_b.buttonmargin){_b.buttonmargin=_u;}var _v=this.on_find_CurrentStyle_buttonfont(_a);if(_v!=_b.buttonfont){_b.buttonfont=_v;}var _w=this.on_find_CurrentStyle_buttoncolor(_a);if(_w!=_b.buttoncolor){_b.buttoncolor=_w;}var _x=this.on_find_CurrentStyle_buttonsize(_a);if(_x!=_b.buttonsize){_b.buttonsize=_x;this.on_apply_style_buttonsize(_x);}var _y=this.on_find_CurrentStyle_buttontext(_a);if(_y!=_b.buttontext){_b.buttontext=_y;this.on_apply_style_buttontext(_y);}var _z=this.on_find_CurrentStyle_itemheight(_a);if(_z!=_b.itemheight){_b.itemheight=_z;this.on_apply_style_itemheight(_z);}var _aa=this.on_find_CurrentStyle_editaccessibility(_a);if(_aa!=_b.editaccessibility){_b.editaccessibility=_aa;this.on_find_CurrentStyle_editaccessibility(_aa);}var _ab=this.on_find_CurrentStyle_buttonaccessibility(_a);if(_ab!=_b.buttonaccessibility){_b.buttonaccessibility=_ab;this.on_apply_style_buttonaccessibility(_ab);}};_pFileUpload.on_create_custom_style=function(){return new nexacro.FileUpload_Style(this);};_pFileUpload.on_create_custom_currentStyles=function(){return new nexacro.FileUpload_CurrentStyle();};_pFileUpload.on_find_CurrentStyle_editbackground=function(_a){var _b=this._find_pseudo_obj("editbackground",_a,"background");return _b;};_pFileUpload.on_find_CurrentStyle_editborder=function(_a){var _b=this._find_pseudo_obj("editborder",_a,"border");return _b;};_pFileUpload.on_find_CurrentStyle_editbordertype=function(_a){var _b=this._find_pseudo_obj("editbordertype",_a,"bordertype");return _b;};_pFileUpload.on_find_CurrentStyle_editgradation=function(_a){var _b=this._find_pseudo_obj("editgradation",_a,"gradation");return _b;};_pFileUpload.on_find_CurrentStyle_editpadding=function(_a){var _b=this._find_pseudo_obj("editpadding",_a,"padding");return _b;};_pFileUpload.on_find_CurrentStyle_editmargin=function(_a){var _b=this._find_pseudo_obj("editmargin",_a,"margin");return _b;};_pFileUpload.on_find_CurrentStyle_editfont=function(_a){var _b=this._find_pseudo_obj("editfont",_a,"font");return _b;};_pFileUpload.on_find_CurrentStyle_editcolor=function(_a){var _b=this._find_pseudo_obj("editcolor",_a,"color");return _b;};_pFileUpload.on_find_CurrentStyle_buttonbackground=function(_a){var _b=this._find_pseudo_obj("buttonbackground",_a,"background");return _b;};_pFileUpload.on_find_CurrentStyle_buttonborder=function(_a){var _b=this._find_pseudo_obj("buttonborder",_a,"border");return _b;};_pFileUpload.on_find_CurrentStyle_buttonbordertype=function(_a){var _b=this._find_pseudo_obj("buttonbordertype",_a,"bordertype");return _b;};_pFileUpload.on_find_CurrentStyle_buttongradation=function(_a){var _b=this._find_pseudo_obj("buttongradation",_a,"gradation");return _b;};_pFileUpload.on_find_CurrentStyle_buttonpadding=function(_a){var _b=this._find_pseudo_obj("buttonpadding",_a,"padding");return _b;};_pFileUpload.on_find_CurrentStyle_buttonmargin=function(_a){var _b=this._find_pseudo_obj("buttonmargin",_a,"margin");return _b;};_pFileUpload.on_find_CurrentStyle_buttonfont=function(_a){var _b=this._find_pseudo_obj("buttonfont",_a,"font");return _b;};_pFileUpload.on_find_CurrentStyle_buttoncolor=function(_a){var _b=this._find_pseudo_obj("buttoncolor",_a,"color");return _b;};_pFileUpload.on_find_CurrentStyle_buttonsize=function(_a){var _b=this._find_pseudo_obj("buttonsize",_a);return _b?_b:this._defaultButtonsize;};_pFileUpload.on_find_CurrentStyle_buttontext=function(_a){var _b=this._find_pseudo_obj("buttontext",_a);return _b?_b:this._defaultButtontext;};_pFileUpload.on_find_CurrentStyle_itemheight=function(_a){var _b=this._find_pseudo_obj("itemheight",_a);return _b?_b:this._defaultItemheight;};_pFileUpload.on_find_CurrentStyle_editaccessibility=function(_a){return this._find_pseudo_obj("editaccessibility",_a,"accessibility")||nexacro.Component._default_accessibility;};_pFileUpload.on_find_CurrentStyle_buttonaccessibility=function(_a){return this._find_pseudo_obj("buttonaccessibility",_a,"accessibility")||nexacro.Component._default_accessibility;};_pFileUpload.on_update_style_editbackground=function(){var _a=this.currentstyle.editbackground=this.on_find_CurrentStyle_editbackground(this._pseudo);this.on_apply_style_editbackground(_a);};_pFileUpload.on_update_style_editborder=function(){var _a=this.currentstyle.editborder=this.on_find_CurrentStyle_editborder(this._pseudo);this.on_apply_style_editborder(_a);};_pFileUpload.on_update_style_editbordertype=function(){var _a=this.currentstyle.editbordertype=this.on_find_CurrentStyle_editbordertype(this._pseudo);this.on_apply_style_editbordertype(_a);};_pFileUpload.on_update_style_editgradation=function(){var _a=this.currentstyle.editgradation=this.on_find_CurrentStyle_editgradation(this._pseudo);this.on_apply_style_editgradation(_a);};_pFileUpload.on_update_style_editpadding=function(){var _a=this.currentstyle.editpadding=this.on_find_CurrentStyle_editpadding(this._pseudo);this.on_apply_style_editpadding(_a);};_pFileUpload.on_update_style_editmargin=function(){var _a=this.currentstyle.editmargin=this.on_find_CurrentStyle_editmargin(this._pseudo);this.on_apply_style_editmargin(_a);};_pFileUpload.on_update_style_editfont=function(){var _a=this.currentstyle.editfont=this.on_find_CurrentStyle_editfont(this._pseudo);this.on_apply_style_editfont(_a);};_pFileUpload.on_update_style_editcolor=function(){var _a=this.currentstyle.editcolor=this.on_find_CurrentStyle_editcolor(this._pseudo);this.on_apply_style_editcolor(_a);};_pFileUpload.on_update_style_buttonbackground=function(){var _a=this.currentstyle.buttonbackground=this.on_find_CurrentStyle_buttonbackground(this._pseudo);this.on_apply_style_buttonbackground(_a);};_pFileUpload.on_update_style_buttonborder=function(){var _a=this.currentstyle.buttonborder=this.on_find_CurrentStyle_buttonborder(this._pseudo);this.on_apply_style_buttonborder(_a);};_pFileUpload.on_update_style_buttonbordertype=function(){var _a=this.currentstyle.buttonbordertype=this.on_find_CurrentStyle_buttonbordertype(this._pseudo);this.on_apply_style_buttonbordertype(_a);};_pFileUpload.on_update_style_buttongradation=function(){var _a=this.currentstyle.buttongradation=this.on_find_CurrentStyle_buttongradation(this._pseudo);this.on_apply_style_buttongradation(_a);};_pFileUpload.on_update_style_buttonpadding=function(){var _a=this.currentstyle.buttonpadding=this.on_find_CurrentStyle_buttonpadding(this._pseudo);this.on_apply_style_buttonpadding(_a);};_pFileUpload.on_update_style_buttonmargin=function(){var _a=this.currentstyle.buttonmargin=this.on_find_CurrentStyle_buttonmargin(this._pseudo);this.on_apply_style_buttonmargin(_a);};_pFileUpload.on_update_style_buttonfont=function(){var _a=this.currentstyle.buttonfont=this.on_find_CurrentStyle_buttonfont(this._pseudo);this.on_apply_style_buttonfont(_a);};_pFileUpload.on_update_style_buttoncolor=function(){var _a=this.currentstyle.buttoncolor=this.on_find_CurrentStyle_buttoncolor(this._pseudo);this.on_apply_style_buttoncolor(_a);};_pFileUpload.on_update_style_buttonsize=function(){var _a=this.currentstyle.buttonsize=this.on_find_CurrentStyle_buttonsize(this._pseudo);this.on_apply_style_buttonsize(_a);};_pFileUpload.on_update_style_buttontext=function(){var _a=this.currentstyle.buttontext=this.on_find_CurrentStyle_buttontext(this._pseudo);this.on_apply_style_buttontext(_a);};_pFileUpload.on_update_style_itemheight=function(){var _a=this.currentstyle.itemheight=this.on_find_CurrentStyle_itemheight(this._pseudo);this.on_apply_style_itemheight(_a);};_pFileUpload.on_update_style_editaccessibility=function(){var _a=this.currentstyle.editaccessibility=this.on_find_CurrentStyle_editaccessibility(this._pseudo);this.on_apply_style_editaccessibility(_a);};_pFileUpload.on_update_style_buttonaccessibility=function(){var _a=this.currentstyle.buttonaccessibility=this.on_find_CurrentStyle_buttonaccessibility(this._pseudo);this.on_apply_style_buttonaccessibility(_a);};_pFileUpload.on_apply_style_padding=function(_a){var _b=this._items;var _c=_b.length;var _d=this._client_width-_a.right;var _e=this.on_find_CurrentStyle_itemheight(this._pseudo);for(var _f=0;_f<_c;_f++ ){_b[_f].move(_a.left,(itemheight*_f+_a.top),_d,(_e*(_f+1)+_a.top),null,null);}};_pFileUpload.on_apply_style_cursor=function(_a){var _b=this._control_element;var _c=this._items;var _d=_c.length;if(_b){_b.setElementCursor(_a);for(var _e=0;_e<_d;_e++ ){_c[_e].on_apply_style_cursor(_a);}}};_pFileUpload.on_apply_style_editbackground=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitemedit){_b[_d].fileitemedit.on_apply_style_background(_a);}}};_pFileUpload.on_apply_style_editborder=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitemedit){_b[_d].fileitemedit.on_apply_style_border(_a);}}};_pFileUpload.on_apply_style_editbordertype=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitemedit){_b[_d].fileitemedit.on_apply_style_bordertype(_a);}}};_pFileUpload.on_apply_style_editgradation=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitemedit){_b[_d].fileitemedit.on_apply_style_gradation(_a);}}};_pFileUpload.on_apply_style_editpadding=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitemedit){_b[_d].fileitemedit.on_update_style_padding(_a);}}};_pFileUpload.on_apply_style_editmargin=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitemedit){_b[_d].fileitemedit.on_apply_style_margin(_a);}}};_pFileUpload.on_apply_style_editfont=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitemedit){_b[_d].fileitemedit.on_apply_style_font(_a);}}};_pFileUpload.on_apply_style_editcolor=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitemedit){_b[_d].fileitemedit.on_apply_style_color(_a);}}};_pFileUpload.on_apply_style_buttonbackground=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitembutton){_b[_d].fileitembutton.on_apply_style_background(_a);}}};_pFileUpload.on_apply_style_buttonborder=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitembutton){_b[_d].fileitembutton.on_apply_style_border(_a);}}};_pFileUpload.on_apply_style_buttonbordertype=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitembutton){_b[_d].fileitembutton.on_apply_style_bordertype(_a);}}};_pFileUpload.on_apply_style_buttongradation=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitembutton){_b[_d].fileitembutton.on_apply_style_gradation(_a);}}};_pFileUpload.on_apply_style_buttonpadding=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitembutton){_b[_d].fileitembutton.on_update_style_padding(_a);}}};_pFileUpload.on_apply_style_buttonmargin=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitembutton){_b[_d].fileitembutton.on_apply_style_margin(_a);}}};_pFileUpload.on_apply_style_buttonfont=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitembutton){_b[_d].fileitembutton.on_apply_style_font(_a);}}};_pFileUpload.on_apply_style_buttoncolor=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitembutton){_b[_d].fileitembutton.on_apply_style_color(_a);}}};_pFileUpload.on_apply_style_buttonsize=function(_a){this.on_change_containerRect();};_pFileUpload.on_apply_style_buttontext=function(_a){if(_a==null){_a=this._defaultButtontext;}var _b=this._items;var _c=_b.length;if(_b==null){return;}for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_buttontext(_a);}};_pFileUpload.on_apply_style_itemheight=function(_a){this.on_change_containerRect();this.resetScroll();};_pFileUpload.on_apply_style_align=function(_a){var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d].fileitemedit){_b[_d].fileitemedit.style.set_align(_a);}}};_pFileUpload.on_apply_style_editaccessibility=function(_a){var _b=this._items.length;var _c=null;var _d=null;if(_a){for(var _e=0;_e<_b;_e++ ){_c=this._getItem(_e);if(_c.fileitemedit){_c.fileitemedit.on_apply_style_accessibility(_a);}}}};_pFileUpload.on_apply_style_buttonaccessibility=function(_a){var _b=this._items.length;var _c=null;if(_a){for(var _d=0;_d<_b;_d++ ){_c=this._getItem(_d);if(_c.fileitembutton){_c.fileitembutton.on_apply_style_accessibility(_a);}}}};_pFileUpload.on_create_contents=function(){var _a=this.getElement();if(_a){var _b=this._items;var _c=this.itemcount;for(var _d=0;_d<_c;_d++ ){var _e=this._createFileItem(_d,0,0,0,0);this.filepathedits.add_item(_e.id,_e.fileitemedit);this.filefindbuttons.add_item(_e.id,_e.fileitembutton);_b[_d]=_e;}}};_pFileUpload.on_created_contents=function(){var _a=new Date().valueOf().toString();nexacro._create_hidden_frame(this._unique_id,_a,this.on_load,this);_a=null;this.on_apply_index();this.on_apply_innerdataset();this.on_apply_filecolumn();this.on_apply_prop_enable(this._isEnable());if(nexacro._enableaccessibility){this.on_apply_style_editaccessibility(this.currentstyle.editaccessibility=this.on_find_CurrentStyle_editaccessibility(this._pseudo));this.on_apply_style_buttonaccessibility(this.currentstyle.buttonaccessibility=this.on_find_CurrentStyle_buttonaccessibility(this._pseudo));}var _b=this._items;var _c=this.itemcount;for(var _d=0;_d<_c;_d++ ){_b[_d].on_created();_b[_d]._setEventHandler("onfindclick",this.on_notify_onfindclick,this);_b[_d]._setEventHandler("onitemclick",this.on_notify_onitemclick,this);if(nexacro._enableaccessibility){_b[_d]._setAccessibilityInfoIndex(_d+1);_b[_d]._setAccessibilityInfoCount(_c);}};this._onRecalcScrollSize();this._onResetScrollBar();this._updateClientSize(this._control_element);this.on_apply_style_buttontext(this.currentstyle.buttontext);this.on_change_containerRect();this.on_apply_prop_rtldirection();};_pFileUpload.on_destroy_contents=function(){var _a=this.name;var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].destroy();}this.filelist=null;this._items=null;this.filepathedits.clear();this.filepathedits=null;this.filefindbuttons.clear();this.filefindbuttons=null;nexacro._destroy_hidden_frame(this._unique_id,this,this._handle);};_pFileUpload.on_change_containerRect=function(_a,_b){var _c=this._items;var _d=_c.length;if(_d<=0){return;}var _e=this._pseudo;var _f=this._client_width;var _g=this._client_left;var _h=this._client_top;var _i,_j;var _k=parseInt(this.on_find_CurrentStyle_itemheight(_e),10);var _l=parseInt(this.on_find_CurrentStyle_buttonsize(_e),10);var _m=this.on_find_CurrentStyle_padding(_e);var _n=_l+_m.left+_m.right;var _o=_f;if(_n>_f){_i=_g-_m.left;}else{_i=_g-_m.left;}for(var _p=0;_p<_d;_p++ ){_j=_k*_p;_c[_p].move(_i,_j,_o,_k,null,null);_c[_p].on_apply_style_itemheight(_k);_c[_p].on_apply_style_buttonsize(_l);}};_pFileUpload.resetScroll=function(){var _a=this.getElement();if(_a){this._onRecalcScrollSize();this._updateClientSize(_a);}};_pFileUpload._onRecalcScrollSize=function(_a){var _b=this.getElement();if(_b){var _c=this._pseudo;var _d=this.vscrollbar;var _e=this.hscrollbar;var _f=this.on_find_CurrentStyle_itemheight(_c);var _g=this.on_find_CurrentStyle_border(_c);var _h=this.on_find_CurrentStyle_padding(_c);var _i=this.itemcount*_f;var _j=this._client_width;if(_i>this._client_height){if(_d){_j-=_d._adjust_width;}else{_j-=nexacro.Component.SCROLLBAR_DEFAULT_SIZE;}}_b.setElementScrollMaxSize(_j,_i);}};_pFileUpload.on_hscroll=function(_a,_b){if(this.onhscroll&&this.onhscroll._has_handlers){_b.fromobject=this;this.onhscroll._fireEvent(this,_b);}var _c=this._control_element;if(_c){_c.setElementHScrollPos(_b.pos);}return true;};_pFileUpload.on_vscroll=function(_a,_b){if(this.onvscroll&&this.onvscroll._has_handlers){_b.fromobject=this;this.onvscroll._fireEvent(this,_b);}var _c=this._control_element;if(_c){_c.setElementVScrollPos(_b.pos);}return true;};_pFileUpload.set_multiselect=function(_a){if(_a!=this.multiselect){this.multiselect=_a;_a=nexacro._toBoolean(_a);if(_a!=this._multiselect){this._multiselect=_a;this.on_apply_multiselect(_a);}}};if(nexacro.Browser=="IE"&&nexacro.BrowserVersion<10){_pFileUpload.on_apply_multiselect=nexacro._emptyFn;}else{_pFileUpload.on_apply_multiselect=function(){var _a=this.getElement();if(_a){var _b=this._items;var _c=_b.length;var _d=this._multiselect;var _e=this._unique_id;var _f=this._handle;for(var _g=0;_g<_c;_g++ ){nexacro._setMultipleFile(_e,_b[_g].name,_d,_b[_g]);}}};}_pFileUpload.set_uploadurl=function(_a){if(_a!=this.uploadurl){this.uploadurl=_a;}};_pFileUpload.set_itemcount=function(_a){var _b=parseInt(_a)|0;if(_b!=this.itemcount){this._old_itemcount=this.itemcount;this.itemcount=_b;this.on_apply_itemcount();}};_pFileUpload.on_apply_itemcount=function(){var _a=this.getElement();if(_a){var _b=this._pseudo;var _c=this._old_itemcount;var _d=this.itemcount;var _e=this._items;var _f=_e.length;var _g=this._client_left;var _h=this._client_top;var _i=this._client_width;var _j=parseInt(this.on_find_CurrentStyle_itemheight(_b),10);var _k=parseInt(this.on_find_CurrentStyle_buttonsize(_b),10);var _l=this.on_find_CurrentStyle_buttontext(_b);while(_f&&_c>_d){_c-- ;_e.pop().destroy();}for(var _m=_f;_m<_d;_m++ ){var _n=_g;var _o=_h+(_j*_m);var _p=_i;var _q=this._createFileItem(_m,_n,_o,_p,_j);this.filepathedits.add_item(_q.id,_q.fileitemedit);this.filefindbuttons.add_item(_q.id,_q.fileitembutton);this._items[_m]=_q;}this.on_change_containerRect();this.on_apply_style_buttontext(_l);this.resetScroll();}};_pFileUpload.set_itemheight=function(_a){var _b=parseInt(_a)|0;if(_b!=this.itemheight){this.itemheight=_b;this.on_apply_itemheight(_b);}};_pFileUpload.on_apply_itemheight=function(_a){var _b=this.getElement();if(_b){this.style.set_itemheight(_a);}};_pFileUpload.set_timeout=function(_a){if(_a!=this.timeout){this.timeout=_a;}};_pFileUpload.set_retry=function(_a){if(_a!=this.retry){this.retry=_a;}};_pFileUpload.set_async=function(_a){if(_a!=this.async){this.async=_a;}};_pFileUpload.set_index=function(_a){if(_a!=this.index){this.index=_a;this.on_apply_index(_a);this._setAccessibilityStatSelected(_a);};};_pFileUpload.on_apply_index=function(_a){var _b=this.getElement();if(_b){var _c=this._items[_a];if(_c){if(this._editFlag){_c.fileitemedit.setFocus(false);}if(this._buttonFlag){_c.fileitembutton.setFocus(false);}var _d=_c._getLastFocused();this.value=_c.value;}}};_pFileUpload.set_text=function(_a){};_pFileUpload._setText=function(_a){if(_a!=this.text){this.text=_a;}return this.text;};_pFileUpload.on_apply_text=function(_a){};_pFileUpload.set_value=function(_a){};_pFileUpload._setValue=function(_a){if(_a!=this.value){this.value=_a;}};_pFileUpload.on_apply_value=function(_a){};_pFileUpload.setInnerDataset=function(_a){if(!_a){this._innerdataset=null;this.innerdataset="";this.on_apply_innerdataset();}else if(_a instanceof nexacro.Dataset){this._innerdataset=_a;this.innerdataset=_a.id;this.on_apply_innerdataset();}};_pFileUpload._setInnerDatasetStr=function(_a){if(!_a){this._innerdataset=null;this.innerdataset="";}else{_a=_a.replace("@","");this._innerdataset=this._findDataset(_a);this.innerdataset=_a;}};_pFileUpload.getInnerDataset=function(){return this._innerdataset;};_pFileUpload.set_innerdataset=function(_a){if(typeof _a!="string"){this.setInnerDataset(_a);return;}if(_a!=this.innerdataset){if(!_a){this._innerdataset=null;this.innerdataset="";}else{_a=_a.replace("@","");this._innerdataset=this._findDataset(_a);this.innerdataset=_a;}this.on_apply_innerdataset();}else if(this.innerdataset&&!this._innerdataset){this._setInnerDatasetStr(this.innerdataset);this.on_apply_innerdataset();}return this.innerdataset;};_pFileUpload.on_apply_innerdataset=function(){var _a=this.getElement();if(_a){this.on_apply_filecolumn();}};_pFileUpload.set_filecolumn=function(_a){if(_a!=this.filecolumn){this.filecolumn=_a;this.on_apply_filecolumn(_a);}};_pFileUpload.on_apply_filecolumn=function(_a){var _b=this.getElement();if(_b&&this._innerdataset){var _c=this._items;for(var _d=0;_d<_c.length;_d++ ){var _a=this._innerdataset.getColumn(_d,_a);if(_a){_c[_d].set_value(_a);_a=0;}}}};_pFileUpload.upload=function(_a){var _b=false;var _c;if(_a==undefined){if(this.uploadurl){_c=application._getServiceLocation(this.uploadurl);}}else{_c=application._getServiceLocation(_a);}if(_c){var _d=this._items;var _e=_d.length;for(var _f=0;_f<_e;_f++ ){if(_d[_f].value){_b=true;nexacro._submit(this._unique_id,_c,this._handle,null,_d[_f].value);break;}}}return _b;};_pFileUpload.appendItem=function(){var _a=this.getElement();if(_a){var _b=this._pseudo;var _c=this.itemcount;var _d=this._client_left;var _e=this._client_top;var _f=this._client_width;var _g=parseInt(this.on_find_CurrentStyle_itemheight(_b),10);var _h=parseInt(this.on_find_CurrentStyle_buttonsize(_b),10);var _i=this.on_find_CurrentStyle_buttontext(_b);var _j=this.on_find_CurrentStyle_padding(_b);var _k=_d+_j.left;var _l=_e+(_g*_c)+_j.top;var _m=_f-_j.right;var _n=_c;var _o=this._createFileItem(_n,_k,_l,_m,_g);this.filepathedits.add_item(_o.id,_o.fileitemedit);this.filefindbuttons.add_item(_o.id,_o.fileitembutton);this._items[_n]=_o;this.itemcount++ ;if(nexacro._enableaccessibility){_o._setAccessibilityInfoIndex(_n);_o._setAccessibilityInfoCount(_n+1);}this.on_change_containerRect();this.on_apply_style_buttontext(_i);this.resetScroll();this.on_fire_onappenditem(this,_n);}};_pFileUpload.deleteItem=function(_a){var _b=this.index;var _c=this.getElement();if(_c){_a=parseInt(_a,10);var _d=this._items;if(this.itemcount<=_a){return;}var _e=this.itemcount;var _f=_e-1;for(var _g=_a+1;_g<_e;_g++ ){if(_b==_g){this.index-- ;}_d[_g].index-- ;if(nexacro._enableaccessibility){_d[_g]._setAccessibilityInfoIndex(_g);_d[_g]._setAccessibilityInfoCount(_f);}}_d[_a].destroy();this._upadteFileList();_d.splice(_a,1);if(_b==_a){this.index= -1;this.value=undefined;}this.itemcount-- ;this.on_change_containerRect();this.resetScroll();this.on_fire_ondeleteitem(this,_a);}};_pFileUpload.getItemCount=function(_a){var _b=this.getElement();if(_b){_a=nexacro._toBoolean(_a);var _c=0;var _d=0;var _e;var _f=this._items;var _g=_f.length;while(_d<_g){if(_a==true){if(_f[_d].value){_c++ ;}}else{return _g;}++ _d;}return _c;}};_pFileUpload.getItemIndex=function(_a){var _b=this.getElement();if(_b){if(typeof _a=="object"){var _c=0;var _d=this._items;while(_c<_d.length){if(_a==_d[_c].fileitembutton){return _c;}if(_a==_d[_c].fileitemedit){return _c;}++ _c;}return -1;}}};_pFileUpload._getItem=function(_a){if(_a>=0&&this._items.length>0){return this._items[_a];}return null;};_pFileUpload.hasValue=function(_a){var _b=this.getElement();if(_b){var _c=0;var _d=this._items;if(_a== -1){while(_c<_d.length){if(_d[_c].value){ ++cnt;}++ _c;}if(cnt==_d.length){return true;}return false;}if(_a<_d.length&&_d[_a].value){return true;}return false;}};_pFileUpload.getValue=function(_a){var _b=this.getElement();if(_b){var _c=this._items;if(_c&&_a>=0&&_a<_c.length){return _c[_a].value;}return "";}};_pFileUpload.on_notify_onfindclick=function(_a,_b){var _c=false;var _d=nexacro._indexOf(this._items,_a);if(this.visible&&this._isEnable()&&this.enableevent){_c=this.on_fire_onfindclick(_a,_d);if(_c){try{nexacro._findclick(this._unique_id,_a.name,_a,this._handle);}catch(e){var _e=nexacro.MakeError("ObjectError",this,"comp_incorrect_file");this.on_fire_onerror(this,_e.name,_e.message,_a,null,null,null,_d);}}}return _c;};_pFileUpload.on_notify_onitemclick=function(_a,_b){if(this.visible&&this._isEnable()&&this.enableevent){this.on_fire_onitemclick(_a,_a.index);}};_pFileUpload._on_getAccessibilityAdditionalLabel=function(){if(this._first_focus==false){var _a=0;var _b=this._items;if(_b){_a=_b.length;}return ( +this.index)+1+" "+_a;}return "";};_pFileUpload._isAccessibilityEnable=function(){return true;};_pFileUpload.on_get_style_accessibility_label=function(){var _a="";return _a;};_pFileUpload.on_fire_onerror=function(_a,_b,_c,_d,_e,_f,_g,_h){if(this.onerror&&this.onerror._has_handlers){var _i=new nexacro.FileUploadErrorEventInfo(_a,"onerror",_b,_c,_d,_e,_f,_g,_h);return this.onerror._fireEvent(this,_i);}return true;};_pFileUpload.on_fire_user_onlbuttondown=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(this.onlbuttondown&&this.onlbuttondown._has_handlers){var _m=new nexacro.FileUploadMouseEventInfo(this,"onlbuttondown",_a,_b,_c,_d,this.index,_e,_f,_g,_h,_i,_j,_k,_l);return this.onlbuttondown._fireEvent(this,_m);}return false;};_pFileUpload.on_fire_user_onlbuttonup=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m){if(this.onlbuttonup&&this.onlbuttonup._has_handlers){var _n=new nexacro.FileUploadMouseEventInfo(this,"onlbuttonup",_a,_b,_c,_d,this.index,_e,_f,_g,_h,_i,_j,_k,_l);return this.onlbuttonup._fireUserEvent(this,_n);}return false;};_pFileUpload.on_fire_onfindclick=function(_a,_b){var _c=true;if(this.onfindclick&&this.onfindclick._has_handlers){var _d=new nexacro.FileUploadItemEventInfo(this,"onfindclick",_b);_c=this.onfindclick._fireCheckEvent(this,_d);}return _c;};_pFileUpload.on_fire_onitemclick=function(_a,_b){if(this.onitemclick&&this.onitemclick._has_handlers){var _c=new nexacro.FileUploadItemEventInfo(this,"onitemclick",_b);this.onitemclick._fireEvent(this,_c);}};_pFileUpload.on_fire_onappenditem=function(_a,_b){if(this.onappenditem&&this.onappenditem._has_handlers){var _c=new nexacro.FileUploadItemEventInfo(_a,"onappenditem",_b);this.onappenditem._fireEvent(this,_c);}};_pFileUpload.on_fire_ondeleteitem=function(_a,_b){if(this.ondeleteitem&&this.ondeleteitem._has_handlers){var _c=new nexacro.FileUploadItemEventInfo(_a,"ondeleteitem",_b);this.ondeleteitem._fireEvent(this,_c);}};_pFileUpload.on_fire_onitemchanged=function(_a,_b,_c,_d){if(this.onitemchanged&&this.onitemchanged._has_handlers){var _e=new nexacro.FileUploadItemChangeEventInfo(_a,"onitemchanged",_b,_c,_d);return this.onitemchanged._fireEvent(this,_e);}};_pFileUpload.on_fire_onsuccess=function(_a,_b,_c,_d){application._endCommProgress();if(this.onsuccess&&this.onsuccess._has_handlers){var _e=new nexacro.FileUploadLoadEventInfo(this,"onsuccess",_a,_b,_c,_d);return this.onsuccess._fireEvent(this,_e);}};_pFileUpload._getDlgCode=function(_a,_b,_c,_d){var _e=this._want_tab;this._want_tab=true;return {want_tab:_e,want_return:true,want_escape:false,want_chars:false,want_arrows:this._want_arrow};};_pFileUpload.on_fire_user_onkeydown=function(_a,_b,_c,_d,_e,_f){var _g=this._items;var _h=false;var _i=this.index;var _j=nexacro.Event;if(_a==_j.KEY_TAB){if((_d&&_i==0)||(!_d&&_i==_g.length-1)){this._want_tab=false;this.set_index( -1);}else{if(_d){_i-- ;}else{_i++ ;}this.set_index(_i);}this._getWindow()._keydown_element._event_stop=true;}else{if(nexacro._enableaccessibility){var _k=_a==_j.KEY_UP&&_c;var _l=_a==_j.KEY_DOWN&&_c;if(_g[_i]){this._find_item_pseudo(_g[_i]);}var _m=this.on_find_CurrentStyle_accessibility(this._pseudo);if(_i<0){editaccessibility=this.on_find_CurrentStyle_editaccessibility(_g[0].fileitemedit._pseudo);buttonaccessibility=this.on_find_CurrentStyle_buttonaccessibility(_g[0].fileitembutton._pseudo);}else{editaccessibility=this.on_find_CurrentStyle_editaccessibility(_g[_i].fileitemedit._pseudo);buttonaccessibility=this.on_find_CurrentStyle_buttonaccessibility(_g[_i].fileitembutton._pseudo);}if(_k||_l){var _n=this._getWindow();if((_k&&_i<0)||(_l&&this._buttonFlag&&_i==_g.length-1)){this._want_arrow=false;}else{while((editaccessibility&&editaccessibility.enable)||(buttonaccessibility&&buttonaccessibility.enable)){if(_k){if(!this._editFlag&&editaccessibility&&editaccessibility.enable){this.index= -1;this._editFlag=true;this._buttonFlag=false;}else{_i-- ;if(buttonaccessibility&&buttonaccessibility.enable){if(_i<0&&_m&&_m.enable){this._editFlag=false;this._buttonFlag=false;_n._removeFromCurrentFocusPath(this,false);this._setFocus(false);}else{this.index= -1;this._editFlag=false;this._buttonFlag=true;}}else{if(_i>0){this._buttonFlag=false;continue;}else{this._want_arrow=false;if(_m&&_m.enable){this._editFlag=false;this._buttonFlag=false;_n._removeFromCurrentFocusPath(this,false);this._setFocus(false);}}}}}else if(_l){if(!this._editFlag&&editaccessibility&&editaccessibility.enable){_i++ ;this._editFlag=true;this._buttonFlag=false;}else{if(buttonaccessibility&&buttonaccessibility.enable){this.index= -1;this._editFlag=false;this._buttonFlag=true;}else{if(_i<_g.length-1){this._editFlag=false;continue;}else{this._want_arrow=false;break;}}}}this.set_index(_i);this._want_arrow=true;this._getWindow()._keydown_element._event_stop=true;break;}}}else{this._want_arrow=false;}}}return nexacro.Component.prototype.on_fire_user_onkeydown.call(this,_a,_b,_c,_d,_e,_f);};_pFileUpload._find_item_pseudo=function(_a){this._editFlag=(_a.fileitemedit._pseudo=="focused");this._buttonFlag=(_a.fileitembutton._pseudo=="focused");};_pFileUpload._on_focus=function(_a,_b,_c,_d,_e,_f){nexacro.Component.prototype._on_focus.call(this,_a,_b,_c,_d,_e,_f);var _g=this._items;var _h=_g.length;var _i=null;var _j=0;if(_h){this._want_tab=true;_i=_b=="shifttabkey";if(_b=="shifttabkey"||_b=="tabkey"){this._editFlag=false;this._buttonFlag=true;if(_i){_j=this.index<0?_h-1:this.index;}else{_j=this.index<0?0:this.index;this._first_focus=true;}this.index= -1;}else{_i=_b=="upkey";if(nexacro._enableaccessibility){this._editFlag=false;this._buttonFlag=false;this._want_arrow=true;var _k=this.on_find_CurrentStyle_accessibility(this._pseudo);var _l=this.on_find_CurrentStyle_editaccessibility(this._pseudo);var _m=this.on_find_CurrentStyle_buttonaccessibility(this._pseudo);if(_i){this.index= -1;_j=_h-1;if(_m&&_m.enable){this._buttonFlag=true;}else if(_l&&_l.enable){this._editFlag=true;}}else{_j= -1;if(_k&&_k.enable==false){_j=0;this.index= -1;if(_l&&_l.enable){this._editFlag=true;}else if(_m&&_m.enable){this._buttonFlag=true;}this._first_focus=(this._editFlag||this._buttonFlag)?true:false;}}}}this.set_index(_j);if(nexacro._enableaccessibility){this._first_focus=false;}}};_pFileUpload.on_apply_custom_setfocus=function(_a){var _b=nexacro._enableaccessibility;var _c=((_a=="lbutton")?false:_b);var _d=this._items;if(_d.length< -1||_b){var _e=this._control_element;if(_e){_e.setElementFocus(_c);}}else{var _f=_d[this.index];if(_f){_f.fileitembutton._control_element.setElementFocus(_c);}}};_pFileUpload._setParamter=nexacro._emptyFn;_pFileUpload._getDataset=nexacro._emptyFn;_pFileUpload.on_load=function(_a,_b,_c,_d,_e,_f){var _g=_d?_d: -1;var _h=_f?_f:"";try{var _i=nexacro._getXMLDocument(this._unique_id,_b,_c);_c=_i.URL?_i.URL:_i.url;if(_c=="about:blank"){return;}var _j,_k;this.context=this.parent;if(arguments.length<1){if(nexacro._getContentType(_i)=="XML"){_k="XML";_b="";}else{_b=nexacro._getDataFromDOM(_i,this);_b=_b.trim();_k=_b.substring(0,3);}}else{if(_b){_k=_b.substring(0,3);if(_k!="SSV"){_k="XML";}}else{_b=_f;}}if(_k=="XML"){_j=nexacro.Deserializer["XML"](_i);}else if(_k=="SSV"){_j=nexacro.Deserializer["SSV"](_b);}else{}if(_j){var _l=_j[0];if(_l["ErrorCode"]!=null){_g=_l["ErrorCode"];}if(_l["ErrorMsg"]!=null){_h=_l["ErrorMsg"];}}else{_h=_b;}if(_g<0||_a<0){this.on_fire_onerror(this,"ObjectError","failed to get",this,9901,null,null, -1);}else{this.on_fire_onsuccess(_j[1],_g,_h,_c);}delete this.context;}catch(e){this.on_fire_onerror(this,"ObjectError","failed to get",this,9901,null,null, -1);}};_pFileUpload._createFileItem=function(_a,_b,_c,_d,_e){var _f=this.itemcount<1?this._last_id=0: ++this._last_id;var _g="upfile"+_f;var _h=new nexacro.FileItemCtrl(_g,"absolute",_b,_c,_d,_e,null,null,this);_h.index=_a;_h.set_name(_g);_h.createComponent();_h.on_created();_h._setEventHandler("onfindclick",this.on_notify_onfindclick,this);_h._setEventHandler("onitemclick",this.on_notify_onitemclick,this);return _h;};_pFileUpload.on_apply_prop_enable=function(_a){nexacro.Component.prototype.on_apply_prop_enable.call(this,_a);var _b=this._items;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d]._setEnable(_a);_b[_d].fileitemedit._setEnable(_a);_b[_d].fileitembutton._setEnable(_a);}};_pFileUpload._isPopupFrame=function(){return this._onPopupWin;};_pFileUpload._upadteFileList=function(){var _a=this.filelist=[];var _b=this._items;var _c=_b.length;var _d,_e,_f;for(var _g=0;_g<_c;_g++ ){var _h=_b[_g];_e=_h._files;if(_e){var _i=_e.length;for(var _j=0;_j<_i;_j++ ){var _k=_a.length;_d=new nexacro.VirtualFile("uploadfile"+_k);_f=_e[_j];_d._setRefFile(_f);_a[_k]=_d;}}}};delete _pFileUpload;nexacro.FileUploadCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.FileUpload.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;};var _pFileUploadCtrl=nexacro._createPrototype(nexacro.FileUpload,nexacro.FileUploadCtrl);nexacro.FileUploadCtrl.prototype=_pFileUploadCtrl;nexacro._setForControlStyleFinder(_pFileUploadCtrl);delete _pFileUploadCtrl;nexacro.FileItem=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Component.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.fileitemedit=null;this.fileitembutton=null;this.selected=false;this.itemheight=18;this.buttontext="find";this.buttonsize=18;this.name="";this.oldvalue="";this.value="";this.index=0;this.components=[];this._accessibility_role="none";this._event_list={"onfindclick":1,"onitemclick":1};};var _pFileItem=nexacro._createPrototype(nexacro.Component,nexacro.FileItem);nexacro.FileItem.prototype=_pFileItem;_pFileItem._type_name="FileItem";_pFileItem.on_apply_style_itemheight=function(){this.on_change_containerRect(this._client_width,this._client_height);};_pFileItem.on_apply_style_buttonsize=function(){this.on_change_containerRect(this._client_width,this._client_height);};_pFileItem.on_apply_style_buttontext=function(_a){if(this.fileitembutton){this.fileitembutton.set_text(_a);}};_pFileItem.on_create_contents=function(){var _a=this.getElement();if(_a){this.fileitemedit=new nexacro.FileItemEditCtrl("fileitemedit","absolute",0,0,0,0,null,null,this);this.fileitembutton=new nexacro.FileItemButtonCtrl("fileitembutton","absolute",0,0,0,0,null,null,this);this.fileitemedit.set_readonly("true");this.fileitemedit.style.set_align(this.parent.on_find_CurrentStyle_align());this.fileitembutton.set_text("find");this.fileitemedit.createComponent();this.fileitembutton.createComponent();}};_pFileItem.on_created_contents=function(){var _a=this.parent;nexacro._append_hidden_item(_a._unique_id,this.name,this.on_fileinput_onchange,this,_a._handle,this.parent._multiselect);this.fileitemedit.on_created();this.fileitembutton.on_created();this.fileitemedit._setEventHandler("oneditclick",this.on_notify_fileitem_oneditclick,this);this.fileitembutton._setEventHandler("onclick",this.on_notify_fileitem_onfindclick,this);this.fileitemedit._setEventHandler("onlbuttondown",this.on_notify_fileitem_oneditlbuttondown,this);this.fileitembutton._setEventHandler("onlbuttondown",this.on_notify_fileitem_onfindlbuttondown,this);if(nexacro._enableaccessibility){this.components.push(this.fileitemedit);this.components.push(this.fileitembutton);}this._setAccessibilityActiveDescendant(this.fileitembutton);};_pFileItem.on_destroy_contents=function(){if(this.fileitemedit){this.parent.filepathedits.delete_item(this.id);this.fileitemedit.destroy();this.fileitemedit=null;}if(this.fileitembutton){this.parent.filefindbuttons.delete_item(this.id);this.fileitembutton.destroy();this.fileitembutton=null;}if(this._files){this._files=null;}this.components=null;var _a=this.parent;nexacro._remove_hidden_item(_a._unique_id,this.name,_a._handle);if(this._input_node){this._input_node=null;}};_pFileItem.on_change_containerRect=function(_a,_b){var _c=parseInt(this.parent.on_find_CurrentStyle_buttonsize(this._pseudo),10);var _b=parseInt(this.parent.on_find_CurrentStyle_itemheight(this._pseudo),10);var _d=parseInt(this.index,10);var _e=this._client_left;var _f=this._client_top;var _g=this._client_width-_c;var _h=_b;var _i=_e+_g;var _j=_f;var _k=_c;var _l=_h;if(this.fileitemedit){this.fileitemedit.move(_e,_f,_g,_h,null,null);}if(this.fileitembutton){this.fileitembutton.move(_i,_j,_k,_l,null,null);}};_pFileItem.set_value=function(_a){if(_a!=this.value){this.oldvalue=this.value;this.value=_a;this.on_apply_value(_a);this.parent.set_index(this.index);this.parent._setText(_a);this.parent._setValue(_a);return true;}return false;};_pFileItem.on_apply_value=function(_a){if(this.fileitemedit){this.fileitemedit.set_value(_a);}};_pFileItem.set_name=function(_a){if(_a!=this.name){this.name=_a;}};_pFileItem.set_selected=function(_a){if(_a!=this.selected){this.selected=_a;this.on_apply_selected(_a);}};_pFileItem.on_apply_selected=function(_a){if(_a){this._stat_change("select","selected");}else{this._stat_change("notselect","normal");}};_pFileItem.on_notify_fileitem_oneditclick=function(_a,_b){this.parent.set_index(this.index);if(this.onitemclick&&this.onitemclick._has_handlers){this.onitemclick._fireEvent(this,_b);}return false;};_pFileItem.on_notify_fileitem_onfindclick=function(_a,_b){this.parent.set_index(this.index);if(this.onfindclick&&this.onfindclick._has_handlers){this.onfindclick._fireEvent(this,_b);}return false;};_pFileItem.on_notify_fileitem_oneditlbuttondown=function(_a,_b){this._accessibility_find_focus_flag(true,false);this.parent.set_index(this.index);};_pFileItem.on_notify_fileitem_onfindlbuttondown=function(_a,_b){this._accessibility_find_focus_flag(false,true);this.parent.set_index(this.index);};_pFileItem._accessibility_find_focus_flag=function(_a,_b){if(nexacro._enableaccessibility){this.parent._editFlag=_a;this.parent._buttonFlag=_b;}};_pFileItem.on_fileinput_onchange=function(_a){if(this.set_value(_a)){this.parent.on_fire_onitemchanged(this,this.index,this.oldvalue,this.value);}};_pFileItem._isPopupFrame=function(){return this.parent._onPopupWin;};_pFileItem._changeFiles=function(_a){this._files=_a;this.parent._upadteFileList();};delete _pFileItem;nexacro.FileItemCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.FileItem.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;};var _pFileItemCtrl=nexacro._createPrototype(nexacro.FileItem,nexacro.FileItemCtrl);nexacro.FileItemCtrl.prototype=_pFileItemCtrl;_pFileItemCtrl._type_name="FileItemControl";delete _pFileItemCtrl;nexacro.FileItemEditCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.EditCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._edit=null;};var _pFileItemEditCtrl=nexacro._createPrototype(nexacro.EditCtrl,nexacro.FileItemEditCtrl);nexacro.FileItemEditCtrl.prototype=_pFileItemEditCtrl;_pFileItemEditCtrl.on_find_CurrentStyle_background=function(_a){return this.parent.parent._find_pseudo_obj("editbackground",_a,"background");};_pFileItemEditCtrl.on_find_CurrentStyle_gradation=function(_a){return this.parent.parent._find_pseudo_obj("editgradation",_a,"gradation");};_pFileItemEditCtrl.on_find_CurrentStyle_border=function(_a){return this.parent.parent._find_pseudo_obj("editborder",_a,"border");};_pFileItemEditCtrl.on_find_CurrentStyle_bordertype=function(_a){return this.parent.parent._find_pseudo_obj("editbordertype",_a,"bordertype");};_pFileItemEditCtrl.on_find_CurrentStyle_padding=function(_a){var _b=this.parent.parent._find_pseudo_obj("editpadding",_a,"padding");return (_b)?_b:this._defaultPadding;};_pFileItemEditCtrl.on_find_CurrentStyle_margin=function(_a){var _b=this.parent.parent._find_pseudo_obj("editmargin",_a,"margin");return (_b)?_b:this._defaultMargin;};_pFileItemEditCtrl.on_find_CurrentStyle_font=function(_a){var _b=this.parent.parent._find_pseudo_obj("editfont",_a,"font")||this._find_inherit_pseudo_obj("font",_a,"font")||nexacro.Component._default_font;return _b;};_pFileItemEditCtrl.on_find_CurrentStyle_color=function(_a){var _b=this.parent.parent._find_pseudo_obj("editcolor",_a,"color")||this._find_inherit_pseudo_obj("color",_a,"color")||nexacro.Component._default_color;return _b;};_pFileItemEditCtrl.on_find_CurrentStyle_accessibility=function(_a){return this.parent.parent.on_find_CurrentStyle_editaccessibility(_a);};_pFileItemEditCtrl.on_find_CurrentStyle_rtlimagemirroring=function(_a){return this.parent.parent.on_find_CurrentStyle_rtlimagemirroring(_a);};_pFileItemEditCtrl._getAccessibilityLabel=function(_a){var _b="";if(this.parent.parent._first_focus){var _c=this.parent.parent;_b=_c._control_element._makeAccessibilityLabelbyReadtype();}_b+=" "+nexacro.Component.prototype._getAccessibilityLabel.call(this,_a);return _b;};delete _pFileItemEditCtrl;nexacro.FileItemButtonCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Button.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;this._button=null;};var _pFileItemButtonCtrl=nexacro._createPrototype(nexacro.Button,nexacro.FileItemButtonCtrl);nexacro.FileItemButtonCtrl.prototype=_pFileItemButtonCtrl;_pFileItemButtonCtrl.on_find_CurrentStyle_background=function(_a){return this.parent.parent._find_pseudo_obj("buttonbackground",_a,"background");};_pFileItemButtonCtrl.on_find_CurrentStyle_gradation=function(_a){return this.parent.parent._find_pseudo_obj("buttongradation",_a,"gradation");};_pFileItemButtonCtrl.on_find_CurrentStyle_border=function(_a){return this.parent.parent._find_pseudo_obj("buttonborder",_a,"border");};_pFileItemButtonCtrl.on_find_CurrentStyle_bordertype=function(_a){return this.parent.parent._find_pseudo_obj("buttonbordertype",_a,"bordertype");};_pFileItemButtonCtrl.on_find_CurrentStyle_padding=function(_a){var _b=this.parent.parent._find_pseudo_obj("buttonpadding",_a,"padding");return (_b)?_b:this._defaultPadding;};_pFileItemButtonCtrl.on_find_CurrentStyle_margin=function(_a){var _b=this.parent.parent._find_pseudo_obj("buttonmargin",_a,"margin");return (_b)?_b:this._defaultMargin;};_pFileItemButtonCtrl.on_find_CurrentStyle_font=function(_a){var _b=this.parent.parent._find_pseudo_obj("buttonfont",_a,"font")||this._find_inherit_pseudo_obj("font",_a,"font")||nexacro.Component._default_font;return _b;};_pFileItemButtonCtrl.on_find_CurrentStyle_color=function(_a){var _b=this.parent.parent._find_pseudo_obj("buttoncolor",_a,"color")||this._find_inherit_pseudo_obj("color",_a,"color")||nexacro.Component._default_color;return _b;};_pFileItemButtonCtrl.on_find_CurrentStyle_accessibility=function(_a){return this.parent.parent.on_find_CurrentStyle_buttonaccessibility(_a);};_pFileItemButtonCtrl.on_find_CurrentStyle_rtlimagemirroring=function(_a){return this.parent.parent.on_find_CurrentStyle_rtlimagemirroring(_a);};_pFileItemButtonCtrl._getAccessibilityLabel=function(_a){var _b="";if(this.parent.parent._first_focus){var _c=this.parent.parent;_b=_c._control_element._makeAccessibilityLabelbyReadtype();}_b+=" "+nexacro.Component.prototype._getAccessibilityLabel.call(this,_a);return _b;};_pFileItemButtonCtrl.on_fire_sys_onkeyup=function(_a,_b,_c,_d,_e,_f){var _g=nexacro.Component.prototype.on_fire_onkeyup.call(this,_a,_b,_c,_d,_e,_f);if(_a==13||_a==32){this.click();}return _g;};delete _pFileItemButtonCtrl;};