C_ListView.js 59 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: hal
  3. // (C) Copyright IBM Corp. 2003, 2017.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function C_ListView(_hIB1, _h7O1, _hLN1){if(!_h7O1){var _hJB1=U_XML.F_CreateDocument();_h7O1=_hJB1.appendChild(_hJB1.createElement("listView"));_h7O1.setAttribute( "view", "report" );_h7O1.appendChild(_hJB1.createElement("listItems"));}this._hI91=G_HAL.M_oLibraries["hal"]["enableAccessibility"];this._hKE2=document;this._hFI1=G_HAL.M_sImagePath;this._hXN1=_hLN1?_hLN1:null;this._hK91=window["G_ResManager"]?G_ResManager:null;this._hR91=_hIB1;this._hR91.onselectstart=G_Framework.F_OnSelectStart;this._hR91.ondragstart=U_DOM.F_CancelEvent;this._hR91._hCO1=this;this._h8O1=_h7O1;if(!_h7O1.getAttribute("view")){_h7O1.setAttribute( "view", "report" );}else if(_h7O1.getAttribute( "view" )=="gallery" ){_h7O1.setAttribute( "classPrefix", "clsListItem_gallery" );_h7O1.setAttribute( "hotTracking", "true" );_h7O1.setAttribute( "clipLabels", "false" );if(!_h7O1.getAttribute("iconHeight")){_h7O1.setAttribute( "iconHeight", "64px" );}if(!_h7O1.getAttribute("iconWidth")){_h7O1.setAttribute( "iconWidth", "64px" );}}this._hFZ1=this._h8O1.getAttribute( "guiDirection" )||G_HAL.M_oLibraries["hal"]["defaultGuiDirection"];if(this._hFZ1){this._hR91.style.direction=this._hFZ1;}this._hPM=this._h8O1.getAttribute("textDirection")||this._hFZ1;this._hHP1=(this._hFZ1=="rtl");this._h97=this._hHP1?"paddingRight":"paddingLeft";this._hOI=this._h8O1.getAttribute("smallIconHeight");if(!this._hOI){this._hOI="16px";}this._hQM=this._h8O1.getAttribute("smallIconWidth");if(!this._hQM){this._hQM="16px";}this._hKB1=this._h8O1.getAttribute("iconHeight");if(!this._hKB1){this._hKB1="32px";}this._hGI1=this._h8O1.getAttribute("iconWidth");if(!this._hGI1){this._hGI1="32px";}this._hPN=this._h8O1.getAttribute("iconLabelWidth");if(!this._hPN){this._hPN="55px";}this._h0B1=( _h7O1.getAttribute( "readOnly" )=="true" );this._hHY=( _h7O1.getAttribute( "selectable" ) != "false" );this._hER=( _h7O1.getAttribute( "multiSelect" )=="true" );this._hQN=!this._hER&&( _h7O1.getAttribute( "forceSelection" ) != "false" );var _hU92=this._h8O1.getAttribute("view");this._hYD=( _hU92!="radio" )&&( _hU92 != "horizontalRadio" )&&( _h7O1.getAttribute( "allowCtrlDeselect" ) != "false" );this._hRN=( _h7O1.getAttribute( "hoverSelection" )=="true" );this._hX41=( _h7O1.getAttribute( "hotTracking" ) != "false" );this._hSS=( _h7O1.getAttribute( "fullRowSelect" )=="true" );this._hZD=( _h7O1.getAttribute( "showColumnHeaders" ) != "false" );this._hHI1=( _h7O1.getAttribute( "keySearch" )||"none" );this._hPI=( _h7O1.getAttribute( "resolveIconPath" ) != "false" );var _hS02=_h7O1.getAttribute("classPrefix");if(!_hS02){_hS02="clsListItem";}this._hII1=_hS02+"_normal";this._hIP1=_hS02+"_hover";this._hY41=_hS02+"_selected";this._hJP1=true;this._hAU1=false;this._hRJ=1;this._hTF=G_HAL.M_oLibraries["hal"]["enableHighContrastMode"];if(this._hI91){U_Accessibility.F_SetAriaStateAndProperty(this._hR91, "aria-readonly", this._h0B1);this._hR91.tabIndex=-1;var _h492=_h7O1.getAttribute("a11y_name");if(_h492){this._hR91.setAttribute("aria-label", _h492);}}this.F_Draw();};C_ListView.prototype.F_Detach=function(){if(this._hLG1){this._hLG1.F_Detach();}this._hIG();if(this._h731){this._h731.F_Detach();}this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerover":"onmouseover"]=null;this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerout":"onmouseout"]=null;this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=null;this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerup":"onmouseup"]=null;this._hR91.ondblclick=null;this._hR91.onkeydown=null;this._hR91.onscroll=null;this._h0E();this._hH();this._hYN1("*");this._hR91._hCO1=null;this._h39=null;};C_ListView.prototype.F_GetId=function(){return this._hR91.id;};C_ListView.prototype.F_GetContainer=function(){return this._hR91;};C_ListView.prototype.F_Clear=function(){var _h1I1=this._h8O1.selectSingleNode("listItems");while(_h1I1.hasChildNodes()){_h1I1.removeChild(_h1I1.lastChild);}this._hRJ=1;};C_ListView.prototype.F_AppendNewListItem=function(){return this._h8O1.selectSingleNode( "listItems" ).appendChild( this._h8O1.ownerDocument.createElement( "listItem" ) );};C_ListView.prototype.F_GetListItems=function(){return this._h8O1.selectNodes("listItems/listItem");};C_ListView.prototype.F_GetListViewNode=function(){return this._h8O1;};C_ListView.prototype.F_GetListItemsNode=function(){return this._h8O1.selectSingleNode("listItems");};C_ListView.prototype.F_GetSingleSelectedListItem=function(){var nl=this._hN();return(nl.length==1)?nl.item(0):null;};C_ListView.prototype.F_GetSelectedListItem=function(){return this._h8O1.selectSingleNode("listItems/listItem[@selected='true']");};C_ListView.prototype._hN=function(){return this._h8O1.selectNodes("listItems/listItem[@selected='true']");};C_ListView.prototype._hO=function(n1,n2){var i1=parseInt(n1.getAttribute("selectedCounter"));var i2=parseInt(n2.getAttribute("selectedCounter"));return(i1>i2)?1:((i1<i2)?-1:0);};C_ListView.prototype.F_GetSelectedListItems=function(){var _h6I1=U_XML.F_AppendNodeListToArray(null, this._hN());_h6I1.sort(this._hO);return _h6I1;};C_ListView.prototype.F_GetUnselectedListItems=function(){return this._h8O1.selectNodes( "listItems/listItem[not(@selected) or @selected='false']" );};C_ListView.prototype.F_GetCheckedListItems=function(){return this._h8O1.selectNodes("listItems/listItem[@checked='true']");};C_ListView.prototype.F_GetUncheckedListItems=function(){return this._h8O1.selectNodes( "listItems/listItem[not(@checked) or @checked='false']" );};C_ListView.prototype.F_CheckAll=function(){var nl=this.F_GetUncheckedListItems();for(var i=0;i<nl.length;i++){var _hBO1=nl.item(i);if(_hBO1.getAttribute( "staticCheckbox" ) != "true" ){_hBO1.setAttribute( "checked", "true" );this._hX2(_hBO1);}}this.F_Draw();};C_ListView.prototype.F_UncheckAll=function(){var nl=this.F_GetCheckedListItems();for(var i=0;i<nl.length;i++){var _hBO1=nl.item(i);if(_hBO1.getAttribute( "staticCheckbox" ) != "true" ){_hBO1.removeAttribute("checked");this._hX2(_hBO1);}}this.F_Draw();};C_ListView.prototype.F_SelectAll=function(){var nl=this.F_GetUnselectedListItems();var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var _hBO1=nl.item(i);_hBO1.setAttribute( "selected", "true" );this._hX2(_hBO1);}this.F_Draw();return _hBZ1;};C_ListView.prototype.F_DeselectAll=function(){return this.F_ClearSelections(true);};C_ListView.F_RemoveListItemWithValue=function(_h7O1,_h552){return U_XML.F_RemoveNode( _h7O1, "listItems/listItem[@value=" + _h552.F_ToXPathString() + "]" );};C_ListView.prototype.F_RemoveListItemWithValue=function(_h552){return C_ListView.F_RemoveListItemWithValue(this._h8O1, _h552);};C_ListView.prototype.F_GetEnabled=function(){return Boolean(this._hAU1);};C_ListView.prototype._hI31=function(_h692){var _hJI1=this._h49(_h692);if(!_hJI1){return;}if(this._hXN1&&this._hXN1.F_ListView_OnBeforeItemClick){if(!this._hXN1.F_ListView_OnBeforeItemClick(this)){return;}}var _hBO1=_hJI1.nNode;if ((this._h392=="checkbox" )||( this._h392=="horizontalCheckbox" ) ){if(_hBO1.getAttribute( "staticCheckbox" ) != "true" ){this._h39=_hBO1;this._hTS(_hJI1);this._h9B(_hBO1);}return;}var _h0O1=( _hBO1.getAttribute( "selected" )=="true" );if(_h0O1&&!this._hQN){if(this._hER){C_ListView.s_oMouseUpListView=this;this._hA1=_hBO1;this._h39=_hBO1;}}else{this.F_ClearSelections(false);this._hUS(_hBO1);this._h39=_hBO1;}this._h6X();};C_ListView.prototype.F_SetEnabled=function(_hFU1){if(_hFU1==this._hAU1){return;}this._hAU1=_hFU1;if(_hFU1){if(G_BrowserInfo.M_bIsTouchDevice&&G_HAL.M_oLibraries["hal"]["enableFastClick"]){this._hLG1=new C_FastClick(this._hR91, this._hI31.bind(this));}else{this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerover":"onmouseover"] =function(e){ this._hCO1.F_OnMouseOver(e); };this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerout":"onmouseout"] =function(e){ this._hCO1.F_OnMouseOut(e); };this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"] =function(e){ this._hCO1.F_OnMouseDown(e); };this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerup":"onmouseup"] =function(e){ this._hCO1.F_OnMouseUp(e); };this._hR91.ondblclick=function(e){ this._hCO1.F_OnDblClick(e); };this._hR91.onkeydown=function(e){ this._hCO1.F_OnKeyDown(e); };this._hR91.onscroll=function(e){ this._hCO1.F_OnScroll(e); };this._hH(true);}}else{if(this._hLG1){this._hLG1.F_Detach();this._hLG1=null;}this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerover":"onmouseover"]=null;this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerout":"onmouseout"]=null;this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=null;this._hR91[G_BrowserInfo.M_bIsPointerEnabled?"onpointerup":"onmouseup"]=null;this._hR91.ondblclick=null;this._hR91.onkeydown=null;this._hR91.onscroll=null;this._hH();}if(!this._h0B1){U_DOM.F_SetTextEnabled(this._hR91, _hFU1);switch(this._h8O1.getAttribute("view")){case "radio":case "horizontalRadio":this._h6X();break;case "checkbox":case "horizontalCheckbox":this.F_UpdateCheckboxes();break;}}if(this._hI91){U_Accessibility.F_SetAriaStateAndProperty(this._hR91, "aria-disabled", !_hFU1);if(this._hLB1){this._hLB1.tabIndex=_hFU1?0:-1;}}};C_ListView.prototype.F_GetCustomHtmlElement=function(_hBO1){switch(this._h392){case "report":var _hJI1=this._hKE2.getElementById(_hBO1.getAttribute("htmlId"));return _hJI1.cells.item(0).firstChild.lastChild.firstChild;case "smallIcon":case "icon":case "gallery":case "token":var _hJI1=this._hKE2.getElementById(_hBO1.getAttribute("htmlId"));return _hJI1.firstChild;case "radio":case "horizontalRadio":case "checkbox":case "horizontalCheckbox":default:return null;}};C_ListView.prototype.F_ShowMessage=function(_hBC2){C_ListView.F_ShowMessage(this._hR91, _hBC2);};C_ListView.F_ShowMessage=function(_hIB1,_hBC2){_hIB1.innerHTML=G_HAL.M_oLibraries["hal"]["enableAccessibility"] ?'<div style="padding:3px; color:gray" tabIndex="0" role="gridcell">' + _hBC2.F_HTMLEncode() + '</div>':'<div style="padding:3px; color:gray">' + _hBC2.F_HTMLEncode() + '</div>';};C_ListView.prototype.F_Draw=function(){this._h392=this._h8O1.getAttribute("view");this._h0E();this.F_SetEnabled(!this._h0B1);switch(this._h392){case "report":this._hVS();break;case "smallIcon":this._hJG();break;case "icon":this._hZ41();break;case "gallery":this._hSN();break;case "token":this._hIY();break;case "radio":case "horizontalRadio":this._hJY();break;case "checkbox":this._h8O1.setAttribute( "showCheckboxes", "true" );this._hX41=false;this._hVS();break;case "horizontalCheckbox":this._hL1();break;}if(this._hKY!=this._h392){this._hR91.scrollTop=0;this._h051=this._hKE2.getElementById("idListViewDropCaret_"+this._h392);}this._hKY=this._h392;this._h6X();if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_ListView_OnAfterDraw){G_HAL.M_oTestListener.F_ListView_OnAfterDraw(this);}};C_ListView.prototype._hYN1=function(_hSJ,_hWS){var _hD62=_hWS?_hWS:this._hR91;var nl=_hD62.getElementsByTagName(_hSJ);var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var el=nl.item(i);if(el.nNode){el.nNode=null;}}_hD62.innerHTML="";};C_ListView.prototype._hL1=function(){this._hYN1("DIV");this._hX41=false;var _h8B1=this._h8O1.selectNodes("listItems/listItem");var _h1E=_h8B1.length;var _hLY=this._h8O1.getAttribute( "showTooltips" ) != "false";var _hMY=parseInt(this._h8O1.getAttribute("indentLength"));var _hKI1=this._h8O1.getAttribute( "textColor" )||"";var tbl=this._hR91.appendChild(this._hKE2.createElement("TABLE"));tbl.cellPadding=0;tbl.cellSpacing=0;tbl.className="clsDialogText";tbl.style.borderCollapse="collapse";tbl.style.fontSize="1em";U_XML.F_CopyAttribute(tbl, this._hR91, "blkTblAgn");U_Accessibility.F_SetRoleForLayoutTable(tbl);var tr=tbl.appendChild( this._hKE2.createElement( "TBODY" ) ).appendChild( this._hKE2.createElement( "TR" ) );for(var i=0;i<_h1E;i++){var _hBO1=_h8B1.item(i);var _hJI1=this._hKE2.createElement("DIV");_hJI1.className=this._hII1;_hJI1.style.color=_hKI1;var td=tr.appendChild(this._hKE2.createElement("TD"));td.style.whiteSpace="nowrap";if(i>0){td.style[this._h97]="1em";}td.appendChild(_hJI1);_hBO1.setAttribute("htmlId", _hJI1.uniqueID);_hJI1.nNode=_hBO1;_hJI1.style.whiteSpace="nowrap";if(_hMY){var _h151=_hBO1.getAttribute("indentLevel");if(_h151){_hJI1.style[this._h97]=(parseInt(_h151)*_hMY)+"px";}}var _hAV1=_hJI1.appendChild(this._hKE2.createElement("IMG"));var _hBV1=( _hBO1.getAttribute( "checked" )=="true" );_hAV1.setAttribute( "bIsCheckbox", "true" );if(_hBO1.getAttribute( "staticCheckbox" )=="true" ){_hAV1.src=this._hFI1+(_hBV1?"lv_checkbox_checked_static.gif":"lv_checkbox_static.gif");_hAV1.className=(_hBV1?"clsLVCheckbox_checked_static":"clsLVCheckbox_static");}else{_hAV1.src=this._hFI1+(_hBV1?"lv_checkbox_checked.gif":"lv_checkbox.gif");_hAV1.className=(_hBV1?"clsLVCheckbox_checked":"clsLVCheckbox");}if(this._h392=="checkbox"){_hAV1.style.margin=( this._hHP1?"2px 4px 2px 2px":"2px 2px 2px 4px" );}_hAV1.alt="";var _hPG1=_hBO1.getAttribute("smallIcon");if(_hPG1){var _h592=_hJI1.appendChild(this._hKE2.createElement("IMG"));_h592.style.height=this._hOI;_h592.style.width=this._hQM;_h592.src=this._hPI?G_HAL.F_GetImageURL(_hPG1):_hPG1;_h592.style.verticalAlign="middle";_h592.style.margin=( this._hHP1?"1px 3px 1px 2px":"1px 2px 1px 3px" );_h592.alt="";}var _h1O1=_hJI1.appendChild(this._hKE2.createElement("SPAN"));_h1O1.style.verticalAlign="middle";_h1O1.style.cursor="default";_h1O1.style[this._h97]="2px";this._hQG1(_hBO1, _h1O1);this._h8(_hBO1, _h1O1);if(_hLY){this._h251(_hBO1, _h1O1);}this._hHD(_hBO1, _hJI1, i);}};C_ListView.prototype._hJY=function(){this._hYN1("DIV");this._hR91.classList.add("clsDialogText");var _hBA1=(this._h392=="horizontalRadio");this._hX41=false;var _h8B1=this._h8O1.selectNodes("listItems/listItem");var _h1E=_h8B1.length;var _hLY=this._h8O1.getAttribute( "showTooltips" ) != "false";var _hMY=parseInt(this._h8O1.getAttribute("indentLength"));var _hKI1=this._h8O1.getAttribute( "textColor" )||"";var tr;if(_hBA1){var tbl=this._hR91.appendChild(this._hKE2.createElement("TABLE"));tbl.cellPadding=0;tbl.cellSpacing=0;tbl.className="clsDialogText";tbl.style.borderCollapse="collapse";tbl.style.fontSize="1em";U_XML.F_CopyAttribute(tbl, this._hR91, "blkTblAgn");U_Accessibility.F_SetRoleForLayoutTable(tbl);tr=tbl.appendChild( this._hKE2.createElement( "TBODY" ) ).appendChild( this._hKE2.createElement( "TR" ) );}for(var i=0;i<_h1E;i++){var _hBO1=_h8B1.item(i);var _hJI1=this._hKE2.createElement("DIV");_hJI1.className=this._hII1;_hJI1.style.color=_hKI1;if(_hBA1){var td=tr.appendChild(this._hKE2.createElement("TD"));td.style.whiteSpace="nowrap";if(i>0){td.style[this._h97]="1em";}td.appendChild(_hJI1);}else{this._hR91.appendChild(_hJI1);}_hBO1.setAttribute("htmlId", _hJI1.uniqueID);_hJI1.nNode=_hBO1;_hJI1.style.whiteSpace="nowrap";if((i>0)&&!_hBA1){_hJI1.style.paddingTop="4px";}if(_hMY){var _h151=_hBO1.getAttribute("indentLevel");if(_h151){_hJI1.style[this._h97]=(parseInt(_h151)*_hMY)+"px";}}var img=_hJI1.appendChild(this._hKE2.createElement("IMG"));img.alt="";var _hPG1=_hBO1.getAttribute("smallIcon");if(_hPG1){var _h592=_hJI1.appendChild(this._hKE2.createElement("IMG"));_h592.style.height=this._hOI;_h592.style.width=this._hQM;_h592.src=this._hPI?G_HAL.F_GetImageURL(_hPG1):_hPG1;_h592.style.verticalAlign="middle";_h592.style.margin=( this._hHP1?"1px 3px 1px 2px":"1px 2px 1px 3px" );_h592.alt="";}var _h1O1=_hJI1.appendChild(this._hKE2.createElement("SPAN"));_h1O1.style.verticalAlign="middle";_h1O1.style.cursor="default";_h1O1.style[this._h97]="2px";this._hQG1(_hBO1, _h1O1);this._h8(_hBO1, _h1O1);if(_hLY){this._h251(_hBO1, _h1O1);}this._hHD(_hBO1, _hJI1, i);}};C_ListView.F_ResizeToGalleryDimensions=function(_hIB1,_hTN,_hCV1,_hV92){var _hUN=1+1 + 64 + 1+1;var _hT02=2;var _h2E=4+_hT02;if(!_hV92){_hV92=Math.ceil(_hTN / _hCV1);}var _h852=_h2E+(Math.min(_hCV1, _hTN)*(_hT02 + _hUN+_hT02))+ _h2E;var _hMZ1=_h2E+(_hV92*(_hT02 + _hUN+_hT02))+ _h2E;_hIB1.style.width=_h852+"px";_hIB1.style.height=_hMZ1+"px";};C_ListView.prototype._hSN=function(){var _hCV1=parseInt(this._h8O1.getAttribute("columns"));var _hV92=parseInt(this._h8O1.getAttribute("rows"));C_ListView.F_ResizeToGalleryDimensions(this._hR91, this.F_GetListItems().length, _hCV1, _hV92);this._hZ41();};C_ListView.prototype._hZ41=function(){this._hYN1("DIV");var _h8B1=this._h8O1.selectNodes("listItems/listItem");var _h1E=_h8B1.length;var _hLY=this._h8O1.getAttribute( "showTooltips" ) != "false";var _hMB1=this._h8O1.getAttribute( "clipLabels" ) != "false";var _hE62=this._h8O1.getAttribute( "float" ) != "false";var _hXS=false;for(var i=0;i<_h1E;i++){var _hBO1=_h8B1.item(i);var _hJI1=this._hR91.appendChild(this._hKE2.createElement("DIV"));_hJI1.className=this._hII1;_hJI1.style.backgroundImage="none";_hBO1.setAttribute("htmlId", _hJI1.uniqueID);_hJI1.nNode=_hBO1;if(_hE62){_hJI1.style["cssFloat"] = "left";}this._hHD(_hBO1, _hJI1, i);var _hA92=_hBO1.getAttribute("html");if(_hA92!==null){_hXS=true;_hJI1.style.padding="0px";_hJI1.innerHTML=_hA92;this._h351(_hBO1, _hJI1);continue;}if(_hMB1){_hJI1.style.margin=( this._hHP1?"7px 3px 3px 5px":"7px 5px 3px 3px" );}else{_hJI1.style.margin=( this._hHP1?"7px 7px 3px 14px":"7px 14px 3px 7px" );}_hJI1.style.whiteSpace="nowrap";_hJI1.style.textAlign= "center";if(_hLY){this._h251(_hBO1, _hJI1);}var img=_hJI1.appendChild(this._hKE2.createElement("IMG"));img.style.height=this._hKB1;img.style.width=this._hGI1;var _h292=_hBO1.getAttribute("icon");img.src=this._hPI?G_HAL.F_GetImageURL(_h292):_h292;img.style.marginBottom="1px";img.alt=(_hJI1.title||"");_hJI1.appendChild(this._hKE2.createElement("BR"));var _h1O1=_hJI1.appendChild(this._hKE2.createElement("SPAN"));_h1O1.className=this._hII1;_h1O1.style.cursor="default";_h1O1.style.border="none";_h1O1.style.paddingLeft="3px";_h1O1.style.paddingRight="3px";if(_hMB1){_h1O1.style.display="inline-block";_h1O1.style.width=this._hPN;_h1O1.style.overflow="hidden";_h1O1.style.textOverflow="ellipsis";}this._hQG1(_hBO1, _h1O1);this._h8(_hBO1, _h1O1);}if(_hXS&&this._hK91){this._hK91.F_ApplyResStrings(this._hR91);}};C_ListView.prototype._hIY=function(){this._hYN1("DIV");this._hR91.style.whiteSpace="normal";var _h8B1=this._h8O1.selectNodes("listItems/listItem");var _h1E=_h8B1.length;var _hLY=this._h8O1.getAttribute( "showTooltips" ) != "false";var _hXS=false;for(var i=0;i<_h1E;i++){var _hBO1=_h8B1.item(i);var _hJI1=this._hR91.appendChild(this._hKE2.createElement("SPAN"));var _hS02=_hBO1.getAttribute("classPrefix");_hJI1.className=(_hS02?_hS02+"_normal":this._hII1);_hBO1.setAttribute("htmlId", _hJI1.uniqueID);_hJI1.nNode=_hBO1;this._hHD(_hBO1, _hJI1, i);var _hA92=_hBO1.getAttribute("html");if(_hA92!==null){_hXS=true;_hJI1.innerHTML=_hA92;this._h351(_hBO1, _hJI1);continue;}if(_hLY){this._h251(_hBO1, _hJI1);}this._hQG1(_hBO1, _hJI1, true);this._h8(_hBO1, _hJI1);}if(_hXS&&this._hK91){this._hK91.F_ApplyResStrings(this._hR91);}};C_ListView.prototype._hJG=function(){this._hYN1("DIV");var _h8B1=this._h8O1.selectNodes("listItems/listItem");var _h1E=_h8B1.length;var _hLY=this._h8O1.getAttribute( "showTooltips" ) != "false";var _hXS=false;for(var i=0;i<_h1E;i++){var _hBO1=_h8B1.item(i);var _hJI1=this._hR91.appendChild(this._hKE2.createElement("DIV"));if(_hBO1.getAttribute("id")){_hJI1.id=_hBO1.getAttribute("id");}_hJI1.className=this._hII1;_hJI1.style.margin="1px";_hJI1.style["cssFloat"] = "left";_hBO1.setAttribute("htmlId", _hJI1.uniqueID);_hJI1.nNode=_hBO1;if(_hLY){this._h251(_hBO1, _hJI1);}this._hHD(_hBO1, _hJI1, i);var _hA92=_hBO1.getAttribute("html");if(_hA92!==null){_hXS=true;_hJI1.style.padding="0px";_hJI1.innerHTML=_hA92;this._h351(_hBO1, _hJI1);}else{var _hNY=_hBO1.getAttribute("smallSvgIcon");if(_hNY){var _hVN=document.createElement("span");_hVN.innerHTML=U_DOM.F_CreateSvgString(_hBO1, _hNY);_hVN.setAttribute("class", "clsListViewSvgIcon");_hJI1.appendChild(_hVN);}else{_hJI1.style.padding="4px";var img=_hJI1.appendChild(this._hKE2.createElement("IMG"));img.style.height=this._hOI;img.style.width=this._hQM;var _hPG1=_hBO1.getAttribute("smallIcon");img.src=this._hPI?G_HAL.F_GetImageURL(_hPG1):_hPG1;img.alt=(_hJI1.title||"");}}}if(_hXS&&this._hK91){G_HAL.F_VerifyDependencies("G_ResManager");this._hK91.F_ApplyResStrings(this._hR91);}};C_ListView.prototype.F_ClearSelections=function(_hNB1){var _hMG1=this._hN();var _hVF=_hMG1.length;for(var i=0;i<_hVF;i++){this._hL91(_hMG1.item(i), false);}if(_hNB1!=false){this._h6X();}this._hRJ=1;return _hVF;};C_ListView.F_FindListItemByIndex=function(_h7O1,_h652){return _h7O1.selectSingleNode( "listItems/listItem[" + ( _h652 + 1 ) + "]" );};C_ListView.prototype.F_FindListItemByIndex=function(_h652){return C_ListView.F_FindListItemByIndex(this._h8O1, _h652);};C_ListView.F_FindListItem=function(_h7O1,_hNG1,_h552,_hM91){if(_hM91){return _h7O1.selectSingleNode( "listItems/listItem[translate(@" + _hNG1 + ", 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = " + _h552.toLowerCase().F_ToXPathString() + "]" );}return _h7O1.selectSingleNode( "listItems/listItem[@" + _hNG1 + " = " + _h552.F_ToXPathString() + "]" );};C_ListView.prototype.F_FindListItem=function(_hNG1,_h552,_hM91){return C_ListView.F_FindListItem(this._h8O1, _hNG1, _h552, _hM91);};C_ListView.F_FindListItems=function(_h7O1,_hNG1,_hWZ1,_hM91){if(_hWZ1.length>0){var _hU02=U_XML.F_ConstructAttributeFilter( _hNG1, "=", _hWZ1, "or", _hM91 );return U_XML.F_AppendNodeListToArray(null, _h7O1.selectNodes("listItems/listItem"+_hU02));}return [];};C_ListView.prototype.F_FindListItems=function(_hNG1,_hWZ1,_hM91){return C_ListView.F_FindListItems(this._h8O1, _hNG1, _hWZ1, _hM91);};C_ListView.F_GetListItemLabel=function(_hBO1){var _h4P1=_hBO1.getAttribute("idsLabel");if(_h4P1){return G_ResManager.F_GetString(_h4P1);}return _hBO1.getAttribute("label");};C_ListView.prototype.F_GetListItemLabel=function(_hBO1){return C_ListView.F_GetListItemLabel(_hBO1);};C_ListView.prototype.F_SelectByValue=function(_h552,_hM91,_hF31){var _hBO1=C_ListView.F_FindListItem(this._h8O1, "value", _h552, _hM91);this.F_SelectListItem(_hBO1, _hF31);};C_ListView.prototype.F_SelectByIndex=function(_h652,_hF31){var _hBO1=C_ListView.F_FindListItemByIndex(this._h8O1, _h652);this.F_SelectListItem(_hBO1, _hF31);};C_ListView.prototype.F_SelectListItems=function(_h6I1,_hF31){this.F_ClearSelections(false);for(var i=0;i<_h6I1.length;i++){this._hUS(_h6I1[i], _hF31);}this._h6X();};C_ListView.prototype.F_SelectListItem=function(_hBO1,_hF31){this.F_ClearSelections(false);if(_hBO1){this._hUS(_hBO1, _hF31);this.F_EnsureVisible(_hBO1);}this._h6X();};C_ListView.prototype._hL91=function(_hBO1,b){if(!this._hHY||( _hBO1.getAttribute( "selectable" )=="false" ) ){return;}if(b){_hBO1.setAttribute( "selected", "true" );_hBO1.setAttribute("selectedCounter", this._hRJ++);}else{_hBO1.removeAttribute("selected");_hBO1.removeAttribute("selectedCounter");}this._hX2(_hBO1);};C_ListView.prototype._hUS=function(_hBO1,_hF31){this._hL91(_hBO1, true);if(_hF31!=false){this._hWN(_hBO1, NaN);}};C_ListView.prototype._hWN=function(_hBO1,_hQ31){if(this._hXN1&&this._hXN1.F_ListView_OnItemClick){this._hXN1.F_ListView_OnItemClick(this, _hBO1, _hQ31);}if(this._hI91){var _hJI1=document.getElementById(_hBO1.getAttribute("htmlId"));if(_hJI1){if(this._hLB1){this._hLB1.setAttribute( "tabIndex", "-1" );}_hJI1.setAttribute( "tabIndex", "0" );this._hLB1=_hJI1;}}};C_ListView.prototype._h9B=function(_hBO1){if(this._hXN1&&this._hXN1.F_ListView_OnCheckboxClick){return this._hXN1.F_ListView_OnCheckboxClick(this, _hBO1);}};C_ListView.prototype.F_HitTest=function(x,y){var el=this._hKE2.elementFromPoint(x, y);if(el){return this._h49(el);}return null;};C_ListView.prototype._hAB=function(_hOY,_hOB1){for(var n=_hOY; n; n=U_XML.F_GetNextSiblingElement(n)){if(n==_hOB1){for(var n=_hOY; n; n=U_XML.F_GetNextSiblingElement(n)){this._hUS(n, false);if(n==_hOB1){return;}}}}for(var n=_hOY; n; n=U_XML.F_GetPreviousSiblingElement(n)){if(n==_hOB1){for(var n=_hOY; n; n=U_XML.F_GetPreviousSiblingElement(n)){this._hUS(n, false);if(n==_hOB1){return;}}}}};C_ListView.prototype.F_SetActive=function(_hYO1){if(this._hJP1!=_hYO1){this._hJP1=_hYO1;this._h6X();}};C_ListView.prototype._h6X=function(){this._hV02=null;this._hDV1=null;var _h451=this._hJP1?this._hY41:this._hY41+"_inactive";if(this._hTF){_h451 += " clsHighContrastSelected";}switch(this._h392){case "report":var _hMG1=this._hN();var _hVF=_hMG1.length;var _hD02=this._h731?this._hR91.lastChild.firstChild:this._hR91.firstChild;var _hPY=_hD02.rows?_hD02.rows.length:0;for(var i=0;i<_hPY;i++){var tr=_hD02.rows.item(i);if(tr.className){tr.className="";}if(this._hSS){tr.className=this._hII1;}else{tr.cells.item(0).firstChild.className=this._hII1;if(this._hHP1){tr.cells.item(0).firstChild.style.textAlign="right";}}}for(var i=0;i<_hVF;i++){var tr=this._hKE2.getElementById(_hMG1.item(i).getAttribute("htmlId"));if(this._hSS){tr.className=_h451;}else{tr.cells.item(0).firstChild.className=_h451;}}break;case "icon":case "gallery":var _hMG1=this._hN();var _hVF=_hMG1.length;var _h551=this.F_GetUnselectedListItems();var _hBB=_h551.length;for(var i=0;i<_hBB;i++){var _hJI1=this._hKE2.getElementById(_h551.item(i).getAttribute("htmlId"));_hJI1.className=this._hII1;_hJI1.lastChild.className=this._hII1;}for(var i=0;i<_hVF;i++){var _hJI1=this._hKE2.getElementById(_hMG1.item(i).getAttribute("htmlId"));_hJI1.className=_h451;_hJI1.lastChild.className=_h451;}break;case "smallIcon":var nl=this._hR91.getElementsByTagName("DIV");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var div=nl.item(i);if(div.nNode){var _hQY=div.className;var _hKP1=( div.nNode.getAttribute( "selected" )=="true" )?_h451:this._hII1;if(_hQY!=_hKP1){div.className=_hKP1;}}}break;case "radio":case "horizontalRadio":var _h651=this._hFI1+(this._hAU1?"lv_radio_checked.gif":"lv_radio_checked_disabled.gif");var _hYS=(this._hAU1?"clsLVRadio_checked":"clsLVRadio_checked_disabled");var _hZS=this._hFI1+(this._hAU1?"lv_radio.gif":"lv_radio_disabled.gif");var _hTJ=(this._hAU1?"clsLVRadio":"clsLVRadio_disabled");var nl=this._hR91.getElementsByTagName("DIV");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var div=nl.item(i);var img=div.getElementsByTagName("IMG").item(0);var _hKC2=( div.nNode.getAttribute( "selected" )=="true" )?_h651:_hZS;var _hPB1=img.src;var _h1D2=_hPB1.indexOf(_hKC2);if((_h1D2==-1)||((_hPB1.length-_hKC2.length)!=_h1D2)){img.src=_hKC2;var _hLI1=( div.nNode.getAttribute( "selected" )=="true" )?_hYS:_hTJ;if(img.className!=_hLI1){img.className=_hLI1;}}}break;case "token":var _hMG1=this._hN();var _hVF=_hMG1.length;var _h551=this.F_GetUnselectedListItems();var _hBB=_h551.length;for(var i=0;i<_hBB;i++){var _hJI1=this._hKE2.getElementById(_h551.item(i).getAttribute("htmlId"));var _hS02=_hJI1.nNode.getAttribute("classPrefix");_hJI1.className=(_hS02?_hS02+"_normal":this._hII1);}for(var i=0;i<_hVF;i++){var _hJI1=this._hKE2.getElementById(_hMG1.item(i).getAttribute("htmlId"));var _hS02=_hJI1.nNode.getAttribute("classPrefix");_hJI1.className=(_hS02?_hS02+"_selected":this._hY41);}break;}};C_ListView.prototype._h49=function(_hLZ1){if(this._hR91.contains(_hLZ1)){for(;_hLZ1&&(_hLZ1!=this._hR91);_hLZ1=_hLZ1.parentNode){if(_hLZ1.nNode){return _hLZ1;}}}return null;};C_ListView.prototype.F_OnMouseOver=function(e){var _hJI1=this._h49(e.target);if(_hJI1){var _hBO1=_hJI1.nNode;if(_hBO1.getAttribute( "selected" ) != "true" ){if(_hBO1.getAttribute( "selectable" )=="false" ){}else if(this._hRN){this.F_ClearSelections(false);_hBO1.setAttribute( "selected", "true" );this._h6X();}else if(this._hX41){var _hLP1=this._hIP1;if(this._hTF){_hLP1 += " clsHighContrastHover";}switch(this._h392){case "icon":case "gallery":this._hV02=_hJI1.lastChild;this._hDV1=_hJI1;break;case "smallIcon":this._hV02=_hJI1;break;case "token":this._hV02=_hJI1;var _hS02=_hBO1.getAttribute("classPrefix");if(_hS02){_hLP1=_hS02+"_hover";}break;case "report":if(this._hSS){this._hV02=_hJI1;}else{this._hV02=_hJI1.cells.item(0).firstChild;}break;}this._hV02.className=_hLP1;if(this._hDV1){this._hDV1.className=_hLP1;}}if(this._h8O1.getAttribute("useSuperTooltips")=="true"){this._h0T(this._hV02);}}}};C_ListView.prototype._h0T=function(_hXN){var _h751=(this._hI91&&C_Dialog.F_GetActiveDialogHandle());if(!_h751){var _hF62=_hXN.id;var _h7O1=this._h8O1;var _h851=_h7O1.selectSingleNode( "listItems/listItem[@id=" + _hF62.F_ToXPathString() + "]" );var _h1U1={};if(_h851){_h1U1._h292=_h851.getAttribute("smallIcon");_h1U1._h3U1=_h851.getAttribute("tooltip");_h1U1._hBG1=_h851.getAttribute("idsLabel");_h1U1._h831=_h851.getAttribute("description");_h1U1._hAR=_h851.getAttribute("idsTooltip");}G_TooltipManager.F_ActivateTarget(this, _hXN, _h1U1, G_TooltipManager.F_GetSimpleTooltip());}};C_ListView.prototype.F_OnMouseOut=function(e){if(this._hRN){return;}var _hJI1=this._h49(e.target);if(_hJI1){var _hBO1=_hJI1.nNode;if ((_hBO1.getAttribute( "selected" ) != "true" )&&this._hX41 ){var _hMI1=this._hII1;var _hS02=_hBO1.getAttribute("classPrefix");if(_hS02){_hMI1=_hS02+"_normal";}if(this._hV02){this._hV02.className=_hMI1;this._hV02=null;}if(this._hDV1){this._hDV1.className=_hMI1;this._hDV1=null;}}}if(this._h8O1.getAttribute("useSuperTooltips")=="true"){G_TooltipManager.F_ConditionalDeactivateTarget(e.relatedTarget);}};C_ListView._hUJ=function(e){if(C_ListView.s_oMouseUpListView){C_ListView.s_oMouseUpListView._h59(e);}G_CaptureManager.F_StopCapture();};C_ListView._hA7=function(e){G_Debug.F_Print('C_ListView._hA7');e.stopPropagation(); if(C_ListView.s_aPotentialDragNodes){if(G_DragDrop.F_ExceedsDragSize(C_ListView.s_iPotentialDragNodeX-e.clientX, C_ListView.s_iPotentialDragNodeY-e.clientY)){var _hCO1=C_ListView._hRY;if(_hCO1&&_hCO1._hXN1.F_ListView_OnDragStart){_hCO1._hXN1.F_ListView_OnDragStart(_hCO1, C_ListView.s_aPotentialDragNodes, _hCO1._hVJ, e);}C_ListView._hRY=null;C_ListView.s_aPotentialDragNodes=null;}}};C_ListView.prototype.F_OnMouseDown=function(e){if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_TestListener_ListViewOnMouseDown){G_HAL.M_oTestListener.F_TestListener_ListViewOnMouseDown(e, this);}if(G_BrowserInfo.M_bIsIE){if(e.target.componentFromPoint(e.clientX, e.clientY).indexOf("outside")!=-1){e.stopPropagation();return;}}else{var _hIC2=U_DOM.F_GetRelativeOffset(this._hR91, this._hR91.ownerDocument.body);var _hQB1=this._hR91.clientWidth+_hIC2.left;var _hRB1=this._hR91.offsetWidth+_hIC2.left;var _hSB1=this._hR91.clientHeight+_hIC2.top;var _hTB1=this._hR91.offsetHeight+_hIC2.top;if((e.clientX>_hQB1&&e.clientX<_hRB1)||(e.clientY>_hSB1&&e.clientY<_hTB1)){e.stopPropagation();return;}}if(this._hRN){e.stopPropagation();}var _h692=e.target;if(this._hRN&&!this._hR91.contains(_h692)){var _hIC2=U_DOM.F_GetRelativeOffset(this._hR91, document.body);if(!Math.F_PointInRect(e.clientY, e.clientX, _hIC2.top, _hIC2.left, this._hR91.offsetWidth, this._hR91.offsetHeight)){return;}}if(!this._hI91){U_DOM.F_SetActiveOrFocus(this._hR91);}var _hJI1=this._h49(_h692);if(!_hJI1){return;}if(this._hXN1&&this._hXN1.F_ListView_OnBeforeItemClick){if(!this._hXN1.F_ListView_OnBeforeItemClick(this)){return;}}var _hBO1=_hJI1.nNode;if ((this._h392=="checkbox" )||( this._h392=="horizontalCheckbox" ) ){if(_hBO1.getAttribute( "staticCheckbox" ) != "true" ){this._h39=_hBO1;this._hTS(_hJI1);this._h9B(_hBO1);}return;}var _h0O1=( _hBO1.getAttribute( "selected" )=="true" );if(this._hER&&e.shiftKey&&this.F_GetSelectedListItem()){var a=this.F_GetSelectedListItems();this.F_ClearSelections(false);this._hAB(a[0], _hBO1);this._hWN(_hBO1, e.button);}else if(_h0O1&&!this._hQN){if(this._hER){C_ListView.s_oMouseUpListView=this;this._hA1=_hBO1;this._h39=_hBO1;}}else{this._h65=true;if(e.ctrlKey&&(this._hER||this._hYD)){if(!this._hER){this.F_ClearSelections(false);}this._hL91(_hBO1, !_h0O1);this._hWN(_hBO1, e.button);this._h39=_hBO1;}else{this.F_ClearSelections(false);this._hUS(_hBO1);this._h39=_hBO1;}}this._h6X();if(!this._hRN){C_ListView.s_aPotentialDragNodes=this.F_GetSelectedListItems();var _hMP1={};_hMP1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerup":"onmouseup"]=C_ListView._hUJ.bind(C_ListView);_hMP1["onStopCapture"]=C_ListView._hSY.bind(C_ListView);if(window["G_DragDrop"]){_hMP1[G_BrowserInfo.M_bIsPointerEnabled?"onpointermove":"onmousemove"]=C_ListView._hA7.bind(C_ListView);}G_CaptureManager.F_StartCapture(_hMP1);this._hVJ=e.button;C_ListView._hRY=this;C_ListView.s_iPotentialDragNodeX=e.clientX;C_ListView.s_iPotentialDragNodeY=e.clientY;}if(this._h8O1.getAttribute("useSuperTooltips")=="true"){G_TooltipManager.F_DeactivateTarget();}};C_ListView._hSY=function(){C_ListView._hT3();C_ListView.s_aPotentialDragNodes=null;C_ListView._hRY=null;};C_ListView.prototype.F_OnMouseUp=function(e){var _h75=this._h65;this._h65=false;if(e.button!=U_DOM.K_iLeftMouseButton){return;}var _hJI1=this._h49(e.target);if(!_hJI1){return;}var _hBO1=_hJI1.nNode;if(this._hRN){if(!_h75){this.F_ClearSelections(false);this._hUS(_hBO1);this._h39=_hBO1;this._h6X();}}else if ((e.target.getAttribute( "bIsCheckbox" )||e.target.getAttribute( "checkboxItem" )=="true" )&&( _hBO1.getAttribute( "staticCheckbox" ) != "true" ) ){if ((this._h392=="checkbox" )||( this._h392=="horizontalCheckbox" ) ){return;}if(this._h9B(_hBO1)===false){return;}var _hBV1=_hBO1.getAttribute( "checked" ) != "true";_hBO1.setAttribute( "checked", _hBV1?"true":"false" );var _hNI1=e.target.getAttribute( "checkboxItem" )=="true"?e.target.firstChild.firstChild.firstChild:e.target;_hNI1.src=this._hFI1+(_hBV1?"lv_checkbox_checked.gif":"lv_checkbox.gif");_hNI1.className=(_hBV1?"clsLVCheckbox_checked":"clsLVCheckbox");this._hX2(_hBO1);}};C_ListView.prototype.F_OnDblClick=function(e){if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_TestListener_ListViewOnDblClick){G_HAL.M_oTestListener.F_TestListener_ListViewOnDblClick(e, this);}var _hJI1=this._h49(e.target);if(_hJI1&&this._h39&&(_hJI1.nNode==this._h39)){if ((this._h392=="checkbox" )||( this._h392=="horizontalCheckbox" ) ){if(_hJI1.nNode.getAttribute( "staticCheckbox" ) != "true" ){this._hTS(_hJI1);this._h9B(_hJI1.nNode);}}if(this._hXN1&&this._hXN1.F_ListView_OnItemDblClick){setTimeout(this._hXN1.F_ListView_OnItemDblClick.bind(this._hXN1, this, _hJI1.nNode), 0);}}};C_ListView._hT3=function(){if(C_ListView.s_oMouseUpListView){C_ListView.s_oMouseUpListView._hA1=null;C_ListView.s_oMouseUpListView=null;}};C_ListView.prototype._h59=function(e){var _hBO1=this._hA1;if(e.ctrlKey){this._hL91( _hBO1, _hBO1.getAttribute( "selected" ) != "true" );}else{if(e.button==U_DOM.K_iLeftMouseButton){this.F_ClearSelections();this._hL91(_hBO1, true);}}this._hWN(_hBO1, e.button);this._h6X();};C_ListView.prototype.F_UpdateIcons=function(){var nl=this.F_GetListItems();var _hBZ1=nl.length;switch(this._h392){case "report":case "checkbox":var _hUB1=this._h8O1.getAttribute( "showCheckboxes" )=="true";for(var i=0;i<_hBZ1;i++){var _hBO1=nl.item(i);var tr=this._hKE2.getElementById(_hBO1.getAttribute("htmlId"));var _hAZ1=tr.cells.item(0).firstChild.firstChild;var _hNY=_hBO1.getAttribute("smallSvgIcon");if(_hNY){return;}if(_hUB1){_hAZ1=_hAZ1.nextSibling;}var _hPG1=_hBO1.getAttribute("smallIcon");var _hKC2=this._hPI?G_HAL.F_GetImageURL(_hPG1):_hPG1;if(_hAZ1.src!=_hKC2){_hAZ1.src=_hKC2;}}break;}};C_ListView.prototype.F_UpdateCheckboxes=function(){var _hBA1=(this._h392=="horizontalCheckbox");var nl=this._hR91.getElementsByTagName(_hBA1?"DIV":"TR");var _hBZ1=nl.length;if(_hBZ1==0){return;}switch(this._h392){case "report":if(this._h8O1.getAttribute( "showCheckboxes" ) != "true" ){break;}case "checkbox":case "horizontalCheckbox":for(var i=0;i<_hBZ1;i++){var _hJI1=nl.item(i);var _hBO1=_hJI1.nNode;if(!_hBO1){continue;}var _hBV1=( _hBO1.getAttribute( "checked" )=="true" );var _hKC2;var _hLI1;if(!this._hAU1||( _hBO1.getAttribute( "staticCheckbox" )=="true" ) ){_hKC2=this._hFI1+(_hBV1?"lv_checkbox_checked_static.gif":"lv_checkbox_static.gif");_hLI1=(_hBV1?"clsLVCheckbox_checked_static":"clsLVCheckbox_static");}else{_hKC2=this._hFI1+(_hBV1?"lv_checkbox_checked.gif":"lv_checkbox.gif");_hLI1=(_hBV1?"clsLVCheckbox_checked":"clsLVCheckbox");}var _hAV1=_hBA1?_hJI1.firstChild:_hJI1.cells.item(0).firstChild.firstChild;var _hPB1=_hAV1.src;var _h1D2=_hPB1.indexOf(_hKC2);if((_h1D2==-1)||((_hPB1.length-_hKC2.length)!=_h1D2)){_hAV1.src=_hKC2;if(_hAV1.className!=_hLI1){_hAV1.className=_hLI1;}}}break;}};C_ListView.prototype._hTS=function(_hJI1){var _hBO1=_hJI1.nNode;var _hBV1=_hBO1.getAttribute( "checked" ) != "true";_hBO1.setAttribute( "checked", _hBV1?"true":"false" );var _hKC2;var _hLI1;if(_hBO1.getAttribute( "staticCheckbox" )=="true" ){_hKC2=(_hBV1?"lv_checkbox_checked_static.gif":"lv_checkbox_static.gif");_hLI1=(_hBV1?"clsLVCheckbox_checked_static":"clsLVCheckbox_static");}else{_hKC2=(_hBV1?"lv_checkbox_checked.gif":"lv_checkbox.gif");_hLI1=(_hBV1?"clsLVCheckbox_checked":"clsLVCheckbox");}var _hAV1=(this._h392=="horizontalCheckbox")?_hJI1.firstChild:_hJI1.cells.item(0).firstChild.firstChild;_hAV1.src=this._hFI1+_hKC2;_hAV1.className=_hLI1;this._hX2(_hBO1);};C_ListView.prototype.F_PaneManager_OnPaneResize=function(_h951,_hW92,_h852,_hMZ1,_hYN){this._hB7(_h951);};C_ListView.prototype._hB7=function(_h951){var nl=this._hR91.getElementsByTagName("TABLE");if(nl.length==0){return;}var tbl=nl.item(0);var rows=tbl.rows;var nl=this._hG62.selectNodes("columnPane");var _hW02=new Array(nl.length);for(var i=0;i<nl.length;i++){_hW02[i]=_h951.F_GetPaneWidth( nl.item( i ).getAttribute( "id" ) ) + "px";}var _hN91=rows.length;for(var i=0;i<_hN91;i++){var cells=rows.item(i).cells;var _hA51=cells.length;for(var j=0;j<_hA51;j++){cells.item(j).style.width=_hW02[j];}}};C_ListView.prototype._hVS=function(){var _hMY=parseInt(this._h8O1.getAttribute("indentLength"));var _hLY=this._h8O1.getAttribute( "showTooltips" ) != "false";var _hOI1=this._h8O1.getAttribute( "showGridLines" )=="true";var _hUB1=this._h8O1.getAttribute( "showCheckboxes" )=="true";var _hTY=this._h8O1.getAttribute( "showSubItems" ) != "false";var _h8B1=this._h8O1.selectNodes("listItems/listItem");var _h1E=_h8B1.length;var _hXS=false;var _hB51=this._hR91;var _hKI1=this._h8O1.getAttribute( "textColor" )||"";if(this._h731){_hB51=_hB51.lastChild;}this._hYN1("TR", _hB51);if(this._hZD&&!this._h731){var _h1T=this._h8O1.selectSingleNode("columnHeaders");if(_h1T){G_HAL.F_VerifyDependencies("C_PaneManager");var _hUY=U_DOM.F_GetContentDimensions(this._hR91);this._hR91.style.overflow="hidden";var _hVY=this._hR91.appendChild(this._hKE2.createElement("DIV"));_hVY.setAttribute("HAL_paneId", _hVY.uniqueID);_hVY.style.width=_hUY.width+"px";_hVY.className="clsListViewHeaderPane";var d=this._h8O1.ownerDocument;this._hG62=d.createElement("panes");this._hG62.setAttribute("id", _hVY.uniqueID);var _hZN=_h1T.selectNodes("columnHeader");for(var _hX02=0;_hX02<_hZN.length;_hX02++){var _hWY=_hZN.item(_hX02);var _hPI1=this._hR91.appendChild(this._hKE2.createElement("DIV"));var _hQI1=_hPI1.uniqueID;_hPI1.setAttribute("HAL_paneId", _hQI1);var _h0O=_hPI1.appendChild(this._hKE2.createElement("DIV"));_h0O.className="clsListViewColumnHeader";this._hQG1(_hWY, _h0O);this._h8(_hWY, _h0O);if(_hX02>0){var _hNP1=this._hG62.appendChild(d.createElement("columnSplitter"));_hNP1.setAttribute( "reserveSpace", "false" );_hNP1.setAttribute( "classPrefix", "clsListViewColResizer" );}var _hEV1=this._hG62.appendChild(d.createElement("columnPane"));_hEV1.setAttribute("id", _hQI1);var _h952=_hWY.getAttribute("width");_hEV1.setAttribute( "defaultWidth", _h952?_h952:"*" );_hEV1.setAttribute( "minWidth", "8px" );_hEV1.setAttribute( "overflow", "hidden" );_hEV1.setAttribute( "splitterResizeBehaviour", "resize" );_hEV1.setAttribute("fillPaneWith", _h0O.uniqueID);}this._h731=new C_PaneManager(_hVY, this._hG62, this);var div=this._hR91.appendChild(this._hKE2.createElement("DIV"));div.innerHTML="&nbsp;";var _hXY=_hVY.offsetHeight;div.style.height=_hXY+"px";_hB51=this._hR91.appendChild(this._hKE2.createElement("DIV"));_hB51.className="clsListView";_hB51.style.border="none";_hB51.style.overflowX="hidden";_hB51.style.height=Math.F_NonNeg(_hUY.height-_hXY)+"px";_hB51.style.width=_hUY.width+"px";}}var tbl=_hB51.appendChild(this._hKE2.createElement("TABLE"));tbl.cellPadding=0;tbl.cellSpacing=0;tbl.className="clsDialogText";tbl.style.borderCollapse="collapse";tbl.style.width="100%";U_Accessibility.F_SetRoleForLayoutTable(tbl);if(this._h731){tbl.style.tableLayout="fixed";}var _hY02=tbl.appendChild(this._hKE2.createElement("TBODY"));for(var i=0;i<_h1E;i++){var _hBO1=_h8B1.item(i);var tr=_hY02.appendChild(this._hKE2.createElement("TR"));var td=tr.appendChild(this._hKE2.createElement("TD"));td.style.width="100%";if(!(_hTY&&_hBO1.selectSingleNode("subItem"))){td.style.whiteSpace="nowrap";}if(_hLY){this._h251(_hBO1, td);}var _hX92=td.appendChild(this._hKE2.createElement("DIV"));if(_hBO1.getAttribute("id")){_hX92.id=_hBO1.getAttribute("id");}if(this._hSS){tr.className=this._hII1;}else{_hX92.className=this._hII1;}if(this._hZD){_hX92.style.overflow="hidden";_hX92.style.whiteSpace="nowrap";_hX92.style.textOverflow="ellipsis";}if(_hUB1){var _hAV1=_hX92.appendChild(this._hKE2.createElement("IMG"));var _hBV1=( _hBO1.getAttribute( "checked" )=="true" );_hAV1.setAttribute( "bIsCheckbox", "true" );if(_hBO1.getAttribute( "staticCheckbox" )=="true" ){_hAV1.src=this._hFI1+(_hBV1?"lv_checkbox_checked_static.gif":"lv_checkbox_static.gif");_hAV1.className=(_hBV1?"clsLVCheckbox_checked_static":"clsLVCheckbox_static");}else{_hAV1.src=this._hFI1+(_hBV1?"lv_checkbox_checked.gif":"lv_checkbox.gif");_hAV1.className=(_hBV1?"clsLVCheckbox_checked":"clsLVCheckbox");}_hAV1.alt="";if(this._h392=="checkbox"){_hAV1.style.margin=( this._hHP1?"2px 4px 2px 2px":"2px 2px 2px 4px" );}_hX92.style.color=_hKI1;}var _hPG1=_hBO1.getAttribute("smallIcon");if(_hPG1){var _h592=_hX92.appendChild(this._hKE2.createElement("IMG"));_h592.style.height=this._hOI;_h592.style.width=this._hQM;_h592.src=this._hPI?G_HAL.F_GetImageURL(_hPG1):_hPG1;_h592.style.verticalAlign="middle";_h592.style.margin=( this._hHP1?"1px 1px 1px 2px":"1px 2px 1px 1px" );_h592.alt="";}if(_hMY){var _h151=_hBO1.getAttribute("indentLevel");if(_h151){td.style[this._h97]=(parseInt(_h151)*_hMY)+"px";}}if(_hOI1){td.className="clsListItem_gridLine";}var _hH62=_hX92.appendChild(this._hKE2.createElement("SPAN"));_hH62.style.verticalAlign="middle";this._hHD(_hBO1, tr, i);var _hA92=_hBO1.getAttribute("html");if(_hA92!==null){_hXS=true;_hH62.innerHTML=_hA92;this._h351(_hBO1, _hH62);}else{_hH62.style.paddingLeft="2px";_hH62.style.paddingRight="2px";this._hQG1(_hBO1, _hH62);this._h8(_hBO1, _hH62);}if(_hTY){var _hRI1=_hBO1.selectNodes("subItem");var _hKG=_hRI1.length;for(var _hOP1=0;_hOP1<_hKG;_hOP1++){var _hFV1=_hRI1.item(_hOP1);var td=tr.appendChild(this._hKE2.createElement("TD"));var _hX92=td.appendChild(this._hKE2.createElement("DIV"));if(this._hZD){_hX92.style[this._h97]="3px";_hX92.style.overflow="hidden";_hX92.style.whiteSpace="nowrap";_hX92.style.textOverflow="ellipsis";}var _hA92=_hFV1.getAttribute("html");if(_hA92!==null){_hX92.innerHTML=_hA92;this._h351(_hFV1, _hX92);}else{this._hQG1(_hFV1, _hX92);this._h8(_hBO1, _hX92);if(this._hXN1&&this._hXN1.F_ListView_OnShowSubItem){this._hXN1.F_ListView_OnShowSubItem(this, _hBO1, _hX92);}}if(_hOI1){td.className="clsListItem_gridLine";}}}_hBO1.setAttribute("htmlId", tr.uniqueID);tr.nNode=_hBO1;}if(_hXS){U_Button.F_InitButtons(_hX92);if(this._hK91){G_HAL.F_VerifyDependencies("G_ResManager");this._hK91.F_ApplyResStrings(tbl);}}if(this._h731){this._hB7(this._h731);}};C_ListView.prototype._hGV1=function(_hBO1){var _h052="";var _hEU1=_hBO1.getAttribute("idsLabel");if(_hEU1){G_HAL.F_VerifyDependencies("G_ResManager");_h052=this._hK91.F_GetString(_hEU1);}else{_h052=_hBO1.getAttribute("label");}return _h052;};C_ListView.prototype._hC51=function(_hBO1){var _hSI1;if(_hBO1.getAttribute("sAriaLabel")){_hSI1=_hBO1.getAttribute("sAriaLabel");}else if(_hBO1.getAttribute("idsAriaLabel")){_hSI1=this._hK91.F_GetString(_hBO1.getAttribute("idsAriaLabel"));}else{_hSI1=this._hGV1(_hBO1);}if(_hBO1.getAttribute("idsExtraAriaLabel")){_hSI1 += " " + G_ResManager.F_GetString( _hBO1.getAttribute( "idsExtraAriaLabel" ) );}return _hSI1;};C_ListView.prototype._hQG1=function(_hBO1,el,_hHV1){var _h052=this._hGV1(_hBO1);if(_h052!=null){if(_hHV1){el.innerHTML=(_h052.length<3)?_h052.F_HTMLEncode():(_h052.substr(0, 1).F_HTMLEncode()+_h052.substr(1, _h052.length-2).F_HTMLEncode().replace(/\s/g, "&nbsp;")+ _h052.substr(_h052.length - 1, 1).F_HTMLEncode());}else{el.innerText=_h052;}}};C_ListView.prototype._h251=function(_hBO1,el){var _h3U1="";var _hBG1=_hBO1.getAttribute("idsTooltip");if(_hBG1){G_HAL.F_VerifyDependencies("G_ResManager");_h3U1=this._hK91.F_GetString(_hBG1);}else{_h3U1=_hBO1.getAttribute("tooltip");}if(_h3U1){el.title=_h3U1;var _h2O1=_hBO1.getAttribute("textDirection")||this._hPM;if(_h2O1){if(_h2O1=="ltr"){el.title="\u202A" + el.title + "\u202C";}else if(_h2O1=="rtl"){el.title="\u202B" + el.title + "\u202C";}}}};C_ListView.prototype.F_OnScroll=function(e){if(this._hXN1&&this._hXN1.F_ListView_OnScroll){this._hXN1.F_ListView_OnScroll(this);}};C_ListView.prototype.F_OnKeyDown=function(e){if(this._hI91){this._hFX(e);return;};if(this._hRN){if(e.keyCode!=U_DOM.K_iKeyEscape){U_DOM.F_CancelEvent(e);}return;}if(this._h392=="report"){this.F_OnReportViewKeyDown(e);}};C_ListView.prototype.F_OnReportViewKeyDown=function(e){switch(e.keyCode){case U_DOM.K_iKeyArrowUp:var _hMG1=this._hN();if(_hMG1.length>0){var _hLG=U_XML.F_GetPreviousSiblingElement(_hMG1.item(0));if(_hLG){this.F_ClearSelections(false);this._hUS(_hLG);this._h6X();this.F_EnsureVisible(_hLG);}}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyArrowDown:var _hMG1=this._hN();if(_hMG1.length>0){var _hYY=U_XML.F_GetNextSiblingElement(_hMG1.item(_hMG1.length-1));if(_hYY){this.F_ClearSelections(false);this._hUS(_hYY);this._h6X();this.F_EnsureVisible(_hYY);}}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyPgUp:case U_DOM.K_iKeyHome:var _h8B1=this.F_GetListItems();if(_h8B1.length>0){var _h2T=_h8B1.item(0);this.F_ClearSelections(false);this._hUS(_h2T);this._h6X();this.F_EnsureVisible(_h2T);}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyPgDn:case U_DOM.K_iKeyEnd:var _h8B1=this.F_GetListItems();if(_h8B1.length>0){var _hZY=_h8B1.item(_h8B1.length-1);this.F_ClearSelections(false);this._hUS(_hZY);this._h6X();this.F_EnsureVisible(_hZY);}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeySpace:U_DOM.F_CancelEvent(e);break;default:if(this._hHI1=="none"){break;}if(this._h3T){U_DOM.F_ClearTimeout(this._h3T);this._h3T=null;}var _hY92=String.fromCharCode(e.keyCode).toLowerCase();this._hZ02=this._hZ02?(this._hZ02+_hY92):_hY92;var nl=this.F_GetListItems();var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var _hBO1=nl.item(i);var _h052=this.F_GetListItemLabel(_hBO1).substr(0, this._hZ02.length);if(this._hHI1=="caseInsensitive"){_h052=_h052.toLowerCase();}if(_h052==this._hZ02){this.F_SelectListItem(_hBO1);this._h3T=U_DOM.F_CreateClearableTimeout(this._hIG.bind(this), 1000);break;}}if(!this._h3T){this._hZ02="";}}};C_ListView.prototype._hIG=function(){if(this._h3T){U_DOM.F_ClearTimeout(this._h3T);this._h3T=null;this._hZ02="";}};C_ListView.prototype.F_EnsureVisible=function(_hBO1){var _hJI1=this._hKE2.getElementById(_hBO1.getAttribute("htmlId"));if(!_hJI1){if(!U_XML.F_IsAncestor(_hBO1, this._h8O1)){G_HAL.F_AlertError( "listItem not a descendent of listView" );}return;}switch(this._h392){case "icon":case "gallery":var _h012=U_DOM.F_GetRelativeOffset(_hJI1, _hJI1.offsetParent).top;if(this._hR91.scrollTop>_h012){this._hR91.scrollTop=_h012;}else if(this._hR91.scrollTop<(_h012-this._hR91.offsetHeight+_hJI1.offsetHeight)){this._hR91.scrollTop=_h012-this._hR91.offsetHeight+_hJI1.offsetHeight+4;}break;case "smallIcon":break;case "report":var td=_hJI1.cells.item(0);var _h012=U_DOM.F_GetRelativeOffset(td, td.offsetParent).top;var _hIB1=(this._hZD&&this._h8O1.selectSingleNode("columnHeaders"))?this._hR91.lastChild:this._hR91;if(!_hIB1){return;}if(_hIB1.scrollTop>_h012){_hIB1.scrollTop=_h012;}else if(_hIB1.scrollTop<(_h012-_hIB1.offsetHeight+td.offsetHeight)){_hIB1.scrollTop=_h012-_hIB1.offsetHeight+td.offsetHeight+4;}break;}};C_ListView.prototype.F_ShowDragDropFeedback=function(_hPP1){if(_hPP1&&(_hPP1._h112==this)){this.F_ClearSelections();if(_hPP1._h212&&(_hPP1._hWJ & G_DragDrop.eLocationInside)){_hPP1.nNode.setAttribute( "selected", "true" );_hPP1._hJI1.className=this._hY41;}if(_hPP1._hWJ & G_DragDrop.eLocationBeforeOrAfter){this._h0Z(_hPP1);}else{this._h1Z();}}else{this._h1Z();this.F_ClearSelections();}};C_ListView.prototype.F_EndDragDropFeedback=function(){this._h1Z();this.F_ClearSelections();};C_ListView.prototype._h0Z=function(_hPP1){switch(this._h392){case "report":if(_hPP1._hQP1 & G_DragDrop.eLocationBefore){this._h051.style.top=_hPP1._hIC2.top+"px";}else{this._h051.style.top=(_hPP1._hIC2.top+_hPP1._hJI1.offsetHeight)+ "px";}this._h051.style.left=_hPP1._hIC2.left+"px";this._h051.style.width=(_hPP1._hJI1.offsetWidth-2)+"px";break;case "icon":case "gallery":if(_hPP1._hQP1 & G_DragDrop.eLocationBefore){this._h051.style.left=(_hPP1._hIC2.left-3)+"px";}else{this._h051.style.left=(_hPP1._hIC2.left-3+_hPP1._hJI1.offsetWidth)+ "px";}this._h051.style.top=(_hPP1._hIC2.top-3)+"px";this._h051.style.height=(_hPP1._hJI1.offsetHeight+6)+ "px";break;}this._h051.style.visibility="visible";this._h051.ownerID=this._hR91.id;};C_ListView.prototype._h1Z=function(){if(this._h051.ownerID==this._hR91.id){this._h051.style.visibility="hidden";this._h051.ownerID="";}};C_ListView.prototype.F_DragInfoHitTest=function(x,y){var _hPP1=null;var _hJI1=this._hVB1(x, y);if(_hJI1){_hPP1={};_hPP1.F_GetLocation=function(){if(this._h212&&(this._hWJ & G_DragDrop.eLocationReplace)){return G_DragDrop.eLocationReplace;}var _h4T=(this._hWJ & G_DragDrop.eLocationInside);if(this._h212&&_h4T){return G_DragDrop.eLocationInside;}if(this._hWJ & G_DragDrop.eLocationBeforeOrAfter){return this._hQP1;}if(_h4T&&(this._hQP1 & G_DragDrop.eLocationBeforeOrAfter)){return G_DragDrop.eLocationInside;}return G_DragDrop.eLocationNone;};_hPP1._hWJ=G_DragDrop.eLocationNone;_hPP1._h112=this;_hPP1.x=x;_hPP1.y=y;_hPP1._hJI1=_hJI1;_hPP1.nNode=_hJI1.nNode;_hPP1._hIC2=U_DOM.F_GetRelativeOffset(_hJI1, document.body);switch(this._h392){case "report":var _h312=(_hPP1._hIC2.top+(_hJI1.offsetHeight / 2));var _hI62=_h312-y;_hPP1._hQP1=(_hI62>0)?G_DragDrop.eLocationBefore:G_DragDrop.eLocationAfter;_hPP1._h212=(Math.abs(_hI62)<8);break;case "icon":case "gallery":var _h312=(_hPP1._hIC2.left+(_hJI1.offsetWidth / 2));var _hI62=_h312-x;_hPP1._hQP1=(_hI62>0)?G_DragDrop.eLocationBefore:G_DragDrop.eLocationAfter;_hPP1._h212=(Math.abs(_hI62)<8);break;}}return _hPP1;};C_ListView.prototype._hVB1=function(x,y){switch(this._h392){case "report":case "icon":case "gallery":break;default:return null;}while((x>=0)&&(y>=0)){var el=this._hKE2.elementFromPoint(x, y);if(el){var img=el;if(img.id==this._h051.id){img.style.zIndex=-1;el=this._hKE2.elementFromPoint(x, y);img.style.zIndex=10000;}if(this._hR91.contains(el)){if(el==this._hR91){switch(this._h392){case "report":y-= 5;break;case "icon":case "gallery":x-= 15;break;}}else{return this._h49(el);}}else{return null;}}else{return null;}}return null;};C_ListView.F_GetCaretsHtml=function(){return('<img id="idListViewDropCaret_report" src="' + G_HAL.M_sImagePath + 'lv_dropcaret_report.gif" alt=""/>' +'<img id="idListViewDropCaret_icon" src="' + G_HAL.M_sImagePath + 'lv_dropcaret_icon.gif" alt=""/>' );};C_ListView.prototype.F_MoveSelectedItemUp=function(){var _h2Z=this.F_GetSelectedListItem();if(_h2Z){var _h5T=Math.max(U_XML.F_GetIndex(_h2Z)-1, 0);var _hXJ=U_XML.F_GetPreviousSiblingElement(_h2Z);_h2Z.parentNode.insertBefore(_h2Z.parentNode.removeChild(_h2Z), _hXJ);this.F_Draw();this.F_SelectByIndex(_h5T, true);}};C_ListView.prototype.F_MoveSelectedItemDown=function(){var _h2Z=this.F_GetSelectedListItem();if(_h2Z){var _h5T=Math.max(U_XML.F_GetIndex(_h2Z)+1, 0);var _hD51=U_XML.F_GetNextSiblingElement(_h2Z);_h2Z.parentNode.insertBefore(_h2Z.parentNode.removeChild(_hD51), _h2Z);this.F_Draw();this.F_SelectByIndex(_h5T, true);}};C_ListView.prototype.F_DeleteSelectedItem=function(){var _h2Z=this.F_GetSelectedListItem();if(_h2Z){var _h5T=U_XML.F_GetIndex(_h2Z);var nl=this.F_GetListItems();_h5T=Math.min(_h5T, Math.max(0, nl.length-2));_h2Z.parentNode.removeChild(_h2Z);this.F_Draw();this.F_SelectByIndex(_h5T, true);}};C_ListView.prototype._hH=function(_hLC2){if(!this._hI91){return;}if(!this._hMG){this._hMG=this._h412.bind(this);}if(_hLC2){U_Accessibility.F_AddFocusAndBlurEventListener(this._hR91, this._hMG, null);}else{U_Accessibility.F_RemoveFocusAndBlurEventListener(this._hR91, this._hMG, null);}};C_ListView.prototype._hHD=function(_hBO1,_hJI1,_h652){if(!this._hI91){return;}var _h6T;var _hRP1;var _h1O=false;var _hE51="IDS_HAL_AC_INSTRUCTION_LIST_ITEM_SELECT";switch(this._h392){case "report":var _hUB1=this._h8O1.getAttribute( "showCheckboxes" )=="true";_h6T="listbox";_hRP1="option";if(_hUB1){_h1O=true;_hE51="IDS_HAL_AC_INSTRUCTION_LIST_ITEM_CHECK";}break;case "smallIcon":case "gallery":case "token":case "icon":_h6T="listbox";_hRP1="option";break;case "radio":case "horizontalRadio":_h6T="radiogroup";_hRP1="radio";_hE51="IDS_HAL_AC_INSTRUCTION_LIST_ITEM_RADIO";break;case "checkbox":case "horizontalCheckbox":_h6T="listbox";_hRP1="option";_h1O=true;_hE51="IDS_HAL_AC_INSTRUCTION_LIST_ITEM_CHECK";break;}if(_h6T&&!this._hR91.getAttribute("role")){this._hR91.setAttribute("role", _h6T);U_Accessibility.F_SetAriaStateAndProperty(this._hR91, "aria-multiselectable", this._hER);}if(!this._h8O1.getAttribute("selectOptionOnFocus")){this._h8O1.setAttribute( "selectOptionOnFocus", "noSelect" );}_hJI1.setAttribute("role", _hRP1);if(_h1O){_hJI1.setAttribute("checkboxItem", true);}var _hSP1=_h652==0?"0":"-1";_hJI1.setAttribute("tabIndex", _hSP1);if(_h652==0){this._hLB1=_hJI1;}var _h052="";var _hWB1=this._h8O1.selectNodes("columnHeaders/columnHeader");var _hRI1=_hBO1.selectNodes("subItem");var _hTY=this._h8O1.getAttribute( "showSubItems" ) != "false";if(_hTY&&_hRI1.length>0&&_hWB1.length>0){var _hYJ;var _h7T;for(var i=0;i<_hWB1.length;i++){_hYJ=this._hC51(_hWB1.item(i));_h7T=(i==0?this._hC51(_hBO1):this._hC51(_hRI1.item(i-1)));_h052 += _h7T?" " + _hYJ + " " + _h7T:"";}}else{_h052=this._hC51(_hBO1);}if(_h052){_hJI1.setAttribute("aria-label", _h052);}U_Accessibility.F_AddAriaHiddenSpan( this._hR91, "aria-describedby", this._hR91.getAttribute( "aria-labelledby" )?( this._hR91.getAttribute( "aria-labelledby" ) + " " ):this._hK91.F_GetString( _hE51 ) );this._hX2(_hBO1, _hJI1);};C_ListView.prototype._hX2=function(_hBO1,_hJI1){if(!this._hI91){return;}var _h512=_hBO1.getAttribute("htmlId");var _hZE2=_hJI1?_hJI1:this._hKE2.getElementById(_h512);if(_hZE2){if(_hZE2.getAttribute( "role" )=="radio" ){_hZE2.setAttribute( "aria-checked", ( _hBO1.getAttribute( "selected" )=="true" )?"true":"false" );}else if(_hZE2.getAttribute( "checkboxItem" )=="true" ){_hZE2.setAttribute( "aria-checked", ( _hBO1.getAttribute( "checked" )=="true" )?"true":"false" );}else{_hZE2.setAttribute( "aria-selected", ( _hBO1.getAttribute( "selected" )=="true" )?"true":"false" );}}};C_ListView.prototype._h412=function(e){if(!this._hI91){return;}var _hJI1=e.target;var _hBO1=_hJI1.nNode;if(_hBO1&&this._h8O1.getAttribute( "selectOptionOnFocus" ) != "noSelect" ){this.F_SelectListItem( _hBO1,(this._h8O1.getAttribute( "selectOptionOnFocus" )=="selectAndClick" ) );}if(_hBO1){if(this._hLB1){this._hLB1.setAttribute( "tabIndex", "-1" );}_hJI1.setAttribute( "tabIndex", "0" );this._hLB1=_hJI1;}if(_hBO1&&this._h8O1.getAttribute("useSuperTooltips")=="true"){this._h0T(this._hKE2.getElementById(_hBO1.getAttribute("id")));}};C_ListView.prototype._h0E=function(){if(this._hI91){this._hLB1=null;}};C_ListView.prototype._h69=function(_hZE2){return this._hI91&&( _hZE2.getAttribute( "role" )=="option"||_hZE2.getAttribute( "role" )=="radio" );};C_ListView.prototype._hC7=function(_hBO1){return _hBO1.selectSingleNode( "following-sibling::*[not(@selectable) or @selectable != 'false']" );};C_ListView.prototype._hA2=function(_hBO1){return _hBO1.selectSingleNode( "preceding-sibling::*[not(@selectable) or @selectable != 'false'][1]" );};C_ListView.prototype.F_GetFirstSelectableItem=function(){return this._h8O1.selectSingleNode( "listItems/listItem[not(@selectable) or @selectable != 'false']" );};C_ListView.prototype._hD7=function(){return this._h8O1.selectSingleNode( "listItems/listItem[last()][not(@selectable) or @selectable != 'false']" );};C_ListView.prototype._hFX=function(e){var _hIV1=e.target;if(!this._hI91){return;}if(this._h392=="report"&&(e.keyCode==U_DOM.K_iKeyArrowLeft||e.keyCode==U_DOM.K_iKeyArrowRight)){return;}switch(e.keyCode){case U_DOM.K_iKeyArrowUp:case U_DOM.K_iKeyArrowLeft:if(this._h69(_hIV1)){var _hLG=this._hA2(_hIV1.nNode);if(_hLG){this._hKE2.getElementById(_hLG.getAttribute("htmlId")).focus();if(this._h8O1.getAttribute("useSuperTooltips")=="true"){this._h0T(this._hKE2.getElementById(_hLG.getAttribute("id")));}}}else{var _h2T=this.F_GetFirstSelectableItem();if(_h2T){this._hKE2.getElementById(_h2T.getAttribute("htmlId")).focus();if(this._h8O1.getAttribute("useSuperTooltips")=="true"){this._h0T(this._hKE2.getElementById(_h2T.getAttribute("id")));}}}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyArrowDown:case U_DOM.K_iKeyArrowRight:if(this._h69(_hIV1)){var _hYY=this._hC7(_hIV1.nNode);if(_hYY){this._hKE2.getElementById(_hYY.getAttribute("htmlId")).focus();if(this._h8O1.getAttribute("useSuperTooltips")=="true"){this._h0T(this._hKE2.getElementById(_hYY.getAttribute("id")));}}}else{var _h2T=this.F_GetFirstSelectableItem();if(_h2T){this._hKE2.getElementById(_h2T.getAttribute("htmlId")).focus();if(this._h8O1.getAttribute("useSuperTooltips")=="true"){this._h0T(this._hKE2.getElementById(_h2T.getAttribute("id")));}}}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyPgUp:case U_DOM.K_iKeyHome:var _h2T=this.F_GetFirstSelectableItem();if(_h2T){this._hKE2.getElementById(_h2T.getAttribute("htmlId")).focus();if(this._h8O1.getAttribute("useSuperTooltips")=="true"){this._h0T(this._hKE2.getElementById(_h2T.getAttribute("id")));}}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyPgDn:case U_DOM.K_iKeyEnd:var _hZY=this._hD7();if(_hZY){this._hKE2.getElementById(_hZY.getAttribute("htmlId")).focus();if(this._h8O1.getAttribute("useSuperTooltips")=="true"){this._h0T(this._hKE2.getElementById(_hZY.getAttribute("id")));}}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeySpace:U_DOM.F_CancelEvent(e);U_Accessibility.F_SimulateMouseClick(e.target, U_DOM.K_iLeftMouseButton, e.ctrlKey, e.shiftKey, this._hRN);break;case U_DOM.K_iKeyEnter:U_DOM.F_CancelEvent(e);U_Accessibility.F_SimulateMouseClick(e.target, U_DOM.K_iLeftMouseButton, e.ctrlKey, e.shiftKey, this._hRN);var _hJI1=this._h49(_hIV1);if(_hJI1){if(this._hXN1&&this._hXN1.F_ListView_OnItemDblClick){setTimeout(this._hXN1.F_ListView_OnItemDblClick.bind(this._hXN1, this, _hJI1.nNode));}}break;case U_DOM.K_iKeyTab:if(this._h8O1.getAttribute("useSuperTooltips")=="true"){G_TooltipManager.F_DeactivateTarget();}break;}};C_ListView.prototype.F_RefocusAfterRedraw=function(_hNG1,_h552){if(!this._hI91){return;}var _h2O=this.F_FindListItem(_hNG1, _h552);if(_h2O){document.getElementById(_h2O.getAttribute("htmlId")).focus();}};C_ListView.prototype._h351=function(_hE92,_hF52){if(this._hXN1&&this._hXN1.F_ListView_OnHtmlRender){this._hXN1.F_ListView_OnHtmlRender(this, _hE92, _hF52);}var _h3Z=_hE92.getAttribute("onHTMLRender");if(_h3Z){var _h8T=eval(_h3Z);_h8T(_hF52);}};C_ListView.prototype._h8=function(_hBO1,_hZE2){if(this._hPM){_hZE2.style.direction=_hBO1.getAttribute("textDirection")||this._hPM;_hZE2.style.unicodeBidi="embed";}};C_ListView.prototype.F_GeneratePositionLabels=function(_hZJ){var nl=this.F_GetListItems();for(var i=0; i<nl.length;++i){var n=nl.item(i);var _h052=G_ResManager.F_GetString(_hZJ,(i+1));n.setAttribute("label", _h052);n.setAttribute("tooltip", _h052);n.setAttribute("value", i+1);}};C_ListView.F_GetListViewFromHTMLElement=function(_hZE2){return _hZE2._hCO1?_hZE2._hCO1:null;};C_ListView.prototype.F_GetListItemHTMLElement=function(_hBO1){var _h612=_hBO1.getAttribute("htmlId");return _h612?this._hR91.ownerDocument.getElementById(_h612):null;};