function ACE(o,n,Q,L,A,s){this.TrusteeName=o;this.TrusteeID=n;this.isUser=Q;this.ObjectPath=L;this.ObjectID=A;this.Scope=s;}ACE.prototype.Display=function(nc,oH){var R=this;R.myRow=nc.ownerDocument.createElement("tr");var RK=nc.ownerDocument.createElement("td");RK.width=67;RK.style.paddingLeft="10px";var w=nc.ownerDocument.createElement("img");if(this.isUser)w.src="images/Users.gif";else w.src="images/Groups.gif";RK.appendChild(w);RK.appendChild(nc.ownerDocument.createTextNode(R.TrusteeName));R.myRow.appendChild(RK);var t=nc.ownerDocument.createElement("td");t.width=100;t.style.paddingLeft="10px";t.appendChild(nc.ownerDocument.createTextNode(R.ObjectPath));R.myRow.appendChild(t);var z=nc.ownerDocument.createElement("td");z.style.paddingLeft="10px";z.appendChild(nc.ownerDocument.createTextNode(R.GetScopeString(this.Scope)));R.myRow.appendChild(z);nc.appendChild(R.myRow);R.myRow.onclick=function(){oH(R);};};ACE.prototype.Hide=function(){this.myRow.parentNode.removeChild(this.myRow);};ACE.prototype.ShowSelected=function(){this.myRow.style.color="highlighttext";this.myRow.style.backgroundColor="highlight";};ACE.prototype.ShowDeselected=function(){this.myRow.style.color="";this.myRow.style.backgroundColor="";};ACE.prototype.GetScopeString=function(s){switch(s){case SCOPE_ENTRY_ONLY:return STR_SCOPE_ENTRY_ONLY;case SCOPE_FOLDERS:return STR_SCOPE_FOLDERS;case SCOPE_TOTAL:return STR_SCOPE_TOTAL;case SCOPE_NOT_ENTRY:return STR_SCOPE_NOT_ENTRY;case SCOPE_FOLDERS_ONLY:return STR_SCOPE_FOLDERS_ONLY;case SCOPE_DOCS_ONLY:return STR_SCOPE_DOCS_ONLY;case SCOPE_IMMEDIATE:return STR_SCOPE_IMMEDIATE;case SCOPE_IMMEDIATE_CHILDREN:return STR_SCOPE_IMMEDIATE_CHILDREN;case SCOPE_IMMEDIATE_DOCS:return STR_SCOPE_IMMEDIATE_DOCS;}};var LFTOCID_DATA_FORMAT="LFTocID";top.LFTHUMBNAIL_DATA_FORMAT="LFThumbnail";top.JSTHUMBNAIL_DATA_FORMAT="JSThumbnail";top.DRAG_DATA_DELIMITER=",";function BrowseControls(k,l,D,T,i,u,K,H,d,e,u0,oK,r,zg,RV,p,O,Y){this.topname=k;this.FolderBrowserHasFocus=true;this.dbid=T;this.dbname=i;this.servername=u;this.myWin=l;this.myDoc=D;this.startid=K;if(H)this.fieldsEditable=false;else this.fieldsEditable=true;this.entriesMoveable=true;this.entriesDeleteable=true;this.HasRMFeature=d;this.bExportAllowed=e;this.bViewPropsAllowed=u0;this.bMigrateAllowed=oK;this.bImportAllowed=r;this.renameForm=zg;this.renameInput=RV;this.exportAudited=p;this.bScanAllowed=O;this.bSnapshotEnabled=Y;this.fileOptions=new Array();this.fileHandlers=new Array();this.fileClickables=new Array();this.editOptions=new Array();this.editHandlers=new Array();this.editClickables=new Array();this.actionOptions=new Array();this.actionHandlers=new Array();this.actionClickables=new Array();this.toolsOptions=new Array();this.toolsHandlers=new Array();this.toolsClickables=new Array();this.RMOptions=new Array();this.RMHandlers=new Array();this.RMClickables=new Array();this.settingsOptions=new Array();this.settingsHandlers=new Array();this.settingsClickables=new Array();this.helpOptions=new Array();this.helpHandlers=new Array();this.helpClickables=new Array();var y=this;D.body.onclick=function(){y.killContextMenu();y.BrowseMenu.HideMenu();};D.onkeydown=function(g){return y.KeyPress(g,l);};this.killContextMenu=function(){};this.showBuiltinContext=false;this.scannerLoaded=true;var y=this;var Da=function(){if(y.PrefixLastModified){if((top.GetUTC()-y.PrefixLastModified)>1000){y.NamePrefix=null;y.PrefixLastModified=null;}}};top.setInterval(Da,1000);}BrowseControls.prototype.DisallowMoveEntries=function(){this.entriesMoveable=false;};BrowseControls.prototype.GetIsMoveAllowed=function(){return this.entriesMoveable;};BrowseControls.prototype.DisallowDeleteEntries=function(){this.entriesDeleteable=false;};BrowseControls.prototype.GetIsDeleteAllowed=function(){return this.entriesDeleteable;};BrowseControls.prototype.SetMainBrowserFrame=function(C){this.mainBrowserFrame=C;};BrowseControls.prototype.GetDocBrowserLeftOffset=function(){return this.mainBrowserFrame.width;};BrowseControls.prototype.SetParentFolderBtn=function(j){var y=this;y.parentFolderBtn=j;y.parentFolderBtn.onclick=function(){y.mainFolderBrowser.OpenParentFolder();};top.setKeyPressHandler(y.parentFolderBtn,y.myWin);};BrowseControls.prototype.SetRefreshBtn=function(P){var y=this;y.refreshBtn=P;y.refreshBtn.onclick=function(){y.RefreshViews();};top.setKeyPressHandler(y.refreshBtn,y.myWin);};BrowseControls.prototype.RefreshViews=function(){var y=this;if(y.mainFolderBrowser&&y.mainFolderBrowser.GetSelectedEntries().length>0){var G=y.mainFolderBrowser.GetSelectedEntries()[0];G.RefreshContents();}y.myDocBrowser.RefreshFolderContents();};BrowseControls.prototype.SetScanBtn=function(M){var y=this;if(M){y.scanBtn=M;y.scanBtn.onclick=function(){y.ShowScanDialog();};top.setKeyPressHandler(y.scanBtn,y.myWin);}};BrowseControls.prototype.RemoveScanBtn=function(){if(M){y.scanBtn.onkeypress=null;y.scanBtn.onclick=null;var W=y.scanBtn.parentNode;W.removeChild(y.scanBtn);y.scanBtn=null;}};BrowseControls.prototype.SetSearchBtn=function(Kt,f){var y=this;if(Kt){y.searchBtn=Kt;if(f){y.searchBtn.parentNode.removeChild(Kt);}else{y.searchBtn.onclick=function(){y.OpenSearchWindow();};top.setKeyPressHandler(y.searchBtn,y.myWin);}}};BrowseControls.prototype.OpenSearchWindow=function(){top.location.href="search.asp?dbid="+this.dbid;};BrowseControls.prototype.FocusOnFolderBrowser=function(){if(!this.FolderBrowserHasFocus){this.FolderBrowserHasFocus=true;this.myDocBrowser.LoseFocus();this.mainFolderBrowser.GetFocus();}};BrowseControls.prototype.FocusOnDocBrowser=function(){if(this.FolderBrowserHasFocus){this.FolderBrowserHasFocus=false;this.mainFolderBrowser.LoseFocus();this.myDocBrowser.GetFocus();}};BrowseControls.prototype.GetSelectedEntries=function(){if(this.FolderBrowserHasFocus)return this.mainFolderBrowser.GetSelectedEntries();else return this.myDocBrowser.GetSelectedEntries();};BrowseControls.prototype.GetDragData=function(){var jl=this.GetSelectedEntries();var m=LFTOCID_DATA_FORMAT+this.dbid;m+=top.DRAG_DATA_DELIMITER+this.myWin.location.hostname;m+=top.DRAG_DATA_DELIMITER+this.lastButtonClicked;this.lastButtonClicked=null;var fr="false";for(var ww=0;ww<jl.length;ww++){if(jl[ww].isFolder()){fr="true";break;}}m+=top.DRAG_DATA_DELIMITER+fr;for(var ww=0;ww<jl.length;ww++){m+=top.DRAG_DATA_DELIMITER+jl[ww].id;}return m;};BrowseControls.prototype.GetDragDataType=function(b){return top.DragDataType(b,this,this.myWin);};BrowseControls.prototype.GetDragButton=function(b){if(this.GetDragDataType(b)!=DRAG_FORMAT_TOC_ENTRIES)return;var f6=b.substr(LFTOCID_DATA_FORMAT.length).split(top.DRAG_DATA_DELIMITER);return f6[2];};BrowseControls.prototype.GetDragFolders=function(b){if(this.GetDragDataType(b)!=DRAG_FORMAT_TOC_ENTRIES)return;var f6=b.substr(LFTOCID_DATA_FORMAT.length).split(top.DRAG_DATA_DELIMITER);return(f6[3]=="true");};BrowseControls.prototype.GetThumbnailEntryHandle=function(b){return top.ThumbnailEntryHandle(b,this,this.myWin);};BrowseControls.prototype.GetThumbnailPages=function(b){return top.ThumbnailPages(b,this,this.myWin);};BrowseControls.prototype.InterpretEntryDragData=function(b){var m=new Array();if(this.GetDragDataType(b)!=DRAG_FORMAT_TOC_ENTRIES)return m;var f6=b.substr(LFTOCID_DATA_FORMAT.length).split(top.DRAG_DATA_DELIMITER);for(var ww=4;ww<f6.length;ww++){m.push(f6[ww]);}return m;};BrowseControls.prototype.GetNewEntryListing=function(rA){this.folderToOpen=rA;this.OpenFolder();};BrowseControls.prototype.OKToOpenFolder=function(){this.WaitingForFolderContents=false;this.OpenFolder();};BrowseControls.prototype.OpenFolder=function(){if(!top.VerifyConnection(this.dbid))return;var y=this;if(!this.WaitingForFolderContents&&this.folderToOpen){this.WaitingForFolderContents=true;var a=this.folderToOpen;this.folderToOpen=null;var kp=y.myDocBrowser.maxRowsToDisplay;var W6=y.myDocBrowser.ListingHandle;y.myDocBrowser.ListingHandle=0;var Md=new Array();var jy=top.GetXMLDocument("GetColumnList.asp?FolderID="+a.id);if(jy){var u4=jy.getElementsByTagName("Item");for(var ww=0;ww<u4.length;++ww){var nO=u4.item(ww);var mB=new top.Column(nO.getAttribute("Name"),nO.getAttribute("ID"));Md.push(mB);}}y.myDocBrowser.setColumns(Md);while(Md.length)Md.pop();Md=null;var tD=top.GetXMLDocument("OpenEntryListing.asp?folderid="+a.id+"&oldhandle="+W6+"&preload="+kp+"&dbid="+y.dbid);if(tD){var c=tD.documentElement;if(c.getAttribute("badcolumns")!=null){y.OKToOpenFolder();y.myDocBrowser.Clear(true);y.myDocBrowser.ClearHeader();alert(c.getAttribute("message"));try{y.GetColumnDisplayFunc(top.lfShowModalDialog(y.myWin,"BrowseColumnsDialog.asp?cookiename=BrowseColumns&dbid="+y.dbid+"&folderid="+y.mainFolderBrowser.GetSelectedEntries()[0].id,null,"help:no;scroll:no;status:no",0))();}catch(j1){}}else{y.AllowVitalReview=c.getAttribute("AllowVitalReview");y.AllowFreeze=c.getAttribute("AllowFreeze");y.myDocBrowser.Initialize();var fF=c.getAttribute("Handle");y.myDocBrowser.ListingHandle=fF;a.ShowContents(y.myDocBrowser,y.dbid,true,fF,1,kp,y.myDocBrowser.SortColumnID,y.myDocBrowser.SortDir,true);}}else{y.OKToOpenFolder();if(y.myDocBrowser.currentFolder)y.mainFolderBrowser.SetSelectedEntry(y.myDocBrowser.currentFolder);}}};BrowseControls.prototype.ShowFolderContents=function(kh){if(this.myDocBrowser){if(!this.myDocBrowser.currentFolder||kh.id!=this.myDocBrowser.currentFolder.id){this.GetNewEntryListing(kh);}}};BrowseControls.prototype.SetMainFolderBrowser=function(W_){this.mainFolderBrowser=W_;W_.SetBrowseControls(this,this.startid);};BrowseControls.prototype.SetDocBrowser=function(QP){this.myDocBrowser=QP;QP.SetBrowseControls(this);if(this.mainFolderBrowser)this.ShowFolderContents(this.mainFolderBrowser.GetSelectedEntries()[0]);};BrowseControls.prototype.SetToolbar=function(x){this.myToolbar=x;};BrowseControls.prototype.AddSubfolder=function(){if(!top.VerifyConnection(this.dbid))return;var y=this;var G=this.mainFolderBrowser.GetSelectedEntries()[0];if(G.toctype!="f"&&G.toctype!="fs"){alert(STR_SELECT_PARENT_FOLDER);}else{var Dh=top.lfShowModalDialog(this.myWin,"SubfolderPopup.asp?parentid="+G.id+"&dbid="+this.dbid,null,"help:no;scroll:no;status:no");if(Dh){var A6=new Array();A6.push(Dh);y.myDocBrowser.RefreshFolderContents(A6);A6.pop();y.mainFolderBrowser.GetSelectedEntries()[0].RefreshContents();}}};BrowseControls.prototype.DeleteTOCEntries=function(){if(!this.IsDeleteEnabled())return;var rF;if(this.GetSelectedEntries().length==1)rF=STR_CONFIRM_DELETE_SINGLE+this.GetSelectedEntries()[0].name+"?";else if(this.GetSelectedEntries().length==0)return;else rF=STR_CONFIRM_DELETE_1+this.GetSelectedEntries().length+STR_CONFIRM_DELETE_2;if(confirm(rF)){var Tt=this.GetSelectedEntries();var ww;var T8=false;for(ww=0;ww<Tt.length;ww++){if((Tt[ww].toctype=="e"||Tt[ww].toctype=="es")&&Tt[ww].isCheckedOut()&&!Tt[ww].isPlockOwnedByMe){T8=true;}}if(T8){if(!confirm(STR_CONFIRM_DELETE_CHECKED_OUT))return;}var I=-1;for(ww=0;ww<Tt.length;ww++){if(Tt[ww].Remove()&&(I==-1))I=ww;}if(I>-1){if(Tt[I].isOnLHS()){var G=Tt[I].parentFolder;Tt[I].browser.SetSelectedEntry(G);G.RefreshContents();this.mainFolderBrowser.SelectNoEntries();this.myDocBrowser.Initialize();}else{Tt[I].RefreshWithinTreeView();if(Tt[I].browser.RefreshFolderContents)Tt[I].browser.RefreshFolderContents();}}this.myDocBrowser.SelectNoEntries();}};BrowseControls.prototype.ShowMigrateDialog=function(){if(!top.VerifyConnection(this.dbid))return;var lQ=new Array();var yh=new Array();var bO=this.GetSelectedEntries();for(var ww=0;ww<bO.length;ww++){if(bO[ww].toctype=="d"||bO[ww].toctype=="e")yh.push(bO[ww].id);else if(bO[ww].toctype=="f")lQ.push(bO[ww].id);}if(top.lfShowModalDialog(this.myWin,"MigrateDialog.asp?docids="+yh.join("-")+"&folderids="+lQ.join("-")+"&dbid="+this.dbid,null,"help:no;scroll:no;status:no"))this.myDocBrowser.RefreshFolderContents();while(lQ.length)lQ.pop();lQ=null;while(yh.length)yh.pop();yh=null;};BrowseControls.prototype.ShowScanDialog=function(){if(!top.VerifyConnection(this.dbid)){return;}if(this.scannerLoaded){if(top.selectedIdInput){if(this.GetSelectedEntries().length==1&&this.GetSelectedEntries()[0].isFolder()){top.selectedIdInput.value=this.GetSelectedEntries()[0].id;}else{if(this.mainFolderBrowser&&this.mainFolderBrowser.GetSelectedEntries().length>0){var G=this.mainFolderBrowser.GetSelectedEntries()[0];top.selectedIdInput.value=G.id;}else{top.selectedIdInput.value=1;}}}top.UpdateSessionID();top.LoadScanning();}else{window.open("Scanning_Install.asp?dbid="+this.dbid,'','menubar=no,resizable=no,scrollbars=no,status=no, width=480px, height=380px');}};BrowseControls.prototype.ShowCheckOutListing=function(){if(!top.VerifyConnection(this.dbid))return;top.lfShowModalDialog(window,"CheckedOutDocsPopup.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};BrowseControls.prototype.CheckIn=function(){if(!top.VerifyConnection(this.dbid))return;var tD=top.GetXMLDocument("CheckImportVolume.asp?dbid="+this.dbid);if(tD){var c=tD.documentElement;if(c.getAttribute("Result")<=0){alert(top.STR_INVALID_VOLUME);return;}}var bq=this.GetSelectedEntries()[0];var U;if(bq.toctype=="es")U=bq.targetid;else if(bq.toctype=="e")U=bq.id;else return;if(!top.lfShowModalDialog(window,"CheckInDialog.asp?dbid="+this.dbid+"&id="+U,null,"help:no;scroll:no;status:no"))return;this.myDocBrowser.RefreshFolderContents();};BrowseControls.prototype.UndoCheckOut=function(){if(!top.VerifyConnection(this.dbid))return;var Tt=this.GetSelectedEntries();var ju="UndoCheckoutDocument.asp?dbid="+this.dbid;var rF;if(Tt.length==1)rF=STR_CONFIRM_UNDO_CHECKOUT_1+Tt[0].name+"?";else if(Tt.length==0)return;else rF=STR_CONFIRM_UNDO_CHECKOUT_1+STR_CONFIRM_UNDO_CHECKOUT_2;if(confirm(rF)){var Ah=0;var ww;for(ww=0;ww<Tt.length;ww++){var bq=Tt[ww];var U;if(bq.isCheckedOut()){if(bq.toctype=="es")U=bq.targetid;else if(bq.toctype=="e")U=bq.id;ju+="&id="+U;}else Ah++;}var tD=top.GetXMLDocument(ju);if(tD){var og=0;var c=tD.documentElement;var za=c.getElementsByTagName("NumUndoCheckouts");if(za.length>0){og=za.item(0).text;}if(og*1+Ah*1!=Tt.length){alert(top.STR_CANNOT_UNDO_CHECKOUT_OTHER);}if(og>0){this.myDocBrowser.RefreshFolderContents();}}}};BrowseControls.prototype.CheckOut=function(){if(!top.VerifyConnection(this.dbid))return;var bq=this.GetSelectedEntries()[0];var U;if(bq.toctype=="es")U=bq.targetid;else if(bq.toctype=="e")U=bq.id;else return;if(!top.lfShowModalDialog(window,"CheckOutDialog.asp?dbid="+this.dbid+"&id="+U,null,"help:no;scroll:no;status:no"))return;top.document.getElementById("downloadframe").src="ImageDisplay.asp?doc="+U+"&forcedialog=1&edoc=1&dbid="+this.dbid;this.myDocBrowser.ChangeCheckOut(U);};BrowseControls.prototype.DisableFieldsAndTags=function(){this.DisableEditFields();this.DisableEditTags();};BrowseControls.prototype.CheckOutDetails=function(){if(!top.VerifyConnection(this.dbid))return;var bq=this.GetSelectedEntries()[0];var U;if(bq.toctype=="es")U=bq.targetid;else if(bq.toctype=="e")U=bq.id;else return;if(!top.lfShowModalDialog(window,"CheckOutDetailsPopup.asp?dbid="+this.dbid+"&id="+U,null,"help:no;scroll:no;status:no"))return;};BrowseControls.prototype.SetMultiSelectCount=function(Od){var Kw=this.GetSelectedEntries();this.DisableRename();this.DisableEditFields();this.DisableEditTags();this.DisableEditLinks();this.DisableEditVersions();this.DisableEditSensitivity();this.DisableEditAccess();this.DisablePropagateRights();this.DisableProperties();this.DisableCheckIn();this.DisableUndoCheckOut();this.DisableCheckOut();this.DisableCheckOutDetails();this.DisableTextExtraction();this.DisableSnapshot();this.DisableExportImage();this.DisableDownload();this.DisableExportBriefcase();if(this.HasRMFeature){this.DisableEditRSProps();this.DisableVitalReview();this.DisableFreeze();this.DisableRecordActions();this.DisableAddRecordSeries();this.DisableEditRFProps();this.DisablePrintFilePlan();}if(Od==1){if(Kw[0].id==ROOT_FOLDER_ID){this.EnableEditFields();this.EnableEditTags();this.EnableEditAccess();this.EnablePropagateRights();if(this.HasRMFeature){this.EnableAddRecordSeries();this.EnablePrintFilePlan();}}else{this.EnableRename();this.EnableEditSensitivity();this.EnableEditAccess();this.EnableProperties();this.EnableEditFields();this.EnableEditTags();if(Kw[0].isFolder()){this.EnablePropagateRights();}else if(Kw[0].toctype=="e"||Kw[0].toctype=="es"){if(!Kw[0].isCheckedOut()){this.EnableCheckOut();}else{this.EnableCheckOutDetails();if(Kw[0].isPlockOwnedByMe){this.EnableCheckIn();}}this.EnableEditLinks();this.EnableEditVersions();this.EnableSnapshot();}if(Kw[0].toctype=="d"){this.EnableExportImage();this.EnableEditLinks();this.EnableEditVersions();}if(this.HasRMFeature){if(this.AllowFreeze)this.EnableFreeze();if(Kw[0].isRecordSeries){this.EnableEditRSProps();this.EnableAddRecordSeries();this.EnableFreeze();this.EnablePrintFilePlan();}if(Kw[0].isRecordFolder){this.EnableEditRFProps();this.EnableRecordActions();this.EnablePrintFilePlan();}else{if(this.AllowVitalReview&&(Kw[0].toctype=="d"||Kw[0].toctype=="e")){this.EnableVitalReview();}}}}}if((Od==0)||(Kw[0].id==ROOT_FOLDER_ID)){this.DisableDelete();this.DisableCopy();this.DisableMigrate();}else{this.EnableEditFields();this.EnableEditTags();this.EnableDelete();this.EnableCopy();this.EnableMigrate();}for(var ww=0;ww<Kw.length;++ww){if(Kw[ww].NotReadable)this.DisableFieldsAndTags();}if(Od>0){this.EnableExportBriefcase();this.EnableTextExtraction();if(this.mainFolderBrowser.GetSelectedEntries()[0].isRecordSeries){this.DisableAddDocument();this.DisableImport();this.DisableScan();}else{this.EnableAddDocument();this.EnableImport();this.EnableScan();}var O_=true;var eD=true;var Z=this.AllowVitalReview;for(var ww=0;ww<Kw.length;++ww){if(Kw[ww].toctype!="e"&&Kw[ww].toctype!="es"){this.DisableTextExtraction();this.DisableSnapshot();}else{this.EnableDownload();if(Kw[ww].isCheckedOut()){this.EnableUndoCheckOut();this.DisableTextExtraction();this.DisableSnapshot();}}if(Kw[ww].isFolder())O_=false;if(Kw[ww].toctype!="d"&&Kw[ww].toctype!="e")Z=false;if(!Kw[ww].isRecordSeries)eD=false;}if(O_)this.EnableExportImage();if(this.HasRMFeature){if(Z)this.EnableVitalReview();if(this.AllowFreeze||eD)this.EnableFreeze();}}};BrowseControls.prototype.OpenTOCEntries=function(){if(!top.VerifyConnection(this.dbid))return;var q=false;var N=new Array();for(var ww=0;ww<this.GetSelectedEntries().length;ww++){N.push(this.GetSelectedEntries()[ww]);}for(var ww=0;ww<N.length;ww++){var Gh=N[ww];if(Gh.toctype=="f"||Gh.toctype=="fs"){if(q){top.window.open("index.asp?startid="+Gh.id+"&dbid="+this.dbid);}else{Gh.DblClickFunc();q=true;}}else{top.OpenDocView(top.window,Gh.targetid,"docview.asp?id="+Gh.targetid+"&dbid="+this.dbid,"height=570,resizable=yes,scrollbars=no,status=yes,toolbar=no,width=860");}}while(N.length)N.pop();N=null;};BrowseControls.prototype.OpenElectFiles=function(){if(!top.VerifyConnection(this.dbid))return;var q=false;var N=new Array();for(var ww=0;ww<this.GetSelectedEntries().length;ww++){N.push(this.GetSelectedEntries()[ww]);}for(var ww=0;ww<N.length;ww++){var Gh=N[ww];if(Gh.toctype=="e"||Gh.toctype=="es"){if(Gh.isPlockOwnedByMe){if(!confirm(top.STR_CHECKED_OUT_SELF_DOWNLOAD_CONFIRM))return;}top.window.open("ImageDisplay.asp?doc="+Gh.id+"&edoc=1&scale=10000&dbid="+this.dbid+"&/"+Gh.name);}}while(N.length)N.pop();N=null;};BrowseControls.prototype.ExportBriefcase=function(){if(!top.VerifyConnection(this.dbid))return;if(this.exportAudited){if(!top.lfShowModalDialog(window,"AuditReasonPopup.asp?event="+this.exportAudited+"&dbid="+this.dbid,null,"help:no;scroll:no;status:no"))return;}var fR="ExportBriefcase.asp?dbid="+this.dbid;var N=new Array();for(var ww=0;ww<this.GetSelectedEntries().length;ww++){N.push(this.GetSelectedEntries()[ww]);}for(var ww=0;ww<N.length;ww++){var Gh=N[ww];if(Gh.toctype=="f"||Gh.toctype=="fs"){if(Gh.toctype=="f"){fR=fR+"&folderid="+Gh.id;}else{fR=fR+"&folderid="+Gh.targetid;}}else{if(Gh.toctype=="d"||Gh.toctype=="e"){fR=fR+"&entryid="+Gh.id;}else{fR=fR+"&entryid="+Gh.targetid;}}}while(N.length)N.pop();N=null;window.open(fR);};BrowseControls.prototype.ExportImage=function(){if(!top.VerifyConnection(this.dbid))return;if(this.exportAudited){if(!top.lfShowModalDialog(window,"AuditReasonPopup.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no"))return;}var N=new Array();for(var ww=0;ww<this.GetSelectedEntries().length;ww++){N.push(this.GetSelectedEntries()[ww]);}for(var ww=0;ww<N.length;ww++){var Gh=N[ww];if(Gh.toctype!="f"&&Gh.toctype!="fs"){CI='ImageDisplay.asp?pdf=1&scale=10000&pdfendpage=75&pdfstartpage=1&doc='+Gh.targetid+'&dbid='+this.dbid+'&/'+Gh.name+'.pdf';var xp=top.window.open(CI,'','menubar=yes,resizable=yes,scrollbars=yes,status=yes');}}while(N.length)N.pop();N=null;};BrowseControls.prototype.setBrowseMenuDiv=function(l,eb,_){var y=this;var Gp=0;var X=function(){y.killContextMenu();};y.BrowseMenu=new top.Menustrip(l,eb,X);y.userName=_;y.newMenu=new top.SubMenu(75);var XH=function(){y.AddSubfolder();};var PE=function(){y.ShowCreateDocDialog();};y.newMenu.AddItem(STR_FOLDER,XH,true,false);y.newMenu.AddItem(STR_DOCUMENT,PE,true,false);y.fileOptions.push(STR_NEW);y.fileHandlers.push(y.newMenu);y.fileClickables.push(true);var tR=y.fileOptions.length-1;Gp++;y.EnableAddFolder=function(){y.fileHandlers[tR].clickables[0]=true;if(y.myToolbar)y.myToolbar.EnableNewFolder();};y.DisableAddFolder=function(){y.fileHandlers[tR].clickables[0]=false;if(y.myToolbar)y.myToolbar.DisableNewFolder();};y.EnableAddDocument=function(){y.fileHandlers[tR].clickables[1]=true;};y.DisableAddDocument=function(){y.fileHandlers[tR].clickables[1]=false;};var MX=function(){if(y.GetSelectedEntries()[0].isRecordSeries){y.ShowRSDialog(y.GetSelectedEntries()[0]);}else{y.GetSelectedEntries()[0].GetNewName(y.GetSelectedEntries()[0].browser.myWin,y.dbid);}};y.fileOptions.push(STR_RENAME);y.fileHandlers.push(MX);y.fileClickables.push(false);var Dd=y.fileOptions.length-1;Gp++;y.EnableRename=function(){y.fileClickables[Dd]=true;};y.DisableRename=function(){y.fileClickables[Dd]=false;};if(this.GetIsDeleteAllowed()){y.fileOptions.push(STR_DELETE);y.fileHandlers.push(function(){y.DeleteTOCEntries();});y.fileClickables.push(false);var l2=y.fileOptions.length-1;Gp++;y.EnableDelete=function(){y.fileClickables[l2]=true;};y.DisableDelete=function(){y.fileClickables[l2]=false;};y.IsDeleteEnabled=function(){return y.fileClickables[l2];};}else{y.EnableDelete=function(){};y.DisableDelete=function(){};y.IsDeleteEnabled=function(){return false;};}if(y.bViewPropsAllowed){y.fileOptions.push(STR_PROPERTIES);y.fileHandlers.push(function(){y.GetSelectedEntries()[0].ShowPropertiesDialog(y.myWin,y.dbid);});y.fileClickables.push(false);var YL=y.fileOptions.length-1;Gp++;y.EnableProperties=function(){y.fileClickables[YL]=true;};y.DisableProperties=function(){y.fileClickables[YL]=false;};}else{y.EnableProperties=function(){};y.DisableProperties=function(){};}if(Gp>0){y.fileOptions.push(null);y.fileHandlers.push(null);y.fileClickables.push(null);Gp=0;}if(y.bImportAllowed){var MY=function(){y.ShowEdocDialog();};var yS=function(){y.ShowBriefcaseDialog();};var t6=function(){y.ShowImageDialog();};y.importMenu=new top.SubMenu(75);y.importMenu.AddItem(STR_IMAGE,t6,true,false);y.importMenu.AddItem(STR_ELECTRONIC_DOCUMENT,MY,true,false);y.importMenu.AddItem(STR_BRIEFCASE,yS,true,false);y.fileOptions.push(STR_IMPORT);y.fileHandlers.push(y.importMenu);y.fileClickables.push(true);var qz=y.fileOptions.length-1;Gp++;y.EnableImport=function(){y.fileClickables[qz]=true;};y.DisableImport=function(){y.fileClickables[qz]=false;};}else{y.EnableImport=function(){};y.DisableImport=function(){};}if(y.bExportAllowed){var AF=function(){y.ExportBriefcase();};var ff=function(){y.ExportImage();};var j5=function(){y.ExportBriefcase();};y.exportMenu=new top.SubMenu(75);y.exportMenu.AddItem(STR_IMAGESDOTS,ff,true,false);y.exportMenu.AddItem(STR_BRIEFCASEDOTS,AF,true,false);y.fileOptions.push(STR_EXPORT);y.fileHandlers.push(y.exportMenu);y.fileClickables.push(true);Gp++;y.EnableExportImage=function(){y.exportMenu.clickables[0]=true;};y.DisableExportImage=function(){y.exportMenu.clickables[0]=false;};y.EnableExportBriefcase=function(){y.exportMenu.clickables[1]=true;};y.DisableExportBriefcase=function(){y.exportMenu.clickables[1]=false;};}else{y.EnableExportImage=function(){};y.DisableExportImage=function(){};y.EnableExportBriefcase=function(){};y.DisableExportBriefcase=function(){};}if(y.bScanAllowed){y.fileOptions.push(STR_SCAN);y.fileHandlers.push(function(){y.ShowScanDialog();});y.fileClickables.push(true);var jG=y.fileOptions.length-1;Gp++;y.EnableScan=function(){y.fileClickables[jG]=true;};y.DisableScan=function(){y.fileClickables[jG]=false;};}else{y.EnableScan=function(){};y.DisableScan=function(){};}if(Gp>0){y.fileOptions.push(null);y.fileHandlers.push(null);y.fileClickables.push(null);Gp=0;}y.fileOptions.push(top.STR_LOG_OUT);y.fileHandlers.push(function(){y.LogOut();});y.fileClickables.push(true);y.fileMenuInfo=new top.MenuInfo(STR_FILE,y.fileOptions,y.fileHandlers,y.fileClickables);y.BrowseMenu.AddMenu(y.fileMenuInfo);y.editOptions.push(STR_CUT);y.editHandlers.push(function(){y.CutFunc();});y.editClickables.push(false);var tw=y.editOptions.length-1;y.editOptions.push(STR_COPY);y.editHandlers.push(function(){y.CopyFunc();});y.editClickables.push(false);var Y9=y.editOptions.length-1;y.EnableCopy=function(){y.editClickables[tw]=true;y.editClickables[Y9]=true;if(y.myToolbar){y.myToolbar.EnableCut();y.myToolbar.EnableCopy();}};y.DisableCopy=function(){y.editClickables[tw]=false;y.editClickables[Y9]=false;if(y.myToolbar){y.myToolbar.DisableCut();y.myToolbar.DisableCopy();}};y.editOptions.push(STR_PASTE);y.editHandlers.push(function(){y.CopyPasteFunc();});y.editClickables.push(false);var yw=y.editOptions.length-1;y.EnableCopyPaste=function(){y.editClickables[yw]=true;if(y.myToolbar)y.myToolbar.EnableCopyPaste();};y.DisableCopyPaste=function(){y.editClickables[yw]=false;if(y.myToolbar)y.myToolbar.DisableCopyPaste();};y.IsCopyPasteAllowed=function(){return y.editClickables[yw];};y.editOptions.push(STR_PASTE_AS_SHORTCUT);y.editHandlers.push(function(){y.LinkPasteFunc();});y.editClickables.push(false);var pW=y.editOptions.length-1;y.EnableLinkPaste=function(){y.editClickables[pW]=true;if(y.myToolbar)y.myToolbar.EnableLinkPaste();};y.DisableLinkPaste=function(){y.editClickables[pW]=false;if(y.myToolbar)y.myToolbar.DisableLinkPaste();};y.IsLinkPasteAllowed=function(){return y.editClickables[pW];};var pO=new top.MenuInfo(STR_EDIT,y.editOptions,y.editHandlers,y.editClickables);this.BrowseMenu.AddMenu(pO);y.actionOptions.push(STR_FIELDS+"...");y.actionHandlers.push(function(){y.GetSelectedEntries()[0].ShowMetadataDialog("showfields");});y.actionClickables.push(false);var e8=y.actionOptions.length-1;y.EnableEditFields=function(){y.actionClickables[e8]=true;if(y.myToolbar)y.myToolbar.EnableFields();};y.DisableEditFields=function(){y.actionClickables[e8]=false;if(y.myToolbar)y.myToolbar.DisableFields();};y.actionOptions.push(STR_TAGS+"...");y.actionHandlers.push(function(){y.GetSelectedEntries()[0].ShowMetadataDialog("showtags");});y.actionClickables.push(false);var U3=y.actionOptions.length-1;y.EnableEditTags=function(){y.actionClickables[U3]=true;};y.DisableEditTags=function(){y.actionClickables[U3]=false;};y.actionOptions.push(STR_LINKS+"...");y.actionHandlers.push(function(){y.GetSelectedEntries()[0].ShowMetadataDialog("showlinks");});y.actionClickables.push(false);var Dw=y.actionOptions.length-1;y.EnableEditLinks=function(){y.actionClickables[Dw]=true;};y.DisableEditLinks=function(){y.actionClickables[Dw]=false;};y.actionOptions.push(STR_VERSIONS+"...");y.actionHandlers.push(function(){y.GetSelectedEntries()[0].ShowMetadataDialog("showversions");});y.actionClickables.push(false);var NA=y.actionOptions.length-1;y.EnableEditVersions=function(){y.actionClickables[NA]=true;};y.DisableEditVersions=function(){y.actionClickables[NA]=false;};y.actionOptions.push(null);y.actionHandlers.push(null);y.actionClickables.push(null);if(y.bMigrateAllowed){y.actionOptions.push(top.STR_MIGRATE);y.actionHandlers.push(function(){y.ShowMigrateDialog();});y.actionClickables.push(false);var dJ=y.actionOptions.length-1;y.EnableMigrate=function(){y.actionClickables[dJ]=true;};y.DisableMigrate=function(){y.actionClickables[dJ]=false;};}else{y.EnableMigrate=function(){};y.DisableMigrate=function(){};}var jq=function(){y.CheckOut();};var m9=function(){y.CheckIn();};var DM=function(){y.UndoCheckOut();};var U_=function(){y.CheckOutDetails();};y.cicoMenu=new top.SubMenu(150);y.cicoMenu.AddItem(STR_CHECK_OUT,jq,true,false);y.cicoMenu.AddItem(STR_CHECK_IN,m9,true,false);y.cicoMenu.AddItem(STR_UNDO_CHECK_OUT,DM,true,false);y.cicoMenu.AddItem(STR_CHECK_OUT_DETAILS,U_,true,false);y.EnableCheckOut=function(){y.cicoMenu.clickables[0]=true;};y.DisableCheckOut=function(){y.cicoMenu.clickables[0]=false;};y.EnableCheckIn=function(){y.cicoMenu.clickables[1]=true;};y.DisableCheckIn=function(){y.cicoMenu.clickables[1]=false;};y.EnableUndoCheckOut=function(){y.cicoMenu.clickables[2]=true;};y.DisableUndoCheckOut=function(){y.cicoMenu.clickables[2]=false;};y.EnableCheckOutDetails=function(){y.cicoMenu.clickables[3]=true;};y.DisableCheckOutDetails=function(){y.cicoMenu.clickables[3]=false;};y.actionOptions.push(top.STR_CHECK_IN_CHECK_OUT);y.actionHandlers.push(y.cicoMenu);y.actionClickables.push(true);y.actionOptions.push(null);y.actionHandlers.push(null);y.actionClickables.push(null);y.EnableDownload=function(){};y.DisableDownload=function(){};if(y.bSnapshotEnabled){y.actionOptions.push(top.STR_SNAPSHOT);y.actionHandlers.push(function(){y.SnapshotSelectedEntries();});y.actionClickables.push(false);var z7=y.actionOptions.length-1;y.EnableSnapshot=function(){y.actionClickables[z7]=true;};y.DisableSnapshot=function(){y.actionClickables[z7]=false;};}else{y.EnableSnapshot=function(){};y.DisableSnapshot=function(){};}y.actionOptions.push(top.STR_EXTRACT_TEXT);y.actionHandlers.push(function(){y.ExtractText();});y.actionClickables.push(false);var A6y=y.actionOptions.length-1;y.EnableTextExtraction=function(){y.actionClickables[A6y]=true;if(y.myToolbar)y.myToolbar.EnableTextExtraction();};y.DisableTextExtraction=function(){y.actionClickables[A6y]=false;if(y.myToolbar)y.myToolbar.DisableTextExtraction();};y.IsTextExtractionEnabled=function(){return y.actionClickables[A6y];};var ge=new top.MenuInfo(STR_ACTION,y.actionOptions,y.actionHandlers,y.actionClickables);this.BrowseMenu.AddMenu(ge);y.toolsOptions.push(top.STR_EDIT_ACCESS);y.toolsHandlers.push(function(){y.GetSelectedEntries()[0].ShowAccessDialog();});y.toolsClickables.push(false);var bv=y.toolsOptions.length-1;y.EnableEditAccess=function(){y.toolsClickables[bv]=true;};y.DisableEditAccess=function(){y.toolsClickables[bv]=false;};y.toolsOptions.push(top.STR_PROPAGATE_RIGHTS);y.toolsHandlers.push(function(){y.GetSelectedEntries()[0].PropagateRights();});y.toolsClickables.push(false);var Gk=y.toolsOptions.length-1;y.EnablePropagateRights=function(){y.toolsClickables[Gk]=true;};y.DisablePropagateRights=function(){y.toolsClickables[Gk]=false;};y.toolsOptions.push(null);y.toolsHandlers.push(null);y.toolsClickables.push(null);y.toolsOptions.push(top.STR_CHECKED_OUT_DOCS+"...");y.toolsHandlers.push(function(){y.ShowCheckOutListing();});y.toolsClickables.push(true);y.EnableShowCheckOutListing=function(){y.toolsClickables[3]=true;};y.DisableShowCheckOutListing=function(){y.toolsClickables[3]=false;};var oN=new top.MenuInfo(STR_TOOLS,y.toolsOptions,y.toolsHandlers,y.toolsClickables);this.BrowseMenu.AddMenu(oN);if(y.HasRMFeature){y.RMOptions.push(top.STR_NEW_RECORD_SERIES+"...");y.RMHandlers.push(function(){y.ShowRSDialog();});y.RMClickables.push(true);var E=y.RMOptions.length-1;y.EnableAddRecordSeries=function(){y.RMClickables[E]=true;};y.DisableAddRecordSeries=function(){y.RMClickables[E]=false;};y.RMOptions.push(top.STR_RECORD_SERIES_PROPERTIES+"...");y.RMHandlers.push(function(){y.ShowRSDialog(y.GetSelectedEntries()[0]);});y.RMClickables.push(false);var uk=y.RMOptions.length-1;y.EnableEditRSProps=function(){y.RMClickables[uk]=true;};y.DisableEditRSProps=function(){y.RMClickables[uk]=false;};y.RMOptions.push(top.STR_EDIT_RECORD_FOLDER+"...");y.RMHandlers.push(function(){y.ShowRFDialog(y.GetSelectedEntries()[0]);});y.RMClickables.push(false);var lg=y.RMOptions.length-1;y.EnableEditRFProps=function(){y.RMClickables[lg]=true;};y.DisableEditRFProps=function(){y.RMClickables[lg]=false;};y.RMOptions.push(null);y.RMHandlers.push(null);y.RMClickables.push(null);y.RMOptions.push(top.STR_ACTIONS+"...");y.RMHandlers.push(function(){y.GetSelectedEntries()[0].ShowRecordActionsDialog();});y.RMClickables.push(false);var Aa=y.RMOptions.length-1;y.EnableRecordActions=function(){y.RMClickables[Aa]=true;};y.DisableRecordActions=function(){y.RMClickables[Aa]=false;};y.RMOptions.push(top.STR_FROZEN_STATUS+"...");y.RMHandlers.push(function(){y.GetSelectedEntries()[0].ShowFrozenDialog();});y.RMClickables.push(false);var Oo=y.RMOptions.length-1;y.EnableFreeze=function(){y.RMClickables[Oo]=true;};y.DisableFreeze=function(){y.RMClickables[Oo]=false;};y.RMOptions.push(top.STR_SET_REVIEW_DATE+"...");y.RMHandlers.push(function(){y.GetSelectedEntries()[0].ShowReviewDateDialog();});y.RMClickables.push(false);var Uj=y.RMOptions.length-1;y.EnableVitalReview=function(){y.RMClickables[Uj]=true;};y.DisableVitalReview=function(){y.RMClickables[Uj]=false;};y.RMOptions.push(null);y.RMHandlers.push(null);y.RMClickables.push(null);y.RMOptions.push(top.STR_PRINT_FILE_PLAN+"...");y.RMHandlers.push(function(){y.GetSelectedEntries()[0].PrintFilePlan(y.dbid);});y.RMClickables.push(false);var rh=y.RMOptions.length-1;y.EnablePrintFilePlan=function(){y.RMClickables[rh]=true;};y.DisablePrintFilePlan=function(){y.RMClickables[rh]=false;};var B=new top.MenuInfo(STR_RECORDS,y.RMOptions,y.RMHandlers,y.RMClickables);this.BrowseMenu.AddMenu(B);}y.settingsOptions[0]=STR_CHANGE_PASSWORD+"...";y.settingsHandlers[0]=function(){y.GetNewPassword();};y.settingsClickables[0]=true;y.settingsOptions[1]=STR_CHOOSE_DISPLAY_COLUMNS+"...";y.settingsHandlers[1]=function(){if(!top.VerifyConnection(y.dbid))return;y.GetColumnDisplayFunc(top.lfShowModalDialog(y.myWin,"BrowseColumnsDialog.asp?cookiename=BrowseColumns&dbid="+y.dbid+"&folderid="+y.mainFolderBrowser.GetSelectedEntries()[0].id,null,"help:no;scroll:no;status:no",0))();};y.settingsClickables[1]=true;y.settingsOptions[2]=top.STR_CHANGE_IMPORT_OPTIONS+"...";y.settingsHandlers[2]=function(){y.ShowImportVolumeDialog();};y.settingsClickables[2]=true;y.settingsOptions[3]=top.STR_CHANGE_EXPORT_OPTIONS+"...";y.settingsHandlers[3]=function(){if(!top.VerifyConnection(y.dbid))return;y.GetColumnDisplayFunc(top.lfShowModalDialog(y.myWin,"ExportImageOptions.asp?dbid="+y.dbid,null,"help:no;scroll:no;status:no"))();};y.settingsClickables[3]=true;y.settingsOptions[4]=top.STR_CHANGE_DOCUMENT_VIEW+"...";y.settingsHandlers[4]=function(){top.autoOpenEdoc=y.ShowDocumentViewDialog();};y.settingsClickables[4]=true;y.settingsOptions[5]=top.STR_ANNOTATIONS+"...";y.settingsHandlers[5]=function(){y.ShowAnnotationsDialog();};y.settingsClickables[5]=true;var y_=new top.MenuInfo(STR_SETTINGS,y.settingsOptions,y.settingsHandlers,y.settingsClickables);this.BrowseMenu.AddMenu(y_);y.helpOptions.push(STR_WEB_ACCESS_HELP);y.helpHandlers.push(function(){top.OpenHelpLink("",false);});y.helpClickables.push(true);if(this.HasRMFeature){y.helpOptions.push(STR_RECORDS_MANAGEMENT_HELP);y.helpHandlers.push(function(){top.OpenHelpLink("",true);});y.helpClickables.push(true);}var aE=function(){if(!top.VerifyConnection(y.dbid))return;top.lfShowModalDialog(top.window,"AboutPopup.asp?dbid="+y.dbid,null,"help:no;scroll:no;status:no");};y.helpOptions.push(STR_ABOUT);y.helpHandlers.push(aE);y.helpClickables.push(true);var Lz=new top.MenuInfo(STR_HELP,y.helpOptions,y.helpHandlers,y.helpClickables);this.BrowseMenu.AddMenu(Lz);y.EnableEditSensitivity=function(){};y.DisableEditSensitivity=function(){};};BrowseControls.prototype.SnapshotSelectedEntries=function(){var A6=new Array();var Kw=this.GetSelectedEntries();for(var ww=0;ww<Kw.length;++ww){A6.push(Kw[ww].id);}if(!confirm(top.STR_CONFIRM_SNAPSHOT))return;if(top.GetXMLDocument("Snapshot.asp?id="+A6.join(",")+"&dbid="+this.dbid))alert(top.STR_SNAPSHOT_INITIATED);};BrowseControls.prototype.AreFieldsEditable=function(){return this.fieldsEditable;};BrowseControls.prototype.GetCompareTemplateIDFunc=function(x3){var y=this;return function(){return(x3==y.myDocBrowser.templateID);};};BrowseControls.prototype.GetColumnDisplayFunc=function(_w){var y=this;return function(){if(_w){y.myDocBrowser.setColumns(_w);y.GetNewEntryListing(y.mainFolderBrowser.GetSelectedEntries()[0]);}};};BrowseControls.prototype.ShowEdocDialog=function(){if(!top.VerifyConnection(this.dbid))return;var tD=top.GetXMLDocument("CheckImportVolume.asp?dbid="+this.dbid);if(tD){var c=tD.documentElement;if(c.getAttribute("Result")<=0){alert(top.STR_INVALID_VOLUME);return;}}var Dh=top.lfShowModalDialog(this.myWin,"FieldPopup.asp?folderid="+this.mainFolderBrowser.GetSelectedEntries()[0].id+"&addedoc=yes&dbid="+this.dbid,null,"help:no;scroll:no;status:no",0);if(Dh>0){var A6=new Array();A6.push(Dh);this.myDocBrowser.RefreshFolderContents(A6);}};BrowseControls.prototype.ShowBriefcaseDialog=function(){if(!top.VerifyConnection(this.dbid))return;var tD=top.GetXMLDocument("CheckImportVolume.asp?dbid="+this.dbid);if(tD){var c=tD.documentElement;if(c.getAttribute("Result")<=0){alert(top.STR_INVALID_VOLUME);return;}}if(top.lfShowModalDialog(this.myWin,"BriefcasePopup.asp?folderid="+this.mainFolderBrowser.GetSelectedEntries()[0].id+"&dbid="+this.dbid,null,"help:no;scroll:no;status:no"))this.myDocBrowser.RefreshFolderContents();};BrowseControls.prototype.ShowImageDialog=function(){if(!top.VerifyConnection(this.dbid))return;var tD=top.GetXMLDocument("CheckImportVolume.asp?dbid="+this.dbid);if(tD){var c=tD.documentElement;if(c.getAttribute("Result")<=0){alert(top.STR_INVALID_VOLUME);return;}}var Dh=top.lfShowModalDialog(this.myWin,"FieldPopup.asp?folderid="+this.mainFolderBrowser.GetSelectedEntries()[0].id+"&imagedoc=yes&dbid="+this.dbid,null,"help:no;scroll:no;status:no",0);if(Dh>0){var A6=new Array();A6.push(Dh);this.myDocBrowser.RefreshFolderContents(A6);}};BrowseControls.prototype.ShowCreateDocDialog=function(){if(!top.VerifyConnection(this.dbid))return;var dC=top.GetXMLDocument("CurDefaultVolume.asp");if(dC&&(dC.documentElement.text=="")&&(!this.ShowImportVolumeDialog()))return;var Dh=top.lfShowModalDialog(this.myWin,"FieldPopup.asp?folderid="+this.mainFolderBrowser.GetSelectedEntries()[0].id+"&createdoc=yes&dbid="+this.dbid,null,"help:no;scroll:no;status:no",0);if(Dh>0){var A6=new Array();A6.push(Dh);this.myDocBrowser.RefreshFolderContents(A6);}};BrowseControls.prototype.ShowRSDialog=function(Bf){if(!top.VerifyConnection(this.dbid))return;var ju="RecordSeriesPopup.asp?dbid="+this.dbid;if(Bf)ju=ju+"&id="+Bf.id;else ju=ju+"&parentid="+this.mainFolderBrowser.GetSelectedEntries()[0].id;var pR=top.lfShowModalDialog(this.myWin,ju,null,"help:no;scroll:no;status:no");if(pR){var A6=new Array();A6.push(pR.id);this.myDocBrowser.RefreshFolderContents(A6);this.mainFolderBrowser.GetSelectedEntries()[0].RefreshContents();var sB=this.mainFolderBrowser.GetSelectedEntries();if(sB.length>0){if(sB[0].id==pR.id)this.mainFolderBrowser.SetSelectedEntry(sB[0]);}if(Bf){Bf.name=pR.name;}}};BrowseControls.prototype.ShowRFDialog=function(kV){if(!top.VerifyConnection(this.dbid))return;var ju="RecordFolderPopup.asp?id="+kV.id+"&dbid="+this.dbid;top.lfShowModalDialog(this.myWin,ju,null,"help:no;scroll:no;status:no");};BrowseControls.prototype.GetNewPassword=function(){if(!top.VerifyConnection(this.dbid))return;top.lfShowModalDialog(this.myWin,"PasswordDialog.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};BrowseControls.prototype.ShowImportVolumeDialog=function(){if(!top.VerifyConnection(this.dbid))return;return top.lfShowModalDialog(this.myWin,"ImportVolumeDialog.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};BrowseControls.prototype.ShowDocumentViewDialog=function(){if(!top.VerifyConnection(this.dbid))return;return top.lfShowModalDialog(this.myWin,"DocViewSettingsDialog.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};BrowseControls.prototype.ShowAnnotationsDialog=function(){if(!top.VerifyConnection(this.dbid))return;return top.lfShowModalDialog(this.myWin,"AnnotationSettings.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};BrowseControls.prototype.ShowLinkTypeDialog=function(){if(!top.VerifyConnection(this.dbid))return;top.lfShowModalDialog(this.myWin,"LinkTypeDialog.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};BrowseControls.prototype.KeyPress=function(g,l){var y=this;g=top.getEvent(g,l.event,false);if(!this.renaming){if(g.keyCode==DELETE_KEY_CODE)this.DeleteTOCEntries();if(g.ctrlKey){if(g.keyCode==C_KEY_CODE)this.CopyFunc();if(g.keyCode==V_KEY_CODE)this.CopyPasteFunc();if(g.keyCode==X_KEY_CODE)this.CutFunc();}else if(g.altKey){if(g.keyCode==ENTER_KEY_CODE&&this.GetSelectedEntries().length>0)this.GetSelectedEntries()[0].ShowPropertiesDialog(this.myWin,this.dbid);}else if(top.IsAlphaNumericKey(g.keyCode)){var HS=this.NamePrefix;this.PrefixLastModified=top.GetUTC();if(!HS)HS="";HS+=top.CharFromKey(g.keyCode);this.NamePrefix=HS;if(this.FolderBrowserHasFocus){}else this.myDocBrowser.SelectEntryFromPrefix(HS);}else{if(g.keyCode==F2_KEY_CODE&&y.GetSelectedEntries().length==1)y.GetSelectedEntries()[0].GetNewName(y.GetSelectedEntries()[0].browser.myWin,y.dbid);}}return g.keyCode;};BrowseControls.prototype.CopyFunc=function(){if(this.clipboard){for(var ww=0;ww<this.clipboard.length;ww++){this.clipboard[ww].DisplayNotCut();}}this.clipboard=top.copyArray(this.GetSelectedEntries());var xw=false;for(var ww=0;ww<this.clipboard.length;ww++){if(this.clipboard[ww].isFolder()){xw=true;break;}}if(!xw)this.EnableCopyPaste();else this.DisableCopyPaste();this.EnableLinkPaste();this.moveOnPaste=false;};BrowseControls.prototype.CutFunc=function(){this.DisableLinkPaste();this.EnableCopyPaste();this.moveOnPaste=true;if(this.clipboard){for(var ww=0;ww<this.clipboard.length;ww++){if(this.clipboard[ww].DisplayNotCut){this.clipboard[ww].DisplayNotCut();}}}this.clipboard=top.copyArray(this.GetSelectedEntries());for(var ww=0;ww<this.clipboard.length;ww++){this.clipboard[ww].DisplayCut();}};BrowseControls.prototype.GetClipboardIDs=function(){var m=new Array();if((this.clipboard.length>0)&&this.clipboard[0].id==null){zV=top.GetCookie("ClipBoard");var xc=zV.split(",");for(var ww=0;ww<xc.length;ww++)m.push(xc[ww]);}else{var wR;for(ww=0;ww<this.clipboard.length;ww++){if(wR==null)wR=this.clipboard[ww].id;else wR=wR+","+this.clipboard[ww].id;m.push(this.clipboard[ww].id);}top.SetCookie("ClipBoard",wR);}return m;};BrowseControls.prototype.CopyPasteFunc=function(){if(!this.IsCopyPasteAllowed()){this.LinkPasteFunc();return;}if(this.clipboard){var YG=null;if(this.GetSelectedEntries().length==1){var bq=this.GetSelectedEntries()[0];if(bq.isFolder()){YG=bq;}}if(YG==null&&this.mainFolderBrowser.GetSelectedEntries().length==1&&this.mainFolderBrowser.GetSelectedEntries()[0].isFolder()){YG=this.mainFolderBrowser.GetSelectedEntries()[0];}if(YG!=null){if(this.moveOnPaste){var V=this.GetClipboardIDs();this.DisableLinkPaste();this.DisableCopyPaste();YG.DropChildren(V,MOVE_OP,null,top.getLMBNum());}else YG.DropChildren(this.GetClipboardIDs(),COPY_OP,null,top.getLMBNum());}}};BrowseControls.prototype.LinkPasteFunc=function(){if(this.clipboard){var YG=null;if(this.GetSelectedEntries().length==1){var bq=this.GetSelectedEntries()[0];if(bq.isFolder()){YG=bq;}}if(YG==null&&this.mainFolderBrowser.GetSelectedEntries().length==1&&this.mainFolderBrowser.GetSelectedEntries()[0].isFolder()){YG=this.mainFolderBrowser.GetSelectedEntries()[0];}if(YG!=null){if(this.moveOnPaste){var V=this.GetClipboardIDs();this.clipboard=null;this.DisableLinkPaste();this.DisableCopyPaste();YG.DropChildren(V,MOVE_OP,null,top.getLMBNum());}else YG.DropChildren(this.GetClipboardIDs(),SHORTCUT_OP,null,top.getLMBNum());}}};BrowseControls.prototype.OpenFolderPath=function(cY){G=this.mainFolderBrowser.topFolder;for(var ww=0;ww<cY.length;ww++){G=G.ShowSubfolder(cY[ww]);cY[ww]=G;}this.mainFolderBrowser.SetSelectedEntry(cY[cY.length-1]);};BrowseControls.prototype.OpenFolderSub=function(GU){var y=this;var G=y.mainFolderBrowser.GetSelectedEntries()[0];var F=GU.id;var name=GU.name;var S=GU.toctype;var wa=GU.imgsrc;var mK=GU.imgalt;var Bw=GU.imgwidth;var bd=GU.imgheight;var x3=GU.templateID;var dp=GU.columndata;var w2=GU.isRecordSeries;var bS=GU.isRecordFolder;var iP=GU.pLockOwner;var Ku=GU.isPlockOwnedByMe;if(!G.opened){G.OpenClose(false);}var Bu=G.children[F];if(!Bu){Bu=new top.Folder(name,S,F,wa,mK,Bw,bd,x3,dp,w2,bS,iP,Ku);G.setChild(Bu);G.browser.drawEntry(Bu,G.myContentsTable);}return Bu;};BrowseControls.prototype.ExtractText=function(){if(!top.VerifyConnection(this.dbid))return;var Py="ExtractTextPopup.asp?dbid="+this.dbid;var CH=new Array();for(var ww=0;ww<this.GetSelectedEntries().length;ww++){CH.push(this.GetSelectedEntries()[ww]);}for(var ww=0;ww<CH.length;ww++){var Gh=CH[ww];if(Gh.toctype=="e"){Py=Py+"&id="+Gh.id;}else if(Gh.toctype=="es"){Py=Py+"&id="+Gh.targetid;}}if(top.lfShowModalDialog(this.myWin,Py,null,"help:no;scroll:no;status:no"))this.myDocBrowser.RefreshFolderContents();};BrowseControls.prototype.ScannerLoadFailed=function(){this.scannerLoaded=false;};BrowseControls.prototype.ReleaseDOMElements=function(){var y=this;if(this.myToolbar){this.myToolbar.ReleaseDOMElements();this.myToolbar=null;}if(y.newMenu!=null)y.newMenu.ReleaseDOMElements();if(y.importMenu!=null)y.importMenu.ReleaseDOMElements();if(y.exportMenu!=null)y.exportMenu.ReleaseDOMElements();if(y.cicoMenu!=null)y.cicoMenu.ReleaseDOMElements();y.myDoc.body.onclick=null;y.myDoc.onkeydown=null;y.killContextMenu=null;y.myWin.onunload=null;y.helpClickables=null;if(y.BrowseMenu){y.BrowseMenu.ReleaseDOMElements();y.BrowseMenu=null;}y.fileMenuInfo=null;if(y.parentFolderBtn){y.parentFolderBtn.onkeydown=null;y.parentFolderBtn.onclick=null;y.parentFolderBtn=null;}if(y.scanBtn){y.scanBtn.onkeydown=null;y.scanBtn.onclick=null;y.scanBtn=null;}if(y.refreshBtn){y.refreshBtn.onkeydown=null;y.refreshBtn.onclick=null;y.refreshBtn=null;}if(y.searchBtn){y.searchBtn.onkeydown=null;y.searchBtn.onclick=null;y.searchBtn=null;}y.topname=null;y.FolderBrowserHasFocus=null;y.dbid=null;y.dbname=null;y.servername=null;y.myWin=null;y.myDoc=null;y.startid=null;y.fieldsEditable=null;y.entriesMoveable=null;y.entriesDeleteable=null;y.HasRMFeature=null;y.bExportAllowed=null;y.bViewPropsAllowed=null;y.bMigrateAllowed=null;y.bImportAllowed=null;y.renameInput=null;y.exportAudited=null;y.bScanAllowed=null;y.mainFolderBrowser=null;y.mainBrowserFrame=null;};BrowseControls.prototype.LogOut=function(){try{var Xv=top.GetCookie("pagesopen");if((Xv!=null)&&(parseInt(Xv,10)>0)&&!confirm(top.STR_PLEASE_CLOSE_ALL))return;if(this.scannerLoaded){top.CloseScanning();}}catch(tp){}top.location="Login.asp?dbid="+this.dbid;};function ColorMenu(N0,WU,yn,p2,ye,l){var Qc=this;Qc.defaultColor=WU;Qc.defaultValue=yn;Qc.myWin=l;Qc.menuDiv=N0;Qc.menuDiv.style.width="24px";Qc.menuDiv.style.height="22px";Qc.menuDiv.style.position="relative";Qc.menuDiv.style.zIndex="200";Qc.selectedValueInput=N0.ownerDocument.createElement("input");Qc.selectedValueInput.type="hidden";Qc.selectedValueInput.value=yn;Qc.menuDiv.appendChild(Qc.selectedValueInput);var Ek=Qc.menuDiv.appendChild(Qc.menuDiv.ownerDocument.createElement("div"));Ek.style.width="8px";Ek.style.height="20px";Ek.style.display="inline";Qc.selectedColorDiv=Ek.appendChild(N0.ownerDocument.createElement("div"));Qc.selectedColorDiv.tabIndex=0;Qc.selectedColorDiv.style.marginLeft="3px";Qc.selectedColorDiv.style.marginRight="0px";Qc.selectedColorDiv.style.height="14px";Qc.selectedColorDiv.style.width="8px";Qc.selectedColorDiv.style.border="1px solid #5A5F7A";Qc.selectedColorDiv.style.backgroundColor=WU;if(p2){Qc.selectedColorDiv.title=top.STR_SELECTED_COLOR+p2;}else{Qc.selectedColorDiv.title=top.STR_SELECTED_COLOR+WU;}Qc.menuButtonDiv=N0.appendChild(N0.ownerDocument.createElement("div"));Qc.menuButtonDiv.title=ye;Qc.menuButtonDiv.style.width="10px";Qc.menuButtonDiv.style.height="20px";Qc.menuButtonDiv.tabIndex=0;Qc.menuButtonDiv.style.backgroundImage="url(images/pickerArrow.gif)";Qc.menuButtonDiv.onmouseover=function(){Qc.menuButtonDiv.style.backgroundImage="url(images/pickerArrow_over.gif)";};Qc.menuButtonDiv.onmouseout=function(){Qc.menuButtonDiv.style.backgroundImage="url(images/pickerArrow.gif)";};Qc.menuButtonDiv.onfocus=Qc.menuButtonDiv.onmouseover;Qc.menuButtonDiv.onblur=Qc.menuButtonDiv.onmouseout;Qc.menuButtonDiv.style.backgroundPosition="center center";Qc.menuButtonDiv.style.backgroundRepeat="no-repeat";Qc.menuButtonDiv.style.display="inline";Qc.selectMenuDiv=N0.appendChild(N0.ownerDocument.createElement("div"));Qc.selectMenuDiv.style.height="14px";Qc.selectMenuDiv.style.display="none";Qc.selectMenuDiv.style.zIndex="200";Qc.selectMenuDiv.style.position="absolute";Qc.selectMenuDiv.style.top="22px";Qc.selectMenuDiv.style.left="3px";Qc.selectMenuDiv.style.border="1px solid black";Qc.selectMenuDiv.style.backgroundColor="menu";Qc.colorLinks=new Array();Qc.OnSelectedColorChanged=null;Qc.OnMenuOpen=null;}ColorMenu.prototype.SetDefaultColor=function(f6Z,tk,zK){this.defaultColor=f6Z;this.defaultValue=tk;if(zK){this.defaultTitle=zK;}else{this.defaultTitle=f6Z;}};ColorMenu.prototype.SelectColor=function(f6Z,tk,zK){this.selectedColorDiv.style.backgroundColor=f6Z;if(zK){this.selectedColorDiv.title=top.STR_SELECTED_COLOR+zK;}else{var tb=f6Z;for(var nS=0;nS<this.colorLinks.length;nS++){var GUN=this.colorLinks[nS];if(GUN.children[0].style.backgroundColor.toUpperCase()==f6Z.toUpperCase()){tb=GUN.title;break;}}this.selectedColorDiv.title=top.STR_SELECTED_COLOR+tb;}this.selectedValueInput.value=tk;};ColorMenu.prototype.ClearColors=function(){if(this.colorLinks){while(this.colorLinks.length>0){var GUN=this.colorLinks.pop();GUN.onmousedown=null;GUN.onclick=null;GUN.onkeydown=null;GUN=null;}}if(this.selectMenuDiv&&this.selectMenuDiv.style)this.selectMenuDiv.style.width="0px";};ColorMenu.prototype.AddColor=function(f6Z,tk,zK){var Qc=this;var GUN=this.menuDiv.ownerDocument.createElement("a");GUN.style.display="inline";GUN.style.margin="1px";GUN.style.height="14px";GUN.style.border="1px solid black";GUN.tabIndex=0;if(zK){GUN.alt=zK;GUN.title=zK;}else{GUN.alt=f6Z;GUN.title=f6Z;}top.setKeyPressHandler(GUN,Qc.myWin);var xk=this.menuDiv.ownerDocument.createElement("div");xk.style.display="inline";xk.style.height="10px";xk.style.width="20px";xk.style.backgroundColor=f6Z;GUN.appendChild(xk);this.selectMenuDiv.appendChild(GUN);GUN.onclick=function(){Qc.SelectColor(f6Z,tk,this.title);Qc.HideMenu();if(Qc.OnSelectedColorChanged){Qc.OnSelectedColorChanged();}return false;};this.colorLinks.push(GUN);this.selectMenuDiv.style.width=(this.colorLinks.length*24+2)+"px";};ColorMenu.prototype.GetSelectedColor=function(){return this.selectedColorDiv.style.backgroundColor;};ColorMenu.prototype.GetSelectedValue=function(){return this.selectedValueInput.value;};ColorMenu.prototype.GetColorByValue=function(){return this.selectedColorDiv.style.backgroundColor;};ColorMenu.prototype.ShowMenu=function(){var gT=this;this.selectMenuDiv.style.display="block";this.menuButtonDiv.style.backgroundImage="url(images/pickerArrow_selected.gif)";this.menuButtonDiv.onmouseout=function(){this.style.backgroundImage="url(images/pickerArrow_selected.gif)";};this.menuButtonDiv.focus();this.menuButtonDiv.onblur=function(){this.onmouseout();};if(this.OnMenuOpen){this.OnMenuOpen();}};ColorMenu.prototype.HideMenu=function(){if(this.selectMenuDiv)this.selectMenuDiv.style.display="none";if(this.menuButtonDiv){this.menuButtonDiv.style.backgroundImage="url(images/pickerArrow.gif)";this.menuButtonDiv.onmouseout=function(){this.style.backgroundImage="url(images/pickerArrow.gif)";};this.menuButtonDiv.onblur=function(){this.onmouseout();};}};ColorMenu.prototype.ToggleMenu=function(){if(this.selectMenuDiv.style.display=="none"){this.ShowMenu();}else{this.HideMenu();}};ColorMenu.prototype.Disable=function(){this.menuButtonDiv.onclick=null;this.menuButtonDiv.onkeydown=null;};ColorMenu.prototype.Enable=function(){var Qc=this;Qc.menuButtonDiv.onclick=function(){Qc.ToggleMenu();};Qc.menuButtonDiv.onkeydown=function(g){g=Qc.myWin.top.getEvent(g,Qc.myWin.event,false);if(g.keyCode==ENTER_KEY_CODE||g.keyCode==SPACE_BAR_KEY_CODE){Qc.myWin.top.cancelEvent(g);Qc.ToggleMenu();}else if(g.keyCode==DOWN_ARROW_KEY_CODE){Qc.ShowMenu();}else if(g.keyCode==UP_ARROW_KEY_CODE){Qc.HideMenu();}};};ColorMenu.prototype.ReleaseDOMElements=function(){this.selectedValueInput=null;this.selectedColorDiv=null;if(this.menuButtonDiv){this.menuButtonDiv.onmouseover=null;this.menuButtonDiv.onmouseout=null;this.menuButtonDiv.onfocus=null;this.menuButtonDiv.onblur=null;this.menuButtonDiv=null;}this.selectMenuDiv=null;this.menuDiv=null;this.ClearColors();this.myWin=null;};function Compartment(F,name,Ea,Hm,fP,U,S,T){var p9=this;var fb;if(Hm){fb=top[Hm];fP=fb.compTable;U=fb.docid;T=fb.dbid;S="d";}p9.id=F;p9.active=Ea;var OF=fP.childNodes[0].appendChild(fP.ownerDocument.createElement("tr"));var yR=OF.appendChild(OF.ownerDocument.createElement("td"));var ze=OF.appendChild(OF.ownerDocument.createElement("td"));p9.chkBox=yR.ownerDocument.createElement("input");p9.chkBox.type="checkbox";p9.chkBox.checked=Ea;yR.appendChild(p9.chkBox);ze.appendChild(ze.ownerDocument.createTextNode(name));p9.chkBox.onclick=function(){var Wn=top.jsDiv.ownerDocument.createElement("iframe");Wn.style.width="0px";Wn.style.height="0px";var k7="callbackfunc"+top.callbackNum++;top[k7]=function(){top.jsDiv.removeChild(Wn);};top.jsDiv.appendChild(Wn);var ju="DocAddCompartment.asp?docid="+U+"&compartmentid="+p9.id+"&toctype="+S+"&callback="+k7+"&dbid="+T;if(p9.chkBox.checked)ju+="&active=yes";Wn.src=ju;};}POPUP_ROW_HEIGHT=18;CONTEXT_WIDTH=225;function ContextMenu(parent,j3,_P,l,Vi){this.parent=parent;this.myWin=l;this.menudiv=parent.ownerDocument.createElement("div");this.menudiv.oncontextmenu=function(){return false;};this.menudiv.className="ToolbarColor ContextMenuOuter";this.menudiv.style.left=j3;this.menudiv.style.top=_P;this.myTable=this.menudiv.ownerDocument.createElement("table");this.myTable.cellPadding=0;this.myTable.cellSpacing=0;this.menudiv.appendChild(this.myTable);this.myTBody=this.menudiv.ownerDocument.createElement("tbody");this.myTable.appendChild(this.myTBody);this.parent.appendChild(this.menudiv);this.topCorner=Vi;this.killSubMenu=function(){};this.optionCells=new Array();this.numItems=0;this.numSeparators=0;}ContextMenu.prototype.die=function(){if(this.menuShim){this.menuShim.style.display="none";}this.parent.removeChild(this.menudiv);this.killSubMenu();};ContextMenu.prototype.KeySelect=function(HT,jR){if(!HT)HT=0;var ww=HT;while((ww<this.optionCells.length)&&(ww>=0)&&(this.optionCells[ww].tabIndex<0)){if(jR)ww--;else ww++;}if((ww<this.optionCells.length)&&(ww>=0)){this.optionCells[ww].focus();}};ContextMenu.prototype.AddItem=function(bW,x9,T6,X6,OG,Cv,EaY){var EJ=this;var IE=EJ.myTBody.ownerDocument.createElement("tr");IE.style.cursor="default";var BK=EJ.myTBody.ownerDocument.createElement("td");IE.appendChild(BK);var wC=EJ.myTBody.ownerDocument.createElement("img");wC.src="images/submenuarrow.gif";wC.width="11";wC.height="9";if(OG&&OG())BK.appendChild(wC);var J;if(bW){J=EJ.myTBody.ownerDocument.createTextNode(bW);if(EaY){BK.style.fontWeight="bold";}EJ.numItems++;}else{J=EJ.myTBody.ownerDocument.createTextNode(" ");BK.style.borderBottom="thin solid";EJ.numSeparators++;}BK.appendChild(J);if(T6){if(X6){BK.appendChild(wC);BK.onmouseover=function(){x9();BK.className="LabelFont SelPopupRow";EJ.killSubMenu=function(){BK.className="LabelFont PopupRow";EJ.mySubMenu.die();EJ.mySubMenu=null;EJ.killSubMenu=function(){};};};BK.onclick=function(g){g=top.getEvent(g,EJ.myWin.event,true);return false;};}else{BK.onclick=x9;BK.onmouseover=function(){BK.className="LabelFont SelPopupRow";EJ.killSubMenu();};BK.onmouseout=function(){BK.className="LabelFont PopupRow";};}BK.tabIndex=0;BK.onfocus=function(){EJ.killSubMenu();BK.className="LabelFont SelPopupRow";};BK.onblur=function(){BK.className="LabelFont PopupRow";};BK.className="LabelFont PopupRow";EJ.optionCells.push(BK);var on=EJ.optionCells.length-1;BK.onkeydown=function(g){g=top.getEvent(g,EJ.myWin.event,false);if(g.keyCode==ENTER_KEY_CODE){top.cancelEvent(g);BK.click();}else if(g.keyCode==UP_ARROW_KEY_CODE){if(on>0){EJ.KeySelect(on-1,true);}}else if(g.keyCode==DOWN_ARROW_KEY_CODE){if(on<(EJ.optionCells.length-1)){EJ.KeySelect(on+1,false);}}else if(g.keyCode==LEFT_ARROW_KEY_CODE){if(EJ.parentMenu){EJ.parentMenu.killSubMenu();if(EJ.parentMenu.ExpandedCellIndex>=0){EJ.parentMenu.KeySelect(EJ.parentMenu.ExpandedCellIndex,false);EJ.parentMenu.ExpandedCellIndex=-1;}}else{EJ.killSubMenu();}}else if(X6&&g.keyCode==RIGHT_ARROW_KEY_CODE){EJ.ExpandedCellIndex=on;BK.onblur=null;x9();EJ.killSubMenu=function(){BK.className="LabelFont SelPopupRow";EJ.mySubMenu.die();EJ.mySubMenu=null;EJ.killSubMenu=function(){};BK.onblur=function(){BK.className="LabelFont PopupRow";};};}else if(g.keyCode==TAB_KEY_CODE||g.keyCode==ESCAPE_KEY_CODE){EJ.myTBody.ownerDocument.body.onclick();}};}else BK.className="LabelFont GhostRow";EJ.myTBody.appendChild(IE);if(!this.topCorner)this.menudiv.style.top=parseInt(this.menudiv.style.top)-POPUP_ROW_HEIGHT;else{this.AdjustDivPosition(this.menudiv,this.myWin);}};ContextMenu.prototype.AdjustDivPosition=function(h,GD){var Cj=h.getBoundingClientRect().bottom-top.getClientHeight(GD);if(Cj>0)h.style.top=Math.max(parseInt(h.style.top)-Cj,0);var v=h.getBoundingClientRect().right-top.getClientWidth(GD);if(v>0)h.style.left=Math.max(parseInt(h.style.left)-v,0);};ContextMenu.prototype.AddMenuShim=function(lj){this.menuShim=lj;this.menudiv.style.zIndex="200";this.menuShim.style.top=parseInt(this.menudiv.style.top)-5+" px";this.menuShim.style.left=parseInt(this.menudiv.style.left)-5+" px";this.menuShim.style.zIndex=this.menudiv.style.zIndex-1;this.menuShim.style.width=this.menudiv.offsetWidth;this.menuShim.style.height=this.menudiv.offsetHeight;this.menuShim.style.display="block";};ContextMenu.prototype.AddSubMenu=function(bW,Cs,T6,X6,OG,Cv){var EJ=this;Cs.yOff=EJ.GetNumItems()*17+EJ.GetNumSeparators()*4.5-1;Cs.parentMenu=EJ;var x9=function(){var wL=parseInt(EJ.menudiv.style.top);var z6=parseInt(EJ.menudiv.style.left);EJ.killSubMenu();EJ.mySubMenu=Cs.Display(EJ.parent,z6,wL,EJ.myWin,EJ.topCorner,Cv);};EJ.AddItem(bW,x9,T6,true,null,Cv);};ContextMenu.prototype.AddSeparator=function(){this.AddItem(null,null,false,false,null,null,true);};ContextMenu.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){ContextMenu.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="DIV"){v5.oncontextmenu=null;}else if(v5.tagName=="TD"){}v5.parentNode.removeChild(v5);};ContextMenu.prototype.GetNumItems=function(){return this.numItems;};ContextMenu.prototype.GetNumSeparators=function(){return this.numSeparators;};ContextMenu.prototype.ReleaseDOMElements=function(){this.myWin=null;this.killSubMenu=null;while(this.optionCells&&this.optionCells.length){var YA=this.optionCells.pop();YA.onfocus=null;YA.onblur=null;YA.onmouseover=null;YA.onmouseout=null;YA.onclick=null;}this.optionCells=null;this.topCorner=null;if(this.menudiv){this.menudiv.oncontextmenu=null;this.menudiv=null;}this.RemoveChildren(this.myTable);this.myTable=null;this.parent=null;this.myTBody=null;this.menuShim=null;};function SubMenu(j3){this.xOff=j3;this.labels=new Array();this.handlers=new Array();this.clickables=new Array();this.selecteds=new Array();this.numItems=0;this.numSeparators=0;this.isSubMenu=true;this.parentMenu=null;}SubMenu.prototype.AddItem=function(bW,x9,T6,OG){this.labels.push(bW);this.handlers.push(x9);this.clickables.push(T6);this.selecteds.push(OG);if(bW){this.numItems++;}else{this.numSeparators++;}};SubMenu.prototype.Display=function(parent,z6,wL,l,Vi,Cv){var rq=new ContextMenu(parent,this.xOff+z6,this.yOff+wL,l,Vi);rq.parentMenu=this.parentMenu;rq.ExpandedCellIndex=-1;for(var ww=0;ww<this.labels.length;ww++){rq.AddItem(this.labels[ww],this.handlers[ww],this.clickables[ww],false,this.selecteds[ww],Cv);}if(rq.optionCells[0]){rq.optionCells[0].focus();}return rq;};SubMenu.prototype.GetNumItems=function(){return this.numItems;};SubMenu.prototype.GetNumSeparators=function(){return this.numSeparators;};SubMenu.prototype.ReleaseDOMElements=function(){var EJ=this;while(EJ.labels&&EJ.labels.length)EJ.labels.pop();while(EJ.handlers&&EJ.handlers.length)EJ.handlers.pop();while(EJ.clickables&&EJ.clickables.length)EJ.clickables.pop();while(EJ.selecteds&&EJ.selecteds.length)EJ.selecteds.pop();EJ.parentMenu=null;};function Rr(h,l,Wj){var J0=h.ownerDocument.createElement("table");this.tBody=h.ownerDocument.createElement("tbody");h.appendChild(J0).appendChild(this.tBody);this.myWin=l;this.bSmartInputs=Wj;}Rr.prototype.HideFields=FieldsDisplay.prototype.HideFields;Rr.prototype.GetQuikPikFunc=FieldsDisplay.prototype.GetQuikPikFunc;Rr.prototype.GetQueryString=FieldsDisplay.prototype.GetQueryString;Rr.prototype.DisplayFields=function(nW,x3,fb,U,IN,S,G5,T){var _t=this;_t.HideFields();_t.fields=nW;_t.templateID=x3;_t.controls=fb;_t.docid=U;_t.toctype=S;_t.editable=G5;_t.dbid=T;var k7="callbackfunc"+top.callbackNum++;var Wn=Jk();top[k7]=function(ifE){top.jsDiv.ownerDocument.removeChild(Wn);if(ifE){_t.CustomizeTemplate(_t);}else{_t.DisplayFields=FieldsDisplay.prototype.DisplayFields;_t.DisplayFields(_t.fields,_t.templateID,_t.controls,_t.docid,_t.docname,_t.toctype,_t.editable,_t.dbid);}};top.jsDiv.ownerDocument.appendChild(Wn);Wn.src="GetCustomTemplateInfo.asp?queryId=0&callback="+k7+"&id="+this.templateID;};Rr.prototype.CustomizeTemplate=function(_t){var Np="callbackfunc"+top.callbackNum++;var x3m=Jk();top[Np]=function(FD){top.jsDiv.ownerDocument.removeChild(x3m);if(FD.bUseCustomPage){_t.ShowCustomPage(_t,false);return;}if(FD.bUseDefaultPage){_t.ShowCustomPage(_t,true);return;}if(FD.bHideFields&&FD.arHiddenFields){for(var ww=0;ww<FD.arHiddenFields.length;ww++){Y1(_t.fields,FD.arHiddenFields[ww]);}}if(FD.bCustomValidate&&FD.arCustomValidateFields){for(var ww=0;ww<FD.arCustomValidateFields.length;ww++){var G2=FD.arCustomValidateFields[ww];G2=TE(G2);G2=G2.slice(1,G2.length-1);var Xw=G2.split(",");Hb(_t.fields,Xw[0],Xw[1]);}}if(FD.bOrderFields&&FD.arFieldOrder){sBT(_t.fields,FD.arFieldOrder);}if(FD.bCustomTabOrder&&FD.arTabOrder){for(var ww=0;ww<FD.arTabOrder.length;ww++){ZL(_t.fields,FD.arTabOrder[ww],ww+2);}}if(FD.bShowUrl&&FD.arUrlFields){for(var ww=0;ww<FD.arUrlFields.length;ww++){iI(_t.fields,FD.arUrlFields[ww]);}}_t.DisplayCustomFields(_t,FD);};top.jsDiv.ownerDocument.appendChild(x3m);x3m.src="GetCustomTemplateInfo.asp?queryId=1&callback="+Np+"&id="+_t.templateID;};Rr.prototype.DisplayCustomFields=function(_t,FD){if(FD.strTopNote){var sg=_t.tBody.ownerDocument.createElement("tr");var _1=_t.tBody.ownerDocument.createElement("td");var c1=_t.tBody.ownerDocument.createTextNode(FD.strTopNote);_1.className="LabelFont A";_1.appendChild(c1);sg.appendChild(_1);_t.tBody.appendChild(sg);}var nW=_t.fields;for(var ww=0;ww<nW.length;ww++){nW[ww].SetControls(_t.controls);nW[ww].SetDocID(_t.docid);nW[ww].SetTocType(_t.toctype);var gb=_t.tBody.ownerDocument.createElement("tr");var ze=_t.tBody.ownerDocument.createElement("td");var VD=_t.tBody.ownerDocument.createTextNode(nW[ww].name);ze.appendChild(VD);gb.appendChild(ze);_t.tBody.appendChild(gb);ze.className="FieldNameStyle LabelBackground";var ah=_t.tBody.ownerDocument.createElement("tr");var mf=_t.tBody.ownerDocument.createElement("td");var QG;if(nW[ww].bShowAsUrl&&nW[ww].val){var kM=nW[ww].val;var _o=new RegExp("/@/");var Cb=new RegExp("/^http:(\/)\1/");QG=_t.tBody.ownerDocument.createElement("a");QG.target="_blank";QG.innerText=kM;if(_o.test(kM))kM="mailto:"+kM;else if(!Cb.test(kM))kM="http://"+kM;QG.href=kM;}else{if(nW[ww].list&&nW[ww].list.length){var P4=_t.tBody.ownerDocument.createElement("a");P4.tabIndex=0;P4.onclick=_t.GetQuikPikFunc(ww,_t.dbid);top.setKeyPressHandler(P4,_t.myWin);var Tz=_t.tBody.ownerDocument.createElement("img");Tz.style.height=14;Tz.style.width=19;Tz.style.marginLeft="190px";Tz.src="images/editquickpicklistbtn.gif";Tz.alt=STR_QUICK_PICK_LIST;Tz.onmouseover=function(){Tz.src="images/editquickpicklistbtn_over.gif";};Tz.onmouseout=function(){Tz.src="images/editquickpicklistbtn.gif";};ze.appendChild(P4).appendChild(Tz);QG=_t.tBody.ownerDocument.createElement("select");}else{QG=_t.tBody.ownerDocument.createElement("input");QG.type="text";QG.maxlength=nW[ww].fieldlen;}if(nW[ww].tabIndex>=0){QG.tabIndex=nW[ww].tabIndex;}if(nW[ww].validator){QG.validate=nW[ww].validator;}else if(nW[ww].type==INTEGER_TYPE){QG.validate=vQ;}else if(nW[ww].type==LONG_INTEGER_TYPE){QG.validate=eZ;}else{QG.validate=function(){return true;};}if(!G5)QG.disabled=true;}mf.appendChild(QG);ah.appendChild(mf);_t.tBody.appendChild(ah);if(nW[ww].list&&nW[ww].list.length)nW[ww].ShowDropDownList(QG,nW[ww].quickPicks);nW[ww].SetTextInput(QG,_t.bSmartInputs);ah.className="CaptionStyle";mf.className="FieldValueFormat";}if(FD.strBottomNote){var xO=_t.tBody.ownerDocument.createElement("tr");var Jy=_t.tBody.ownerDocument.createElement("td");var lR=_t.tBody.ownerDocument.createTextNode(FD.strBottomNote);Jy.className="LabelFont A";Jy.appendChild(lR);xO.appendChild(Jy);_t.tBody.appendChild(xO);}};Rr.prototype.ShowCustomPage=function(_t,GK){var x3=_t.templateID;var pa=_t.tBody.ownerDocument.createElement("iframe");var OH="customTemplate_";if(GK)OH+="default.asp";else OH+=x3+".asp";pa.frameBorder=1;pa.style.width="100%";pa.style.height="100%";var Ck=_t.fields.length;OH+="?nfields="+Ck;for(var ww=0;ww<Ck;ww++){OH+="&field"+ww+"="+_t.fields[ww].name;OH+="&val"+ww+"="+_t.fields[ww].val;}_t.tBody.ownerDocument.appendChild(pa);pa.src=OH;};function QC(x3){this.templateID=x3;this.bUseCustomPage=false;this.bHideFields=false;this.bCustomValidate=false;}function Jk(){var frame=top.jsDiv.ownerDocument.createElement("iframe");frame.style.width=0;frame.style.height=0;frame.tabIndex=-1;return frame;}function Y1(nW,O6){for(var ww=0;ww<nW.length;ww++){if(nW[ww].name.toLowerCase()==TE(O6.toLowerCase())){nW.splice(ww,1);return;}}}function Hb(nW,sR,h8){for(var ww=0;ww<nW.length;ww++){if(nW[ww].name.toLowerCase()==TE(sR.toLowerCase())){nW[ww].validator=function(){var sG=this.value.match(eval(h8))||(this.value=="");if(sG)return true;else return false;};return;}}}function sBT(nW,DN){for(var VK=0;VK<DN.length;VK++){var bSu=DN[VK];for(var ww=VK;ww<nW.length;ww++){if(nW[ww].name.toLowerCase()==TE(bSu.toLowerCase())){if(ww==VK){break;}var Av=nW[VK];nW[VK]=nW[ww];nW[ww]=Av;break;}}}}function ZL(nW,sR,CB){for(var ww=0;ww<nW.length;ww++){if(nW[ww].name.toLowerCase()==TE(sR.toLowerCase())){nW[ww].tabIndex=CB;return;}}}function iI(nW,sR){for(var ww=0;ww<nW.length;ww++){if(nW[ww].name.toLowerCase()==TE(sR.toLowerCase())){nW[ww].bShowAsUrl=true;return;}}}function TE(Ab){return Ab.replace(new RegExp("/^\s*(.*\S+)?\s*$/"),"$1");}function eJ(nW){var Ab="";for(var ww=0;ww<nW.length;ww++){Ab+="["+nW[ww].name+","+nW[ww].val+"] ";}alert(Ab);}function DocLink(gY,A2,Jx,Ba,jY,YAf,Xz,Sf,Xg,k0,Hm){var EO=this;EO.controls=top[Hm];EO.linkID=gY;EO.linkTypeID=A2;EO.otherDocID=Jx;EO.relationCodeForThisDoc=Xg;EO.bothRecords=k0=="True";var WX=EO.controls.docLinkTBody.ownerDocument;EO.myRow=EO.controls.docLinkTBody.appendChild(WX.createElement("tr"));EO.myRow.onclick=function(){EO.Select();};EO.myDescCell=EO.myRow.appendChild(WX.createElement("td"));EO.myDescCell.style.borderRight="1px solid #cccccc";EO.myDescCell.style.paddingLeft="16px";EO.myDescCell.style.paddingRight="4px";EO.myDescCell.style.paddingTop="8px";EO.myDescCell.style.paddingBottom="8px";EO.myDescCell.className="VersionTableCell";EO.otherNameCell=EO.myRow.appendChild(WX.createElement("td"));var Ttq=WX.createElement("img");EO.otherNameCell.appendChild(Ttq);Ttq.src=jY;Ttq.width=Xz;Ttq.height=Sf;Ttq.alt=YAf;if(EO.controls.imageWin){EO.myRow.ondblclick=function(){if(EO.otherDocID)top.OpenDocView(EO.controls.imageWin,EO.otherDocID,"docview.asp?id="+EO.otherDocID+"&dbid="+EO.controls.dbid,"height=570,resizable=yes,scrollbars=no,status=yes,toolbar=no,width=860");};}EO.otherNameCell.appendChild(WX.createTextNode(Ba));EO.otherDescCell=EO.myRow.appendChild(WX.createElement("td"));EO.otherDocDescriptor=EO.otherDescCell.appendChild(WX.createElement("select"));EO.PopulateDropDown(EO.otherDocDescriptor);EO.otherDocDescriptor.onchange=function(){if(EO.otherDocDescriptor.value.length==0){EO.myDescCell.innerText="";return;}iy=EO.otherDocDescriptor.value.charAt(0);Ti=EO.otherDocDescriptor.value.substr(1);for(var ww=0;ww<EO.controls.linkTypes.length;ww++){if(EO.controls.linkTypes[ww].ID==Ti){switch(iy){case"S":EO.myDescCell.innerText=EO.controls.linkTypes[ww].targetName;break;case"T":case"E":EO.myDescCell.innerText=EO.controls.linkTypes[ww].sourceName;break;default:EO.myDescCell.innerText="";}}}if(Ti.length>0&&(Ti!=EO.linkTypeID||EO.SwitchRelationCode(iy)!=EO.relationCodeForThisDoc)){EO.linkTypeID=Ti;EO.relationCodeForThisDoc=EO.SwitchRelationCode(iy);EO.Update();}};EO.otherDocDescriptor.value=EO.SwitchRelationCode(EO.relationCodeForThisDoc)+EO.linkTypeID;EO.otherDocDescriptor.fireEvent("onchange");EO.otherDocDescriptor.disabled=!EO.controls.linksEditable;EO.ShowDeselected();};DocLink.prototype.SwitchRelationCode=function(p_){switch(p_){case"S":return"T";break;case"T":return"S";break;case"E":return"E";break;}};DocLink.prototype.PopulateDropDown=function(NP){for(var ww=0;ww<this.controls.linkTypes.length;ww++){var RU=this.controls.linkTypes[ww];var __=NP.ownerDocument.createElement("option");__.text=RU.sourceName;if(RU.sourceName!=RU.targetName){__.value="S"+RU.ID;NP.add(__);var WUb=NP.ownerDocument.createElement("option");WUb.text=RU.targetName;WUb.value="T"+RU.ID;NP.add(WUb);}else{__.value="E"+RU.ID;NP.add(__);}}};DocLink.prototype.Update=function(){var EO=this;if(EO.otherDocID&&EO.linkTypeID){if(!EO.linkID)EO.linkID="_"+(++EO.controls.nextAnnotID);var ju="EditDocLink.asp?docid="+EO.controls.docid+"&linkid="+EO.linkID+"&linktypeid="+EO.linkTypeID+"&otherdocid="+EO.otherDocID+"&dbid="+EO.controls.dbid;if(EO.relationCodeForThisDoc=="S")ju+="&issource=yes";if(top.GetXMLDocument(ju))EO.controls.SetDirty();}};DocLink.prototype.Select=function(){var EO=this;EO.controls.DeselectItem();EO.ShowSelected();EO.controls.DeselectItem=function(){EO.ShowDeselected();};if(EO.controls.linksEditable){top.setKeyPressDelete=function(g){if(g.keyCode==DELETE_KEY_CODE){Yg=(EO.linkID==1)&&EO.bothRecords;if(EO.controls.linksEditable&&(!EO.controls.HasRecordManagementPrivileges&&Yg)){alert(top.STR_CANNOT_DELETELINK);return false;}else if((EO.controls.linksEditable||(EO.controls.HasRecordManagementPrivileges&&Yg))&&confirm(top.STR_CONFIRM_DELETE_DOCLINK)){EO.Remove();EO.ShowDeselected();return true;}}return false;};EO.controls.deleteLinkBtn.onclick=function(){if(EO.linkID){Yg=(EO.linkID==1)&&EO.bothRecords;if(EO.controls.linksEditable&&(!EO.controls.HasRecordManagementPrivileges&&Yg)){alert(top.STR_CANNOT_DELETELINK);return false;}else if((EO.controls.linksEditable||(EO.controls.HasRecordManagementPrivileges&&Yg))&&confirm(top.STR_CONFIRM_DELETE_DOCLINK)){EO.Remove();EO.ShowDeselected();EO.controls.deleteLinkBtn.disabled=true;EO.controls.deleteLinkImage.src="images/remove_disabled.gif";return true;}}else return false;};EO.controls.deleteLinkBtn.disabled=false;EO.controls.deleteLinkImage.src="images/remove.gif";}};DocLink.prototype.ShowSelected=function(){this.myDescCell.className="VersionTableCell UserRowHighlight";this.otherNameCell.className="VersionTableCell UserRowHighlight";this.otherDescCell.className="VersionTableCell UserRowHighlight";};DocLink.prototype.ShowDeselected=function(){this.myDescCell.className="VersionTableCell";this.otherNameCell.className="VersionTableCell";this.otherDescCell.className="VersionTableCell";};DocLink.prototype.Remove=function(){var EO=this;if(top.GetXMLDocument("RemoveDocLink.asp?docid="+this.controls.docid+"&linkid="+this.linkID+"&dbid="+this.controls.dbid)){EO.myRow.parentNode.removeChild(EO.myRow);EO.controls.SetDirty();EO.controls.DeselectItem=function(){};}};var BR_NODE_NAME="BR";var TEXT_NODE_NAME="#text";var HIGHLIGHT_STRING="<b>";var END_HIGHLIGHT_STRING="</b>";var HIGHLIGHT_MARKER="\001";var END_HIGHLIGHT_MARKER="\002";var SEARCH_HIGHLIGHT_CLASS="SearchHighlight";function Doctext(Hm){this.controls=top[Hm];this.myTextString="";}Doctext.prototype.ShowText=function(iV,qw,L2,V6){var f_=this;if(!qw){qw=f_.controls.textDiv;qw.scrollTop=0;}if(!qw)return;if(qw.innerHTML!=""){qw.innerHTML="";}if(iV)f_.myTextString=iV;else iV=f_.myTextString;if(V6)f_.myWordBounds=V6;f_.subNode=qw.ownerDocument.createElement(SPAN_NODE_NAME);var O0=0;f_.subNode.id=O0+"word";f_.subNode.className=" "+NORMAL_TEXT_CLASS;f_.subNode.ownerAnnots=new Array();qw.appendChild(f_.subNode);var Tj=qw.ownerDocument.createTextNode(iV);f_.subNode.appendChild(Tj);Tj.data=ET(Tj.data);var Kg=new Array();var HG=new Array();var Cz=Tj.data.indexOf(HIGHLIGHT_MARKER);var xQ=Tj.data.indexOf(END_HIGHLIGHT_MARKER);while((Cz!=-1)&&(xQ!=-1)){Kg.push(Cz);HG.push(xQ-HIGHLIGHT_MARKER.length-1);var vM=Tj.data.slice(0,Cz);vM+=Tj.data.slice(Cz+HIGHLIGHT_MARKER.length,xQ);vM+=Tj.data.slice(xQ+END_HIGHLIGHT_MARKER.length);Tj.data=vM;var Cz=Tj.data.indexOf(HIGHLIGHT_MARKER);var xQ=Tj.data.indexOf(END_HIGHLIGHT_MARKER);}f_.textCursor=0;var kMY=Tj.data.indexOf(BREAK_STRING);if(L2){for(var ww=1;ww<this.myWordBounds.length;ww++){var t9=this.myWordBounds[ww]-f_.textCursor;while((kMY>-1)&&(kMY<t9)){Tj=f_.addBreak(Tj,kMY,top.MakeWordID(O0+"word","",""));kMY=Tj.data.indexOf(BREAK_STRING);t9=this.myWordBounds[ww]-f_.textCursor;}Tj=f_.addBreak(Tj,t9,top.MakeWordID(++O0+"word","",""));kMY=Tj.data.indexOf(BREAK_STRING);}}else{while(kMY!=-1){Tj=f_.addBreak(Tj,kMY,top.MakeWordID(O0+"word","",""));kMY=Tj.data.indexOf(BREAK_STRING);}}if(Kg.length>0){var jB=new top.SearchHighlight(Kg[0],HG[0],this.controls,0,0);for(var ww=1;ww<Kg.length;ww++){jB=new top.SearchHighlight(Kg[ww],HG[ww],this.controls,jB.startNodeIndex,jB.startChar);}}};function ET(nx){var vt=nx;NQ=new RegExp(HIGHLIGHT_STRING,"g");ry=new RegExp(END_HIGHLIGHT_STRING,"g");Ot=new RegExp("&lt;","g");Z3=new RegExp("&gt;","g");yi=new RegExp("&amp;","g");vt=vt.replace(NQ,HIGHLIGHT_MARKER);vt=vt.replace(ry,END_HIGHLIGHT_MARKER);vt=vt.replace(Ot,"<");vt=vt.replace(Z3,">");vt=vt.replace(yi,"&");return vt;}Doctext.prototype.addBreak=function(Tj,CB,cA){var nY=Tj.splitText(CB);var Nl=CB;while(nY.data.indexOf(BREAK_STRING)==0){Tj.parentNode.parentNode.appendChild(Tj.ownerDocument.createElement(BR_NODE_NAME));nY.data=nY.data.substr(BREAK_STRING.length);Nl+=BREAK_STRING.length}var HK=Tj.ownerDocument.createElement(SPAN_NODE_NAME);HK.className=" "+NORMAL_TEXT_CLASS;HK.id=cA;HK.appendChild(nY);Tj.parentNode.parentNode.appendChild(HK);this.textCursor+=Nl;return nY;};function s8(aT){if(aT.navigator.appName=='Netscape'){return new String(aT.getSelection());}else{var mfo=aT.document.selection.createRange();mfo.moveEnd("character",1);return new String(mfo.text);}}Doctext.prototype.AddHighlight=function(x8,GKv){var f_=this;var nS;var HP=-1;var ck=-1;var vI=0;if(this.controls.textWin.document.selection.createRange().text.length>0){for(nS=0;nS<this.controls.textDiv.childNodes.length;nS++){if(ck>-1)break;if(this.controls.textDiv.childNodes.item(nS).nodeName==SPAN_NODE_NAME){var ww=0;var sr="\001";var u1=this.controls.textDiv.childNodes.item(nS).childNodes.item(0);for(ww=0;ww<=u1.data.length;ww++){u1.insertData(ww,sr);var n3=s8(this.controls.textWin);if(n3.charAt(0)==sr){HP=ww+vI;}if(n3.charAt(n3.length-1)==sr){ck=ww+vI-1;if(n3.charAt(n3.length-2)=="\n")ck-=2;}u1.deleteData(ww,1);}vI+=u1.data.length;}else vI+=BREAK_STRING.length;}}if(HP>-1&&ck>-1){var f6Z=null;var Dy;if(x8){Dy=ANN_HIGHLIGHTTEXT;f6Z=f_.controls.highlightColorMenu.GetSelectedValue();}else{Dy=ANN_BLACKOUTTEXT;f6Z=f_.controls.redactionColorMenu.GetSelectedValue();}var xv="_"+(++f_.controls.nextAnnotID);var _X="CreateTextAnnot.asp?docid="+f_.controls.docid+"&page="+f_.controls.pagenum+"&annotID="+xv+"&start="+HP+"&end="+ck+"&type="+Dy+"&color="+f6Z+"&dbid="+f_.controls.dbid;if(GKv)_X+="&onimage=yes";if(top.GetXMLDocument(_X)){var jB=new top.TextHighlight(HP,ck,Dy,xv,f_.controls,f6Z);jB.ShowHighlight();f_.controls.CurrentTextHighlights.push(jB);if(GKv){f_.controls.textWin.document.selection.empty();f_.controls.ClearHighlights();f_.controls.ShowAnnotations(true,false);}f_.controls.SetDirty();}}};Doctext.prototype.SetValidAnnots=function(Bj){this.validHighlightIDs="x";this.validBlackoutIDs="x";for(var ww=0;ww<Bj.length;ww++){if(Bj[ww].type==ANN_HIGHLIGHTTEXT)this.validHighlightIDs+=Bj[ww].id+"x";else if(Bj[ww].type==ANN_BLACKOUTTEXT)this.validBlackoutIDs+=Bj[ww].id+"x";}};Doctext.prototype.GetValidAnnotIDs=function(x8){if(x8){if(this.validHighlightIDs.length>1)return this.validHighlightIDs.slice(1,-1).split("x");else return new Array();}else{if(this.validBlackoutIDs.length>1)return this.validBlackoutIDs.slice(1,-1).split("x");else return new Array();}};Doctext.prototype.IsValidAnnotID=function(xv,x8){var XM;if(x8)XM=this.validHighlightIDs;else XM=this.validBlackoutIDs;if(XM.indexOf("x"+xv+"x")>=0)return true;else return false;};Doctext.prototype.InvalidateAnnotID=function(xv,x8){var XM;if(x8)XM=this.validHighlightIDs;else XM=this.validBlackoutIDs;var wi=XM.indexOf("x"+xv+"x");var fy=XM.substring(0,wi+1)+XM.substr(wi+1+xv.length+1);if(x8)this.validHighlightIDs=fy;else this.validBlackoutIDs=fy;};Doctext.prototype.ReadEditedText=function(Im){Im.contentEditable=false;var gn=new Array();this.allTextAnnots=new Array();this.SetValidAnnots(this.controls.CurrentTextHighlights);var jp=new Object();var Ae=new Array();jp.textPos=0;jp.HLBegin=-1;jp.RDBegin=-1;jp.color=null;jp.HighlightID="";jp.RedactionID="";jp.NewlinesToAdd=0;for(var ww=0;ww<Im.childNodes.length;ww++){this.WalkEditedNode(jp,Im.childNodes[ww],this.allTextAnnots,false,false,0,Ae,(ww==Im.childNodes.length-1));}gn[0]=this.allTextAnnots;gn[1]=Ae;gn[2]=this.GetValidAnnotIDs(true);gn[3]=this.GetValidAnnotIDs(false);return gn;};Doctext.prototype.WalkEditedNode=function(jp,kMYK,a4,LU,Yl,lL,Ae,Ov){var Yn=false;var Ia=false;if(kMYK.nodeName==BR_NODE_NAME){jp.textPos+=BREAK_STRING.length;jp.NewlinesToAdd++;}else if(kMYK.nodeName==SPAN_NODE_NAME){if(kMYK.className.indexOf(HIGHLIGHTED_TEXT_CLASS)==-1){if(jp.HLBegin!=-1){Yn=true;}LU=false;}else{var P6=kMYK.style.backgroundColor.slice(1);if(jp.HLBegin==-1){jp.HLBegin=jp.textPos;jp.color=P6;}else if(jp.color!=P6){var xv;if(jp.HighlightID.length>0)xv=jp.HighlightID;else xv="_"+(++this.controls.nextAnnotID);var yf=new top.TextHighlight(jp.HLBegin,jp.textPos-1,ANN_HIGHLIGHTTEXT,xv,this.controls,jp.color);a4.push(yf);jp.HighlightID="";jp.HLBegin=jp.textPos;jp.color=P6;}if(jp.HighlightID.length==0&&this.IsValidAnnotID(top.GetHighlightIDFromWordID(kMYK.id),true)){this.InvalidateAnnotID(top.GetHighlightIDFromWordID(kMYK.id),true);jp.HighlightID=top.GetHighlightIDFromWordID(kMYK.id);}LU=true;}if(kMYK.className.indexOf(REDACTED_TEXT_CLASS)==-1){if(jp.RDBegin!=-1){Ia=true;}Yl=false;}else{var P6=kMYK.style.backgroundColor.slice(1);if(jp.RDBegin==-1){jp.RDBegin=jp.textPos;jp.color=P6;}else if(jp.color!=P6){var sj="000000";if(jp.color==WHITE_REDACTION_BACKCOLOR)sj="FFFFFF";var xv;if(jp.RedactionID.length>0)xv=jp.RedactionID;else xv="_"+(++this.controls.nextAnnotID);var yf=new top.TextHighlight(jp.RDBegin,jp.textPos-1,ANN_BLACKOUTTEXT,xv,this.controls,sj);a4.push(yf);jp.RedactionID="";jp.RDBegin=jp.textPos;jp.color=P6;}if(jp.RedactionID.length==0&&this.IsValidAnnotID(top.GetBlackoutIDFromWordID(kMYK.id),false)){this.InvalidateAnnotID(top.GetBlackoutIDFromWordID(kMYK.id),false);jp.RedactionID=top.GetBlackoutIDFromWordID(kMYK.id);}Yl=true;}if(top.GetWordIndexFromWordID(kMYK.id).length>0)lL=top.GetWordIndexFromWordID(kMYK.id);}if(kMYK.nodeName==TEXT_NODE_NAME){if(!LU&&(jp.HLBegin!=-1))Yn=true;if(!Yl&&(jp.RDBegin!=-1))Ia=true;var KY=new Object();KY.nodeID=parseInt(lL);KY.text="";for(var ww=0;ww<jp.NewlinesToAdd;ww++)KY.text+="\r\n";jp.NewlinesToAdd=0;KY.text+=kMYK.data;Ae.push(KY);}if(Yn){var xv;if(jp.HighlightID.length>0)xv=jp.HighlightID;else xv="_"+(++this.controls.nextAnnotID);var yf=new top.TextHighlight(jp.HLBegin,jp.textPos-1,ANN_HIGHLIGHTTEXT,xv,this.controls,jp.color);a4.push(yf);jp.HLBegin=-1;jp.HighlightID="";}if(Ia){var sj="000000";if(jp.color==WHITE_REDACTION_BACKCOLOR)sj="FFFFFF";var xv;if(jp.RedactionID.length>0)xv=jp.RedactionID;else xv="_"+(++this.controls.nextAnnotID);var yf=new top.TextHighlight(jp.RDBegin,jp.textPos-1,ANN_BLACKOUTTEXT,xv,this.controls,sj);a4.push(yf);jp.RDBegin=-1;}if(kMYK.nodeName==TEXT_NODE_NAME)jp.textPos+=kMYK.data.length;for(var nS=0;nS<kMYK.childNodes.length;nS++){this.WalkEditedNode(jp,kMYK.childNodes[nS],a4,LU,Yl,lL,Ae);}if(Ov){if(LU){var xv;if(jp.HighlightID.length>0)xv=jp.HighlightID;else xv="_"+(++this.controls.nextAnnotID);var yf=new top.TextHighlight(jp.HLBegin,jp.textPos-1,ANN_HIGHLIGHTTEXT,xv,this.controls,jp.color);a4.push(yf);}if(Yl){var sj="000000";if(jp.color==WHITE_REDACTION_BACKCOLOR)sj="FFFFFF";var xv;if(jp.RedactionID.length>0)xv=jp.RedactionID;else xv="_"+(++this.controls.nextAnnotID);var yf=new top.TextHighlight(jp.RDBegin,jp.textPos-1,ANN_BLACKOUTTEXT,xv,this.controls,sj);a4.push(yf);}}};Doctext.prototype.ReleaseDOMElements=function(){if(this.allTextAnnots){for(var ww=0;ww<this.allTextAnnots.length;ww++){this.allTextAnnots[ww].ReleaseDOMElements();}}this.subNode=null;};function DocVersion(pq,cf,F8,m6,J2,Bq,a9,fn,fb,qR,Lu){var Vy=this;Vy.controls=fb;Vy.versionNumber=pq;Vy.docID=cf;Vy.NeedToSaveBeforeAdd=false;if(cf>0){if(Vy.controls.verTable.childNodes[0].childNodes.length>1)Vy.myRow=Vy.controls.verTable.childNodes[0].insertBefore(Vy.controls.verTable.ownerDocument.createElement("tr"),Vy.controls.verTable.childNodes[0].childNodes[1]);else Vy.myRow=Vy.controls.verTable.childNodes[0].appendChild(Vy.controls.verTable.ownerDocument.createElement("tr"));Vy.myRow.onclick=function(){if(Vy.docID)Vy.Select();};if(Vy.controls.imageWin){Vy.myRow.ondblclick=function(){if(Vy.docID&&(Vy.docID!=Vy.controls.docid))top.OpenDocView(Vy.controls.imageWin,Vy.docID,"docview.asp?id="+Vy.docID+"&dbid="+Vy.controls.dbid,"height=570,resizable=yes,scrollbars=no,status=yes,toolbar=no,width=860");};}else{Vy.myRow.ondblclick=function(){if(Vy.docID&&(Vy.docID!=Vy.controls.docid))top.OpenDocView(top.window,Vy.docID,"docview.asp?id="+Vy.docID+"&dbid="+Vy.controls.dbid,"height=570,resizable=yes,scrollbars=no,status=yes,toolbar=no,width=860");};}Vy.VersionNumberCell=Vy.myRow.appendChild(Vy.myRow.ownerDocument.createElement("td"));Vy.VersionNumberCell.align="center";Vy.DocNameCell=Vy.myRow.appendChild(Vy.myRow.ownerDocument.createElement("td"));Vy.DocCreatorCell=Vy.myRow.appendChild(Vy.myRow.ownerDocument.createElement("td"));Vy.ShowDeselected();Vy.deletable=(!(cf==Vy.controls.docid)||!Vy.controls.checkedOutOther)&&Vy.controls.versionsEditable;if(Vy.versionNumber==0)Vy.VersionNumberCell.appendChild(Vy.VersionNumberCell.ownerDocument.createTextNode(top.STR_NONE));else Vy.VersionNumberCell.appendChild(Vy.VersionNumberCell.ownerDocument.createTextNode(Vy.versionNumber));var im=Vy.DocNameCell.appendChild(Vy.DocNameCell.ownerDocument.createElement("table"));im.cellpadding="0px";im.cellspacing="0px";im.className="LabelFont";var yU=im.appendChild(Vy.DocNameCell.ownerDocument.createElement("tbody"));var f8=yU.appendChild(Vy.DocNameCell.ownerDocument.createElement("tr"));var Ht=f8.appendChild(Vy.DocNameCell.ownerDocument.createElement("td"));var MF=Ht.appendChild(Vy.DocNameCell.ownerDocument.createElement("div"));MF.style.fontWeight="bold";MF.appendChild(Vy.DocNameCell.ownerDocument.createTextNode(F8));if(qR){var b6=yU.appendChild(Vy.DocNameCell.ownerDocument.createElement("tr"));var ps=b6.appendChild(Vy.DocNameCell.ownerDocument.createElement("td"));var A4=ps.appendChild(Vy.DocNameCell.ownerDocument.createElement("div"));A4.appendChild(Vy.DocNameCell.ownerDocument.createTextNode(qR));}var NX=Vy.DocCreatorCell.appendChild(Vy.DocCreatorCell.ownerDocument.createElement("div"));if(Lu){NX.appendChild(Vy.DocCreatorCell.ownerDocument.createTextNode(Lu));}else{NX.appendChild(Vy.DocCreatorCell.ownerDocument.createTextNode("---"));}}}DocVersion.prototype.Update=function(){var Vy=this;Vy.controls.SetDirty();Vy.VersionNumberCell.appendChild(Vy.VersionNumberCell.ownerDocument.createTextNode(Vy.versionNumber));Vy.controls.StoreVersion(new top.DocVersion(null,null,null,true,top.DOC_ICON_GENERIC,top.STR_DOCUMENT,top.DOC_ICON_WIDTH,top.DOC_ICON_HEIGHT,Vy.controls));};DocVersion.prototype.Select=function(){var Vy=this;Vy.controls.DeselectItem();var o9=function(){if(Vy.controls.versionsEditable&&confirm(top.STR_CONFIRM_REMOVE_VERSION)){Vy.Remove();if(Vy.docID==Vy.controls.docid){Vy.controls.RemovedFromVersionGroup();Vy.controls.DocVersions[0].versionNumber=0;}Vy.ShowDeselected();Vy.controls.deleteVersionButton.disabled=true;Vy.controls.deleteVersionImage.src="images/remove_disabled.gif";top.setKeyPressDelete=function(g){};return true;}else return false;};Vy.controls.verDetailsButton.onclick=function(){if(!top.VerifyConnection(Vy.controls.dbid))return;if(top.lfShowModalDialog(Vy.controls.pageToolsWin,"DetailedVersionDialog.asp?dbid="+Vy.controls.dbid+"&docid="+Vy.controls.docid+"&SelectedID="+Vy.docID+"&version="+Vy.versionNumber,null,"help:no;scroll:no;status:no"))Vy.controls.SetDirty();};Vy.controls.verDetailsButton.disabled=false;if(this.deletable&&(Vy.controls.DocVersions[0].versionNumber!=0)){top.setKeyPressDelete=function(g){if(g.keyCode==DELETE_KEY_CODE){o9();}return false;};Vy.controls.deleteVersionButton.onclick=o9;Vy.controls.deleteVersionButton.disabled=false;Vy.controls.deleteVersionImage.src="images/remove.gif";top.setKeyPressDelete=function(g){if(g.keyCode==DELETE_KEY_CODE){if(Vy.controls.versionsEditable&&confirm(top.STR_CONFIRM_REMOVE_VERSION)){Vy.Remove();if(Vy.docID==Vy.controls.docid){Vy.controls.RemovedFromVersionGroup();Vy.controls.DocVersions[0].versionNumber=0;}Vy.ShowDeselected();Vy.controls.deleteVersionButton.disabled=true;Vy.controls.deleteVersionImage.src="images/remove_disabled.gif";top.setKeyPressDelete=function(g){};return true;}}return false;};}else{Vy.controls.deleteVersionButton.disabled=true;Vy.controls.deleteVersionImage.src="images/remove_disabled.gif";top.setKeyPressDelete=function(g){};}Vy.ShowSelected();Vy.controls.DeselectItem=function(){Vy.ShowDeselected();};if(!Vy.controls.versionsEditable||((Vy.docID==Vy.controls.docid)&&Vy.versionNumber==0)){top.setKeyPressDelete=function(g){};}};DocVersion.prototype.ShowSelected=function(){this.VersionNumberCell.className="VersionTableCell UserRowHighlight";this.DocNameCell.className="VersionTableCell VersionIcon UserRowHighlight";this.DocCreatorCell.className="VersionTableCell UserRowHighlight";};DocVersion.prototype.ShowDeselected=function(){this.VersionNumberCell.className="VersionTableCell VersionNum";this.DocNameCell.className="VersionTableCell VersionIcon";this.DocCreatorCell.className="VersionTableCell";};DocVersion.prototype.Remove=function(){var Vy=this;if(top.GetXMLDocument("RemoveDocVersion.asp?docid="+this.controls.docid+"&versiondocid="+this.docID+"&dbid="+this.controls.dbid)){if(Vy.docID!=Vy.controls.docid){Vy.myRow.parentNode.removeChild(Vy.myRow);Vy.controls.RemoveVersion(Vy);}else{Vy.NeedToSaveBeforeAdd=true;for(var ww=Vy.myRow.parentNode.childNodes.length-1;ww>0;ww--){if(Vy.myRow.parentNode.childNodes[ww]!=Vy.myRow)Vy.myRow.parentNode.removeChild(Vy.myRow.parentNode.childNodes[ww]);}}Vy.controls.SetDirty();Vy.controls.DeselectItem=function(){};}};DocVersion.prototype.ReleaseDOMElements=function(){this.myRow.onclick=null;this.myRow.ondblclick=null;};function FakeScrollbar(yL,b5,C7){var z6A=this;z6A.ScrollDiv=yL;z6A.FakeDiv=b5;z6A.scrollCallbackName=C7;z6A.lastScrollPct=0;z6A.displayedScrollPct=0;var v7="callbackfunc"+top.callbackNum++;top[v7]=function(){z6A.CheckScroll();};top.setInterval(top[v7],250);}FakeScrollbar.prototype.SetScrollHeight=function(Jh){this.FakeDiv.style.height=Jh;};FakeScrollbar.prototype.GetScrollHeight=function(){return parseInt(this.FakeDiv.style.height);};FakeScrollbar.prototype.CheckScroll=function(){var Z2;if(this.ScrollDiv.scrollTop==this.ScrollDiv.scrollHeight-this.ScrollDiv.clientHeight)Z2=-1;else Z2=this.ScrollDiv.scrollTop/this.ScrollDiv.scrollHeight;top[this.scrollCallbackName](Z2);};FakeScrollbar.prototype.SetScrollTop=function(pH){this.ScrollDiv.scrollTop=pH;};FakeScrollbar.prototype.GetScrollTop=function(){return this.ScrollDiv.scrollTop;};var MASK_ALNUM=0x010001;var MASK_ALPHA=0x010002;var MASK_BLANK=0x010003;var MASK_CNTRL=0x010004;var MASK_DIGIT=0x010005;var MASK_GRAPH=0x010006;var MASK_LOWER=0x010007;var MASK_PRINT=0x010008;var MASK_PUNCT=0x010009;var MASK_SPACE=0x01000A;var MASK_UPPER=0x01000B;var MASK_XDIGIT=0x01000C;var MASK_WORD=0x01000D;var MASK_CUSTOM=0x01000E;var MAX_INT_VALUE=65499;var MAX_LONG_VALUE=3999999999;function Field(name,rI,DL,Pk,zl,UG,ik,bX,_e,My,CB,L6,yn,t1){this.name=name;this.type=rI;this.val=DL;this.list=Pk;this.quickPicks=zl;this.fieldlen=UG;this.readOnly=ik;this.MultiValued=t1;this.mandatory=bX;this.mask=_e;this.isEmpty=(DL.length==0);this.hasConstraint=My;this.index=CB;this.regexError=L6;if(this.val.length==0)this.defaultValue=yn;else this.defaultValue="";for(var ww=0;ww<this.mask.length;ww++){var p4=this.mask[ww];if(!this.IsLiteral(p4)){if(p4!=MASK_ALNUM&&p4!=MASK_ALPHA&&p4!=MASK_BLANK&&p4!=MASK_DIGIT&&p4!=MASK_GRAPH&&p4!=MASK_LOWER&&p4!=MASK_PRINT&&p4!=MASK_SPACE&&p4!=MASK_UPPER&&p4!=MASK_XDIGIT&&p4!=MASK_WORD&&p4!=MASK_CUSTOM){this.mask=new Array();break;}}}this.emptyMaskDisplay="";for(var ww=0;ww<this.mask.length;ww++){if(this.IsLiteral(this.mask[ww]))this.emptyMaskDisplay+=String.fromCharCode(this.mask[ww]);else this.emptyMaskDisplay+=" ";}}Field.prototype.SetControls=function(fb){this.controls=fb;};Field.prototype.SetDisplay=function(e7){this.display=e7;};Field.prototype.CheckConstraint=function(){var Bd=this;if(!Bd.display)return;if(!Bd.hasConstraint&&Bd.type!=FIELD_TYPE_DATE&&Bd.type!=FIELD_TYPE_DATETIME){Bd.display.Validate();return;}var TU="";if(this.controls)TU="&dbid="+this.controls.dbid;var pS="";if(this.textInput.value!=this.emptyMaskDisplay)pS=encodeURIComponent(this.textInput.value);var tD=top.GetXMLDocument("ValidateFieldConstraint.asp?templateid="+this.display.templateID+"&fieldindex="+this.index+"&fieldvalue="+pS+TU);if(tD){if(tD.documentElement.getAttribute("Valid")){Bd.display.Validate();Bd.val=Bd.textInput.value;}else{if(Bd.regexError.length>0)alert(Bd.regexError+"\n\n"+top.STR_INVALID_INPUT);else alert(top.STR_INVALID_INPUT);if(Bd.mask.length==0){Bd.textInput.value=Bd.val;}else{if(Bd.val.length>0)Bd.textInput.value=Bd.val;else{Bd.isEmpty=true;Bd.textInput.value=Bd.emptyMaskDisplay;Bd.displayVal=Bd.emptyMaskDisplay;}}}}};Field.prototype.IsNumericFieldVal=function(RR,JE){var EOq=parseInt(RR);if(!EOq&&EOq!=0)return false;if(EOq!=RR)return false;if(EOq<0||EOq>JE)return false;return true;};Field.prototype.CheckValidity=function(){if(this.textInput.value.length>0){if(this.MultiValued&&(this.textInput.value==STR_MULTI_VALUES_ASSIGNED))return true;if((this.type==FIELD_TYPE_DATE||this.type==FIELD_TYPE_DATETIME)&&this.textInput.value.indexOf("$")==-1){if(this.textInput.value==this.emptyMaskDisplay){return true;}if(Date.parse(this.textInput.value)){var RR=new Date(this.textInput.value);if(RR.getFullYear()<1753)return false;if(this.type==FIELD_TYPE_DATE&&((RR.getHours()>0)||(RR.getMinutes()>0)||(RR.getSeconds()>0)||(RR.getMilliseconds()>0))){return false;}}else return false;}if(this.type==FIELD_TYPE_SHORT)return this.IsNumericFieldVal(this.textInput.value,MAX_INT_VALUE);if(this.type==FIELD_TYPE_LONG)return this.IsNumericFieldVal(this.textInput.value,MAX_LONG_VALUE);}return true;};Field.prototype.CheckMeetsMandatoryRequirement=function(){return((this.textInput.value.length>0&&this.textInput.value!=this.emptyMaskDisplay)||!this.mandatory||this.readOnly||this.defaultValue.length>0)};Field.prototype.SetTextInput=function(Avi,_Z,GD,Rm){var Bd=this;Bd.textInput=Avi;Bd.textInput.value=this.val;if(Bd.MultiValued&&(Bd.val==top.STR_MULTI_VALUES_ASSIGNED))Bd.textInput.className="MultiFieldSelect";if(!Bd.textInput.disabled)Bd.textInput.disabled=Bd.readOnly;Bd.textInput.onblur=function(){if(Bd.textInput.value!=Bd.val&&(!(Bd.textInput.value==Bd.emptyMaskDisplay&&Bd.val.length==0))){if(!Bd.CheckValidity()){alert(top.STR_INVALID_INPUT);if(Bd.val.length>0)Bd.textInput.value=Bd.val;else Bd.textInput.value=Bd.emptyMaskDisplay;if(Bd.MultiValued&&(Bd.val==top.STR_MULTI_VALUES_ASSIGNED))Bd.textInput.className="MultiFieldSelect";return;}if(_Z){if(Bd.textInput.value==Bd.emptyMaskDisplay)Bd.UpdateValue("");else Bd.UpdateValue(Bd.textInput.value);if(Rm)Rm();}else{Bd.CheckConstraint();}}if(Bd.controls){try{if(this.pagecount>0){if(Bd.controls.ImageControls[0].style.display=="inline"){Bd.controls.ShowImage();}else{Bd.controls.ShowText();}}}catch(tp){}}};if(Bd.mask.length>0){Bd.CalculateDisplayVal();Bd.textInput.onkeyup=function(g){var M4=Bd.displayVal;var Rn=Bd.textInput.value;if(M4==Rn){return true;}if(!(this.MultiValued&&(this.textInput.value==STR_MULTI_VALUES_ASSIGNED)))Bd.textInput.className="";var Gkn=Bd.textInput.ownerDocument.selection.createRange();var iA=-1*Gkn.moveStart("character",-1*Bd.textInput.maxLength);var qc=Bd.textInput.value.length-Gkn.moveEnd("character",Bd.textInput.maxLength);var sG0;var pI;var img=Rn.length-M4.length;for(sG0=M4.length-1;sG0>=0&&sG0+img>=iA;sG0--){if(M4.charAt(sG0)!=Rn.charAt(img+sG0))break;}for(pI=0;pI<=sG0&&pI<=sG0+img;pI++){if(M4.charAt(pI)!=Rn.charAt(pI))break;}var r0=pI;var Lua=sG0-pI+1;var fg=Rn.substring(pI,img+sG0+1);if(fg.length==1&&fg.charAt(0)==' '){if(Bd.type==FIELD_TYPE_DATE||Bd.type==FIELD_TYPE_DATETIME){if(M4==Bd.emptyMaskDisplay){var kU=new Date();var QM="";var eP=kU.getMonth()+1;if(eP<10){QM+="0";}QM+=eP+"/";var fB=kU.getDate();if(fB<10){QM+="0";}QM+=fB+"/";var WW=kU.getFullYear();QM+=WW;if(Bd.type==FIELD_TYPE_DATETIME){QM=QM+" ";var v4=kU.getHours();var v9=false;if(v4>=12){v9=true;v4=v4-12;}if(v4==0){v4=12;}if(v4<10){QM=QM+"0";}QM+=v4+":";var aZ=kU.getMinutes();if(aZ<10){QM+="0";}QM+=aZ+":";var xY=kU.getSeconds();if(xY<10){QM+="0";}QM+=xY+" ";QM=QM+(v9?"PM":"AM");}Bd.textInput.value=QM;return true;}}}var imT=M4.substring(0,r0);var jGg="";var L1=M4.substr(r0+Lua);for(var ww=0;ww<Lua;ww++){if(Bd.IsLiteral(Bd.mask[ww+r0]))jGg+=String.fromCharCode(Bd.mask[ww+r0]);else jGg+=" ";}Bd.textInput.value=imT+jGg+L1;var Qm=r0;if(!Bd.FormatString(fg,r0)){Bd.textInput.value=M4;}else{Qm+=fg.length;if(fg.length>0){while(Qm<Bd.mask.length){if(!Bd.IsLiteral(Bd.mask[Qm]))break;Qm++;}}}var pqS=Bd.textInput.createTextRange();pqS.move("character",Qm);pqS.select();Bd.displayVal=Bd.textInput.value;return true;};Bd.textInput.onfocus=function(){if(Bd.MultiValued&&(Bd.val==top.STR_MULTI_VALUES_ASSIGNED)&&(!Bd.list||(Bd.list.length==0))){Bd.textInput.select();return true;}else{Bd.textInput.className="";if(!Bd.isEmpty)return true;var uS;for(uS=0;uS<Bd.mask.length;uS++){if(!Bd.IsLiteral(Bd.mask[uS]))break;}var pqS=Bd.textInput.createTextRange();pqS.move("character",uS);pqS.select();return false;}};}else{Bd.textInput.onfocus=function(){if(Bd.MultiValued&&(Bd.val==top.STR_MULTI_VALUES_ASSIGNED)&&(!Bd.list||(Bd.list.length==0)))Bd.textInput.select();return true;};Bd.textInput.onkeyup=function(){if(!Bd.hasConstraint&&Bd.type!=FIELD_TYPE_DATE&&Bd.type!=FIELD_TYPE_DATETIME)Bd.CheckConstraint();var M4=Bd.displayVal;var Rn=Bd.textInput.value;if(M4!=Rn&&(!(this.MultiValued&&(this.textInput.value==STR_MULTI_VALUES_ASSIGNED))))Bd.textInput.className="";};}};Field.prototype.CalculateDisplayVal=function(){if(this.isEmpty){this.textInput.value=this.emptyMaskDisplay;this.displayVal=this.emptyMaskDisplay;}else{this.displayVal=this.val;}};Field.prototype.FormatString=function(Y7,XC){if(Y7.length+XC>this.mask.length)return false;for(var ww=0;ww<Y7.length;ww++){var wh=this.mask[XC+ww];if(this.IsLiteral(wh)){if(String.fromCharCode(wh)!=Y7.charAt(ww))return false;}else{if(wh==MASK_UPPER||wh==MASK_CUSTOM)Y7=Y7.toUpperCase();if(wh==MASK_LOWER)Y7=Y7.toLowerCase();if(this.ValidateCharClass(wh,Y7.charAt(ww))){this.textInput.value=this.textInput.value.substring(0,XC+ww)+Y7.charAt(ww)+this.textInput.value.substr(XC+ww+1);this.isEmpty=false;}else{return false;}}}return true;};Field.prototype.IsLiteral=function(ix){return(ix<255);};Field.prototype.ValidateCharClass=function(g_,pS){var cT=pS.charCodeAt(0);switch(g_){case MASK_ALNUM:return((cT>="a".charCodeAt(0)&&cT<="z".charCodeAt(0))||(cT>="A".charCodeAt(0)&&cT<="Z".charCodeAt(0))||(cT>="0".charCodeAt(0)&&cT<="9".charCodeAt(0)));break;case MASK_ALPHA:return((cT>="a".charCodeAt(0)&&cT<="z".charCodeAt(0))||(cT>="A".charCodeAt(0)&&cT<="Z".charCodeAt(0)));break;case MASK_BLANK:return pS==" ";break;case MASK_DIGIT:return(cT>="0".charCodeAt(0)&&cT<="9".charCodeAt(0));break;case MASK_GRAPH:return pS!=" ";break;case MASK_LOWER:return(cT>="a".charCodeAt(0)&&cT<="z".charCodeAt(0));break;case MASK_PRINT:return true;break;case MASK_SPACE:return pS==" ";break;case MASK_UPPER:return(cT>="A".charCodeAt(0)&&cT<="Z".charCodeAt(0));break;case MASK_XDIGIT:return((cT>="a".charCodeAt(0)&&cT<="f".charCodeAt(0))||(cT>="A".charCodeAt(0)&&cT<="F".charCodeAt(0))||(cT>="0".charCodeAt(0)&&cT<="9".charCodeAt(0)));break;case MASK_WORD:return((cT>="a".charCodeAt(0)&&cT<="z".charCodeAt(0))||(cT>="A".charCodeAt(0)&&cT<="Z".charCodeAt(0))||(cT>="0".charCodeAt(0)&&cT<="9".charCodeAt(0))||(pS=="_"));break;case MASK_CUSTOM:return(cT=="A".charCodeAt(0)||cT=="P".charCodeAt(0)||cT=="M".charCodeAt(0));break;}};Field.prototype.SetDocIDs=function(DQ){this.docids=DQ;};Field.prototype.SetTocTypes=function(ey){this.toctypes=ey;};Field.prototype.UpdateValue=function(PG){var Bd=this;var TU="";if(this.controls)TU="&dbid="+this.controls.dbid;var ju="ChangeFieldValue.asp?ids="+this.docids+"&toctypes="+this.toctypes+"&fieldname="+encodeURIComponent(this.name)+"&fieldvalue="+encodeURIComponent(PG)+TU;if(Bd.type==FIELD_TYPE_DATE||Bd.type==FIELD_TYPE_DATETIME)ju+="&isdate=yes";if(top.GetXMLDocument(ju)){Bd.val=PG;}else{if(Bd.val.length==0)Bd.textInput.value=Bd.emptyMaskDisplay;else Bd.textInput.value=Bd.val;Bd.displayVal=Bd.textInput.value;}if(Bd.display)Bd.display.Validate();};Field.prototype.AddOption=function(NP,nX,Xm){var Bd=this;var YY=NP.ownerDocument.createElement("option");if(!(Bd.MultiValued&&(nX==top.STR_MULTI_VALUES_ASSIGNED))){YY.className="NormalFieldSelect";}YY.text=nX;if(Xm==null)YY.value=YY.text;else YY.value=Xm;if(NP.options.add)NP.options.add(YY);else NP.add(YY,null);};Field.prototype.ShowDropDownList=function(NP,HSd,yJ){var Bd=this;while(NP.options.length>0)NP.options.remove(0);this.AddOption(NP," ");NP.onchange=function(){Bd.display.Validate();};if(HSd&&HSd.length>0){for(var ww=0;ww<HSd.length;ww++){this.AddOption(NP,HSd[ww]);}this.AddOption(NP,"------------","");}if(this.list[0]==" ")this.list[0]="";else if(yJ&&this.list[0].length>0)this.list.unshift("");if(this.MultiValued&&(this.val==top.STR_MULTI_VALUES_ASSIGNED))this.AddOption(NP,top.STR_MULTI_VALUES_ASSIGNED);var bD=false;if(this.val=="")bD=true;for(var nS=0;nS<this.list.length;nS++){if(this.val==this.list[nS])bD=true;this.AddOption(NP,this.list[nS]);}if(!bD)this.AddOption(NP,this.val);NP.options.remove(0);};function FieldsDisplay(h,l,Wj,ul,Rm){this.myDiv=h;this.myWin=l;this.bSmartInputs=Wj;this.SetFieldValsValidFunc=ul;this.SetDirtyFunc=Rm;}FieldsDisplay.prototype.HideFields=function(){while(this.myDiv.childNodes.length)this.myDiv.removeChild(this.myDiv.childNodes[0]);};FieldsDisplay.prototype.GetQuikPikFunc=function(PK,T){var PP=this;return function(){var Np=function(HSd){var Sk=PP.fields[PK].textInput.value;PP.fields[PK].ShowDropDownList(PP.fields[PK].textInput,HSd);PP.fields[PK].textInput.value=Sk;};top.EditQuikPik(PP.myWin,PP.templateID,PK,Np,T);};};FieldsDisplay.prototype.Validate=function(){var To=true;if(this.fields){for(var ww=0;ww<this.fields.length;ww++){if(!this.fields[ww].CheckValidity()||!this.fields[ww].CheckMeetsMandatoryRequirement()){To=false;break;}}}if(this.SetFieldValsValidFunc)this.SetFieldValsValidFunc(To);};FieldsDisplay.prototype.DisplayFields=function(nW,x3,fb,DQ,ey,G5,T){this.HideFields();this.templateID=x3;this.fields=nW;if(fb)T=fb.dbid;var ww;this.fieldValText=new Array();for(ww=0;ww<nW.length;ww++){nW[ww].SetControls(fb);nW[ww].SetDocIDs(DQ);nW[ww].SetTocTypes(ey);nW[ww].SetDisplay(this);var ci=nW[ww].name+":";var WX=this.myDiv.ownerDocument;var gw=WX.createElement("span");if(nW[ww].mandatory){ci+=" ("+STR_REQUIRED+")";gw.className="RequiredField";}gw.appendChild(WX.createTextNode(ci));this.myDiv.appendChild(gw);this.myDiv.appendChild(WX.createElement("br"));if(nW[ww].list&&nW[ww].list.length){var P4=WX.createElement("a");P4.onclick=this.GetQuikPikFunc(ww,T);top.setKeyPressHandler(P4,this.myWin);var Tz=WX.createElement("img");Tz.style.height=14;Tz.style.width=19;Tz.style.marginLeft="5px";Tz.style.marginRight="5px";Tz.src="images/editquickpicklistbtn.gif";Tz.alt=STR_QUICK_PICK_LIST;Tz.onmouseover=function(){Tz.src="images/editquickpicklistbtn_over.gif";};Tz.onmouseout=function(){Tz.src="images/editquickpicklistbtn.gif";};this.myDiv.appendChild(P4).appendChild(Tz);this.fieldValText[ww]=WX.createElement("select");}else{this.fieldValText[ww]=WX.createElement("input");this.fieldValText[ww].type="text";this.fieldValText[ww].size=40;if(nW[ww].mask.length==0&&nW[ww].type==FIELD_TYPE_STRING)this.fieldValText[ww].maxLength=nW[ww].fieldlen;}this.fieldValText[ww].name="field"+(ww+1)+"val";if(!G5)this.fieldValText[ww].disabled=true;var nXU=WX.createElement("input");nXU.type="hidden";nXU.name="field"+(ww+1)+"name";nXU.value=nW[ww].name;this.myDiv.appendChild(this.fieldValText[ww]);this.myDiv.appendChild(nXU);this.myDiv.appendChild(WX.createElement("br"));this.myDiv.appendChild(WX.createElement("br"));if(nW[ww].list&&nW[ww].list.length)nW[ww].ShowDropDownList(this.fieldValText[ww],nW[ww].quickPicks);nW[ww].SetTextInput(this.fieldValText[ww],this.bSmartInputs,this.myWin,this.SetDirtyFunc);}this.Validate();};FieldsDisplay.prototype.Disable=function(){if(this.fields){for(var ww=0;ww<this.fields.length;ww++){this.fields[ww].textInput.disabled=true;}}};top.FieldsFromXML=function(tD,ji){var de=tD.documentElement;var jD=de.getElementsByTagName("Field");for(var ww=0;ww<jD.length;++ww){var ql=jD.item(ww);var xA=ql.getAttribute("Name");var pr=ql.getAttribute("Type");var vX=ql.getAttribute("Value");var fK=ql.getAttribute("Default");var nV=ql.getAttribute("Length");var t9t=ql.getAttribute("ConstraintViolationMessage");var LV=ql.getAttribute("ReadOnly")!=null;var G9=ql.getAttribute("Mandatory")!=null;var S6=ql.getAttribute("HasConstraint")!=null;var t1=ql.getAttribute("MultiValued")=="true"?true:false;var O_0=ql.getElementsByTagName("DropDownList");var Ho=new Array();if(O_0.length>0){var hq=O_0.item(0);var qp=hq.getElementsByTagName("Item");for(var nS=0;nS<qp.length;++nS){Ho.push(qp.item(nS).text);}}var AU=ql.getElementsByTagName("QuickPickList");var Wp=new Array();if(AU.length>0){var ons=AU.item(0);var IB=ons.getElementsByTagName("Item");for(var Je=0;Je<IB.length;++Je){Wp.push(IB.item(Je).text);}}var Xf=new Array();var PS=ql.getElementsByTagName("Mask");if(PS.length>0){var UQ=PS.item(0);var UN=UQ.getElementsByTagName("Item");for(var ba=0;ba<UN.length;++ba){Xf.push(parseInt(UN.item(ba).text));}}var NY=new Field(xA,pr,vX,Ho,Wp,nV,LV,G9,Xf,S6,ww+1,t9t,fK,t1);ji.push(NY);}};FieldsDisplay.prototype.ReleaseDOMElements=function(){if(this.myDiv){for(var ww=0;ww<this.myDiv.childNodes.length;ww++){if(this.myDiv.childNodes[ww].tagName=="A"){this.myDiv.childNodes[ww].childNodes[0].onmouseover=null;this.myDiv.childNodes[ww].childNodes[0].onmouseout=null;top.clearKeyPressHandler(this.myDiv.childNodes[ww]);this.myDiv.childNodes[ww].onclick=null;}else if(this.myDiv.childNodes[ww].tagName=="SELECT")this.myDiv.childNodes[ww].onchange=null;}this.myDiv=null;}if(this.fieldValText){for(var ww=0;ww<this.fieldValText.length;ww++){this.fieldValText[ww].onblur=null;this.fieldValText[ww].onfocus=null;this.fieldValText[ww].onkeyup=null;}}if(this.fields){for(var ww=0;ww<this.fields.length;ww++){}this.fields=null;}if(this.textInput){this.textInput.onfocus=null;this.textInput.onkeyup=null;this.textInput.onblur=null;this.textInput=null;}this.templateID=null;};var OPEN_FOLDER_ICON="images/OpenFolder.gif";var OPEN_FOLDER_ICON_WIDTH=16;var OPEN_FOLDER_ICON_HEIGHT=16;var OPEN_RSFOLDER_ICON="images/RecordSeriesOpen.gif";var OPEN_RSFOLDER_ICON_WIDTH=16;var OPEN_RSFOLDER_ICON_HEIGHT=16;var OPEN_RFFOLDER_ICON="images/RecordFolderOpen.gif";var OPEN_RFFOLDER_ICON_WIDTH=16;var OPEN_RFFOLDER_ICON_HEIGHT=16;var TOGGLE_EXPAND="images/Expand.gif";var TOGGLE_CONTRACT="images/Contract.gif";var COPY_OP=1;var SHORTCUT_OP=2;var MOVE_OP=3;var SEL_FOLDER_ROW_CLASS="SearchResultsTableHighlightBackground LabelFont";var ROOT_FOLDER_ID=1;top.DRAG_START_TOLERANCE=3;function Folder(name,S,F,an,wa,mK,Bw,bd,x3,dp,w2,bS,iP,Ku,Fp){this.name=name;this.toctype=S;this.id=F;this.targetid=an;this.opened=false;this.columndata=dp;this.NotReadable=Fp;this.imgsrc=wa;this.imgalt=mK;this.imgwidth=Bw;this.imgheight=bd;this.templateID=x3;this.isRecordSeries=w2;this.isRecordFolder=bS;this.pLockOwner=iP;this.isPlockOwnedByMe=Ku;this.bOKToOpen=true;this.ContentsArray=new Array();this.ContentsArrayTree=new Array();if(this.isFolder())this.children=new Array();}Folder.prototype.isFolder=function(){return(this.toctype=="f"||this.toctype=="fs");};Folder.prototype.isCheckedOut=function(){return(this.pLockOwner.length!=0);};Folder.prototype.isOnLHS=function(){return!this.browser.showDocs;};Folder.prototype.ShowSubfolder=function(Bu){var VS=this;for(var ww=0;ww<this.children.length;ww++){if(this.children[ww]&&(this.children[ww].id==Bu.id)){return this.children[ww];}}if(this.opened){VS.setChild(Bu);VS.browser.drawEntry(Bu,VS.myContentsTable);}else{var t_=new Array();t_[0]=Bu;VS.browser.drawFolderContents(VS,t_,1);}VS.bOKToOpen=true;return Bu;};top.ColumnDataFromXML=function(V0,Eb){var u4=V0.getElementsByTagName("ColumnData");if(u4.length>0){var tj=u4.item(0);var Bl=tj.getElementsByTagName("Item");for(var nS=0;nS<Bl.length;++nS){Eb[nS+1]=Bl.item(nS).text;}tj=null;Bl.removeAll();Bl=null;}u4.removeAll();u4=null;};top.EntriesFromXML=function(tD,rz){var c=tD.documentElement;var ZY=c.getElementsByTagName("Entry");for(var ww=0;ww<ZY.length;++ww){var rG=ZY.item(ww);var qH=rG.getAttribute("Name");var VDy=rG.getAttribute("Type");var TN=rG.getAttribute("ID");var Hbp=rG.getAttribute("LinkTo");var gU=rG.getAttribute("ImgSrc");var HV=rG.getAttribute("ImgAlt");var G8=rG.getAttribute("ImgWidth");var cm=rG.getAttribute("ImgHeight");var x3=rG.getAttribute("TemplateID");var iP=rG.getAttribute("PLockOwner");var w2=rG.getAttribute("IsRecordSeries")!=null;var bS=rG.getAttribute("IsRecordFolder")!=null;var _4=rG.getAttribute("IsPLockOwnedByMe")!=null;var er=rG.getAttribute("IsNotReadable")!=null;var dp=new Array();top.ColumnDataFromXML(rG,dp);var Z1=new Folder(qH,VDy,TN,Hbp,gU,HV,G8,cm,x3,dp,w2,bS,iP,_4,er);rz.push(Z1);}dp=null;ZY.removeAll();c=null;ZY=null;};Folder.prototype.ShowContents=function(Nc,T,S9,fF,PW,Od,b7,zT){this.loadedFields=false;var VS=this;var U3g="GetEntryListing.asp?";if(fF){U3g=U3g+"handle="+fF+"&start="+PW+"&count="+Od;if(b7&&zT)U3g=U3g+"&sort="+b7+"&sortdir="+zT;}else{U3g+="id="+VS.id;if(Nc.showDocs)U3g+="&showdocuments=true";}U3g=U3g+"&dbid="+T;VS.finishedFunc1=function(){if(VS.domdoc1.readyState==4){if(VS.domdoc1.parseError.errorCode==0){var fw=VS.domdoc1.getElementsByTagName("script");if(fw.length>0){eval(fw.item(0).text);}else{Folder.prototype.ClearContentsArray(VS.ContentsArrayTree);top.EntriesFromXML(VS.domdoc1,VS.ContentsArrayTree);VS.folderSize=VS.domdoc1.documentElement.getAttribute("TotalChildren");Nc.drawFolderContents(VS,VS.ContentsArrayTree,VS.folderSize,PW);VS.folderSize=null;}fw=null;}if(Nc.controls)Nc.controls.OKToOpenFolder();if(PW==null)VS.domdoc1.onreadystatechange=function(){};}};if(S9){VS.domdoc1=new ActiveXObject("MSXML2.FreeThreadedDOMDocument");VS.domdoc1.async=true;VS.domdoc1.onreadystatechange=VS.finishedFunc1;VS.domdoc1.load(U3g);}else{VS.domdoc2=new ActiveXObject("MSXML2.FreeThreadedDOMDocument");VS.domdoc2.async=false;VS.domdoc2.load(U3g);if(VS.domdoc2.readyState==4){if(VS.domdoc2.parseError.errorCode==0){var fw=VS.domdoc2.getElementsByTagName("script");if(fw.length>0){eval(fw.item(0).text);}else{Folder.prototype.ClearContentsArray(VS.ContentsArray);top.EntriesFromXML(VS.domdoc2,VS.ContentsArray);VS.folderSize=VS.domdoc2.documentElement.getAttribute("TotalChildren");Nc.drawFolderContents(VS,VS.ContentsArray,VS.folderSize,PW);VS.folderSize=null;}fw=null;}if(Nc.controls)Nc.controls.OKToOpenFolder();if(PW==null)VS.domdoc2.onreadystatechange=function(){};}}};Folder.prototype.OKToOpen=function(){return this.bOKToOpen;};Folder.prototype.MouseDownFunc=function(g,Uh){if(this.browser.WaitingForControls())return;if(this.browser.controls){this.browser.controls.lastButtonClicked=g.button;this.browser.controls.lastEntryClicked=this;this.browser.controls.killContextMenu();this.hasRenameTimer=false;if(Uh&&top.getLMB(g)&&this.GetIsSelected()&&!g.ctrlKey){var VS=this;VS.hasRenameTimer=true;u6=function(){if(VS.hasRenameTimer&&VS.GetIsSelected()&&(!VS.isOnLHS()||VS.parentFolder)&&VS.browser.GetSelectedEntries().length==1){VS.GetNewName(VS.browser.myWin,VS.browser.controls.dbid);}};setTimeout(u6,1000);}}if(!this.browser.allowsDragging()){this.browser.SetSelectedEntry(this);}else{if(!g.ctrlKey&&!this.GetIsSelected())this.browser.SetSelectedEntry(this);this.bAboutToDrag=true;this.lastXClick=g.offsetX;this.lastYClick=g.offsetY;}if(this.browser)this.browser.RequestFocus();};Folder.prototype.MouseMoveFunc=function(g){if(this.bAboutToDrag&&((Math.abs(this.lastXClick-g.offsetX)>top.DRAG_START_TOLERANCE)||(Math.abs(this.lastYClick-g.offsetY)>top.DRAG_START_TOLERANCE))){this.bInitiateDrag=true;this.bAboutToDrag=false;this.browser.AddSelectedEntry(this);g.srcElement.dragDrop();}};Folder.prototype.MouseUpFunc=function(g){if(!this.browser.controls)return;if(this.browser.controls.showBuiltinContext)return;this.bAboutToDrag=false;if(this.parentFolder==null&&!this.isOnLHS())this.parentFolder=this.browser.controls.mainFolderBrowser.GetSelectedEntries()[0];if(top.getLMB(g)){if(g.ctrlKey){if(this.GetIsSelected())this.browser.UnSelectEntry(this);else this.browser.AddSelectedEntry(this);}else if(this.GetIsSelected()){this.browser.SetSelectedEntry(this);}}else{this.ShowDropContextMenu(g);}};Folder.prototype.DblClickFunc=function(){this.hasRenameTimer=false;var VS=this;if(this.browser.FoldersOpenInFrame()){if(!top.VerifyConnection(VS.browser.GetDBID()))return;if(this.toctype=="f"){this.OpenClose();}else if(this.toctype=="fs"){var tD=top.GetXMLDocument("GetLinkToPath.asp?id="+this.id+"&dbid="+this.browser.GetDBID());if(tD){var Ws=new Array();top.EntriesFromXML(tD,Ws);Ws[0].parentFolder=VS.browser.rootFolder;Ws[0].browser=VS.browser;for(var ww=1;ww<Ws.length;ww++){Ws[ww].parentFolder=Ws[ww-1];Ws[ww].browser=VS.browser;}Ws[Ws.length-1].ShowContents(VS.browser,VS.browser.GetDBID());}}else{this.browser.OpenSelectedDocument();}}else{if(!top.VerifyConnection(this.browser.controls.dbid))return;if(this.toctype=="f"){var Bu=this.browser.controls.OpenFolderSub(this);VS.browser.controls.mainFolderBrowser.SetSelectedEntry(Bu);}else if(this.toctype=="fs"){var tD=top.GetXMLDocument("GetLinkToPath.asp?id="+this.id+"&dbid="+this.browser.controls.dbid);if(tD){var Bqp=tD.documentElement.getElementsByTagName("NoRights");if(Bqp.length>0){top.window.open("index.asp?startid="+this.id+"&dbid="+this.browser.controls.dbid);}else{var Ws=new Array();top.EntriesFromXML(tD,Ws);VS.browser.controls.OpenFolderPath(Ws);}}}else{if(top.autoOpenEdoc&&(this.toctype=="e"||this.toctype=="es")){if(this.isPlockOwnedByMe){if(!confirm(top.STR_CHECKED_OUT_SELF_DOWNLOAD_CONFIRM))return;}this.browser.myWin.open("ImageDisplay.asp?doc="+this.id+"&edoc=1&scale=10000&dbid="+this.browser.controls.dbid+"&/"+this.name);}else{top.OpenDocView(this.browser.myWin,this.targetid,"docview.asp?id="+this.targetid+"&dbid="+this.browser.controls.dbid,"height=570,resizable=yes,scrollbars=no,status=yes,toolbar=no,width=860");}}}};Folder.prototype.DropFunc=function(g){if(!top.VerifyConnection(this.browser.controls.dbid))return;var b=g.dataTransfer.getData("Text");var LT=this.browser.controls.GetDragDataType(b);if(LT==DRAG_FORMAT_TOC_ENTRIES){var p3=this.browser.controls.InterpretEntryDragData(b);var PS3=this.browser.controls.GetDragButton(b);var aK=this.browser.controls.GetDragFolders(b);var Gd;if(g.ctrlKey){if(g.shiftKey){Gd=SHORTCUT_OP;g.dataTransfer.dropEffect="link";}else{Gd=COPY_OP;g.dataTransfer.dropEffect="copy";}}else{Gd=MOVE_OP;g.dataTransfer.dropEffect="move";}if((!this.browser.controls.lastEntryClicked||(this.browser.controls.lastEntryClicked.id!=this.id))&&(!this.browser.controls.lastDraggee||((this.browser.controls.lastDraggee.id!=this.id)&&(this.browser.controls.lastDraggee.id!=ROOT_FOLDER_ID)))){this.DropChildren(p3,Gd,g,PS3,aK);}}else if(LT==DRAG_FORMAT_THUMBNAILS){try{var VS=this;var XCb=this.browser.controls.GetThumbnailPages(b).join(top.DRAG_DATA_DELIMITER);this.browser.controls.myWin.focus();var Dh=top.lfShowModalDialog(this.browser.controls.myWin,"FieldPopup.asp?folderid="+VS.id+"&thumbnails=yes&sourcehandle="+this.browser.controls.GetThumbnailEntryHandle(b)+"&pages="+XCb+"&dbid="+VS.browser.controls.dbid,null,"help:no;scroll:no;status:no",1);if(Dh>0){if(VS.isOnLHS()){var A6=new Array();A6.push(Dh);VS.browser.controls.myDocBrowser.RefreshFolderContents(A6);}if(b.indexOf(top.JSTHUMBNAIL_DATA_FORMAT)!=0){try{var eDd=new ActiveXObject("Laserfiche.WAThumbnailNotifyer72");if(eDd)eDd.NotifyThumbDisplay(XCb,g.dataTransfer);}catch(Kl){}}}}catch(tp){alert(STR_POPUPBLOCKER);}}};Folder.prototype.DragStartFunc=function(g){this.browser.controls.lastDraggee=this;this.hasRenameTimer=false;if(this.bInitiateDrag){this.bInitiateDrag=false;g.dataTransfer.setData("Text",this.browser.controls.GetDragData());g.dataTransfer.effectAllowed="all";}else{top.cancelEvent(g);}};Folder.prototype.ShowDropContextMenu=function(g,sI,aK,KI){var j3=0;var _P=0;if(!KI){j3=top.getOffsetX(g)+top.getFirer(g).getBoundingClientRect().left-top.getFirer(g).offsetLeft;_P=top.getOffsetY(g)+top.getFirer(g).getBoundingClientRect().top-top.getFirer(g).offsetTop;}var VS=this;VS.browser.controls.killContextMenu();VS.browser.controls.BrowseMenu.HideMenu();var Wo=new top.ContextMenu(top.document.body,j3+this.browser.getXWinOffset(),_P+this.browser.getYWinOffset(),top,true);var Cs;if(sI){var RS=function(){VS.browser.controls.killContextMenu();VS.AddChildren(COPY_OP,sI);return false;};var fwh=function(){VS.browser.controls.killContextMenu();VS.AddChildren(SHORTCUT_OP,sI);return false;};var np=function(){VS.browser.controls.killContextMenu();VS.AddChildren(MOVE_OP,sI);return false;};Wo.AddItem(STR_COPY,RS,!aK);Wo.AddItem(STR_CREATE_SHORTCUT,fwh,true);Wo.AddItem(STR_MOVE,np,true);}else{var DP=false;if(VS.browser.controls.GetSelectedEntries().length>1)DP=true;var iQ=function(g){VS.browser.controls.killContextMenu();VS.browser.controls.OpenTOCEntries();};var nB=STR_OPEN;if(this.isFolder()&&this.opened)nB=STR_CLOSE;var o9Q=function(g){VS.browser.controls.killContextMenu();VS.browser.controls.CheckOut();};var IH=function(g){VS.browser.controls.killContextMenu();VS.browser.controls.CheckIn();};var X8=function(g){VS.browser.controls.killContextMenu();VS.browser.controls.UndoCheckOut();};var IQ=function(g){VS.browser.controls.killContextMenu();VS.browser.controls.CheckOutDetails();};var Rz=function(){VS.browser.controls.killContextMenu();VS.browser.controls.DeleteTOCEntries();};var BC=function(){VS.browser.controls.killContextMenu();if(VS.isRecordSeries){VS.browser.controls.ShowRSDialog(VS);}else{VS.GetNewName(VS.browser.myWin,VS.browser.controls.dbid);}};var BaB=function(){VS.browser.controls.killContextMenu();VS.browser.controls.GetSelectedEntries()[0].ShowMetadataDialog("showfields");};var Z0=function(){VS.browser.controls.killContextMenu();VS.browser.controls.GetSelectedEntries()[0].ShowAccessDialog();};var L5=function(){VS.browser.controls.killContextMenu();VS.browser.controls.CopyFunc();};var Cu=function(){VS.browser.controls.killContextMenu();VS.browser.controls.CutFunc();};var D0=function(){VS.browser.controls.killContextMenu();VS.browser.controls.CopyPasteFunc();};var cP=function(){VS.browser.controls.killContextMenu();VS.browser.controls.LinkPasteFunc();};var Do=function(){VS.browser.controls.killContextMenu();VS.ShowPropertiesDialog(VS.browser.controls.myWin,VS.browser.controls.dbid);};var AO=function(){VS.browser.controls.killContextMenu();VS.browser.controls.AddSubfolder();};var ml=function(){VS.browser.controls.killContextMenu();VS.browser.controls.ShowCreateDocDialog();};var wH=new top.SubMenu(75);var ns=VS.browser.currentFolder;if(VS.isOnLHS()){ns=VS;}wH.AddItem(STR_FOLDER,AO,ns,false);wH.AddItem(STR_DOCUMENT,ml,(ns&&!ns.isRecordSeries),false);if(VS.id==ROOT_FOLDER_ID){Wo.AddItem(nB,iQ,true);Wo.AddItem(STR_FIELDS+"...",BaB,VS.browser.controls.AreFieldsEditable()&&!this.NotReadable);Wo.AddSeparator();Wo.AddItem(STR_PASTE,D0,VS.browser.controls.IsCopyPasteAllowed());Wo.AddItem(STR_PASTE_AS_SHORTCUT,cP,VS.browser.controls.IsLinkPasteAllowed());Wo.AddSeparator();Wo.AddSubMenu(STR_NEW,wH,true);Wo.AddItem(STR_EDIT_ACCESS,Z0,true);Wo.AddItem(STR_PROPERTIES,Do,true);}else{if(VS.toctype=="e"||VS.toctype=="es"){var nb=STR_OPEN_EDOC;nB=STR_OPEN_PAGES;var Wg=function(){VS.browser.controls.killContextMenu();VS.browser.controls.OpenElectFiles();};if(top.autoOpenEdoc){Wo.AddItem(nB,iQ,true);Wo.AddItem(nb,Wg,true,null,false,null,true);}else{Wo.AddItem(nB,iQ,true,null,false,null,true);Wo.AddItem(nb,Wg,true);}Wo.AddItem(STR_FIELDS+"...",BaB,VS.browser.controls.AreFieldsEditable()&&!this.NotReadable);if(VS.isCheckedOut()){Wo.AddSeparator();if(VS.isPlockOwnedByMe){Wo.AddItem(STR_CHECK_IN,IH,!DP);}Wo.AddItem(STR_UNDO_CHECK_OUT,X8,true);Wo.AddItem(STR_CHECK_OUT_DETAILS,IQ,!DP);}else{Wo.AddItem(STR_CHECK_OUT,o9Q,!DP);}}else{var JU=VS.browser.controls.GetSelectedEntries();var Fp=false;for(ww=0;(ww<JU.length)&&(Fp==false);ww++)Fp=JU[ww].NotReadable;Wo.AddItem(nB,iQ,true);Wo.AddItem(STR_FIELDS+"...",BaB,VS.browser.controls.AreFieldsEditable()&&!Fp);}Wo.AddSeparator();Wo.AddItem(STR_CUT,Cu,VS.browser.controls.GetIsMoveAllowed());Wo.AddItem(STR_COPY,L5,true);Wo.AddItem(STR_PASTE,D0,VS.browser.controls.IsCopyPasteAllowed());Wo.AddItem(STR_PASTE_AS_SHORTCUT,cP,VS.browser.controls.IsLinkPasteAllowed());Wo.AddSeparator();if(VS.browser.controls.GetIsDeleteAllowed()){Wo.AddItem(STR_DELETE,Rz,VS.browser.controls.IsDeleteEnabled());}Wo.AddItem(STR_RENAME,BC,!DP);if(VS.isFolder()&&!DP){if(VS.browser.controls.bExportAllowed){var We=function(){VS.browser.controls.killContextMenu();VS.browser.controls.ExportBriefcase();};Wo.AddItem(STR_EXPORT_BRIEFCASE,We,true);}if(VS.browser.controls.bMigrateAllowed){var fi=function(){VS.browser.controls.killContextMenu();VS.browser.controls.ShowMigrateDialog();};Wo.AddItem(STR_MIGRATE,fi,true);}}else if(VS.browser.controls.IsTextExtractionEnabled()){var bP=function(){VS.browser.controls.killContextMenu();VS.browser.controls.ExtractText();};Wo.AddItem(STR_EXTRACT_TEXT,bP,true);}Wo.AddSeparator();Wo.AddSubMenu(STR_NEW,wH,true);Wo.AddItem(STR_EDIT_ACCESS,Z0,!DP);Wo.AddItem(STR_PROPERTIES,Do,!DP);}if(Wo.optionCells[0]){Wo.optionCells[0].focus();}}VS.browser.controls.killContextMenu=function(){Wo.die();VS.browser.controls.killContextMenu=function(){};};VS.browser.controls.lastButtonClicked=null;g.cancelBubble=true;};Folder.prototype.DropChildren=function(Gn,Vp,g,PS3,aK){if(Gn.length>0){var Sr=false;for(ww=0;ww<Gn.length;ww++){if(Gn[ww]==this.id)Sr=true;}if(!Sr){if(PS3&&!top.isLMB(PS3)){this.ShowDropContextMenu(g,Gn,aK);}else{var XQ=new Array();if(!aK&&this.browser.controls.clipboard){for(var ww=0;ww<this.browser.controls.clipboard.length;ww++)XQ[this.browser.controls.clipboard[ww].id]=this.browser.controls.clipboard[ww].parentFolder;if(Vp==MOVE_OP)this.browser.controls.clipboard=null;};this.AddChildren(Vp,Gn);var ww;for(ww in XQ){if((ww!=null)&&(XQ[ww]!=null))XQ[ww].RefreshContents();}XQ=null;}}}};Folder.prototype.AddChildren=function(Vp,sI){var VS=this;if(Vp==MOVE_OP&&!VS.browser.controls.GetIsMoveAllowed()){alert(STR_PERMISSION_DENIED);return;}var Hl=sI.toString();var ju;switch(Vp){case SHORTCUT_OP:ju="CreateShortcut.asp?refentryid="+Hl+"&newparentid="+VS.id+"&dbid="+VS.browser.controls.dbid;break;case MOVE_OP:ju="MoveTOCEntry.asp?entryid="+Hl+"&newparentid="+VS.id+"&dbid="+VS.browser.controls.dbid;break;case COPY_OP:ju="CopyTOCEntry.asp?entryid="+Hl+"&newparentid="+VS.id+"&dbid="+VS.browser.controls.dbid;break;}var tD=top.GetXMLDocument(ju);if(tD){if(Vp==MOVE_OP){var JU=VS.browser.controls.GetSelectedEntries();for(ww=0;ww<JU.length;ww++){if(JU[ww].parentFolder)VS.browser.controls.ShowFolderContents(JU[ww].parentFolder);}if(JU.length>0)if(JU[0].isOnLHS())VS.browser.SetSelectedEntry(JU[0]);}else{var c=tD.documentElement;var rO=c.getElementsByTagName("NewEntryID");for(var ww=0;ww<rO.length;++ww){var _d=rO.item(ww);sI.push(parseInt(_d.text));}}VS.browser.controls.myDocBrowser.RefreshFolderContents(sI);if(VS.browser.controls.mainFolderBrowser){if(VS.browser.controls.mainFolderBrowser.GetSelectedEntries().length>0)VS.browser.controls.mainFolderBrowser.GetSelectedEntries()[0].RefreshContents();}if(VS.isOnLHS()){VS.RefreshContents();}else{if(VS.id!=null){var sC=VS.browser.controls.OpenFolderSub(VS);sC.RefreshContents();}}}};Folder.prototype.Remove=function(){if(this.id==null)return;var VS=this;if(!VS.browser.controls.GetIsDeleteAllowed()){switch(VS.toctype){case"f":case"d":case"e":case"b":alert(STR_PERMISSION_DENIED);return;}}var U3g="DeleteTOCEntry.asp?id="+this.id+"&type="+this.toctype+"&dbid="+this.browser.controls.dbid;if(this.browser.controls.myDocBrowser.currentFolder==this)U3g+="&listinghandle="+this.browser.controls.myDocBrowser.ListingHandle;if(top.GetXMLDocument(U3g))return true;else return false;};Folder.prototype.RefreshWithinTreeView=function(){if(this.browser.controls&&!this.isOnLHS()){if(this.browser.controls.mainFolderBrowser){if(this.browser.controls.mainFolderBrowser.GetSelectedEntries().length>0)this.browser.controls.mainFolderBrowser.GetSelectedEntries()[0].RefreshContents();}}};Folder.prototype.OpenClose=function(S9){if(this.opened)this.HideContents();else this.ShowContents(this.browser,this.browser.GetDBID(),S9);};Folder.prototype.HideContents=function(){if(this.browser.GetSelectedEntries()[0]&&this.browser.GetSelectedEntries()[0].IsChildOf(this)){this.browser.SetSelectedEntry(this);}this.contentsNode.removeChild(this.contentsNode.firstChild);this.children=new Array();this.toggleNode.src=TOGGLE_EXPAND;this.toggleNode.alt=STR_EXPAND;this.opened=false;};Folder.prototype.IsChildOf=function(kh){if(!this.parentFolder)return false;if(this.parentFolder.id==kh.id||this.parentFolder.IsChildOf(kh))return true;};Folder.prototype.HighlightNode=function(){if(this.myRow){this.myRow.className=SEL_FOLDER_ROW_CLASS;if(this.myRow.children.length>1){this.myRow.children[1].tabIndex=0;this.myRow.children[1].focus();}}if(this.isOnLHS()){if(this.isRecordSeries){this.myIcon.src=OPEN_RSFOLDER_ICON;this.myIcon.alt=STR_OPEN_RECORD_SERIES;this.myIcon.width=OPEN_RSFOLDER_ICON_WIDTH;this.myIcon.height=OPEN_RSFOLDER_ICON_HEIGHT;}else if(this.isRecordFolder){this.myIcon.src=OPEN_RFFOLDER_ICON;this.myIcon.alt=STR_OPEN_RECORD_FOLDER;this.myIcon.width=OPEN_RFFOLDER_ICON_WIDTH;this.myIcon.height=OPEN_RFFOLDER_ICON_HEIGHT;}else{this.myIcon.src=OPEN_FOLDER_ICON;this.myIcon.alt=STR_OPEN_FOLDER;this.myIcon.width=OPEN_FOLDER_ICON_WIDTH;this.myIcon.height=OPEN_FOLDER_ICON_HEIGHT;}}};Folder.prototype.GetIsSelected=function(){if(this.myRow)return(this.myRow.className==SEL_FOLDER_ROW_CLASS);else return false;};Folder.prototype.UnHighlightNode=function(){if(this.isOnLHS()){if(this.isRecordSeries){this.myIcon.src=RS_FOLDER_ICON;this.myIcon.width=RS_FOLDER_ICON_WIDTH;this.myIcon.height=RS_FOLDER_ICON_HEIGHT;this.myIcon.alt=STR_RECORD_SERIES;}else if(this.isRecordFolder){this.myIcon.src=RF_FOLDER_ICON;this.myIcon.width=RF_FOLDER_ICON_WIDTH;this.myIcon.height=RF_FOLDER_ICON_HEIGHT;this.myIcon.alt=STR_RECORD_FOLDER;}else{this.myIcon.src=FOLDER_ICON;this.myIcon.width=FOLDER_ICON_WIDTH;this.myIcon.height=FOLDER_ICON_HEIGHT;this.myIcon.alt=STR_FOLDER;}}if(this.myRow){this.myRow.className=this.browser.GetUnhighlightedClass();if(this.myRow.children.length>1){this.myRow.children[1].tabIndex=-1;}}};Folder.prototype.LoseFocus=function(){if(this.myRow)this.myRow.className="GrayHighlightedTOCEntry LabelFont";};Folder.prototype.RefreshContents=function(){var VS=this;if(VS.opened){var v0;if(VS.browser.showDocs)v0="&showdocuments=true";else v0="";var U3g="GetEntryListing.asp?id="+this.id+v0+"&dbid="+this.browser.controls.dbid;var tD=top.GetXMLDocument(U3g);if(tD){var t_=new Array();top.EntriesFromXML(tD,t_);var vy=tD.documentElement.getAttribute("TotalChildren");if(VS.isOnLHS()){VS.compareContents(t_);if(t_.length>0)VS.toggleNode.style.visibility="visible";}else VS.browser.drawFolderContents(VS,t_,vy);}}};Folder.prototype.compareContents=function(JG){var ww;var sRr=new Array();var Gn=new Array();for(ww in JG){var RVa=JG[ww];Gn[RVa.id]=RVa;sRr[RVa.id]=RVa;}for(ww in this.children){var RVa=this.children[ww];if(RVa!=null)sRr[RVa.id]=RVa;}for(ww in sRr){var prN=Gn[ww];var DJ=this.children[ww];if(DJ){if(prN){if(prN.name!=DJ.name||prN.toctype!=DJ.toctype){DJ.RemoveEntry();this.setChild(prN);this.browser.drawEntry(prN,this.myContentsTable);}}else{DJ.RemoveEntry();this.children[ww]=null;}}else{if(prN){this.setChild(prN);this.browser.drawEntry(prN,this.myContentsTable);}}}};Folder.prototype.RemoveEntry=function(){this.myRow.parentNode.removeChild(this.myRow);if(this.childRow)this.childRow.parentNode.removeChild(this.childRow);};Folder.prototype.setChild=function(RVa){this.children[RVa.id]=RVa;RVa.parentFolder=this;};Folder.prototype.SetNameDatum=function(VG){this.nameDatum=VG;this.ShowName();};Folder.prototype.ClearNameDatum=function(){if(this.nameDatum){while(this.nameDatum.childNodes.length>0)this.nameDatum.removeChild(this.nameDatum.childNodes[0]);}this.nameDatum=null;};Folder.prototype.GetNewName=function(GD,T){var VS=this;if(VS.isRecordSeries){VS.browser.controls.ShowRSDialog(VS);return;}if(VS.browser)VS.browser.controls.renaming=true;if(VS.NOBRobj)VS.nameDatum.removeChild(VS.NOBRobj);else VS.nameDatum.removeChild(VS.nameLink);var m3=VS.nameDatum.ownerDocument.createElement("input");m3.type="text";m3.className="LabelFont";m3.onblur=function(){if(VS.browser)VS.browser.controls.renaming=false;var Ln=m3.value;VS.nameDatum.removeChild(m3);VS.ShowName();if(VS.name!=Ln&&Ln!=""){VS.Rename(Ln,T);}if(VS.focusOnName)VS.nameDatum.focus();};VS.nameDatum.onselectstart=function(){};m3.onmouseup=function(g){g=top.getEvent(g,GD.event,false);if(VS.browser&&!top.getLMB(g))VS.browser.controls.showBuiltinContext=true;};m3.onkeydown=function(g){g=top.getEvent(g,GD.event,false);if(g.keyCode==ENTER_KEY_CODE){top.cancelEvent(g);VS.focusOnName=true;m3.blur();}else return g.keyCode;};VS.nameDatum.appendChild(m3);m3.value=VS.name;m3.size=VS.name.length+3;m3.createTextRange().select();m3.focus();};Folder.prototype.ShowName=function(){var VS=this;VS.nameLink=VS.nameDatum.ownerDocument.createElement("a");VS.nameLink.id="link"+VS.id;if(VS.browser.AllowMultilineName()){VS.nameDatum.appendChild(VS.nameLink);}else{VS.NOBRobj=VS.nameDatum.ownerDocument.createElement("nobr");VS.nameDatum.appendChild(VS.NOBRobj);VS.NOBRobj.appendChild(VS.nameLink);}if(VS.isOnLHS())VS.nameLink.className="EntryText TOCEntryNameStyle";else VS.nameLink.className="TOCEntryNameStyle";eJU=VS.nameDatum.ownerDocument.createTextNode(VS.name);VS.nameLink.appendChild(eJU);VS.nameLink.style.cursor="default";VS.nameLink.ondragstart=VS.getDragStartHandler();VS.nameLink.onmousemove=VS.getMouseMoveHandler(VS.nameLink);VS.nameLink.onmouseup=VS.getMouseUpHandler();VS.nameLink.onmousedown=VS.getMouseDownHandler(true);VS.nameLink.ondblclick=VS.getDblClickHandler();VS.nameLink.title=VS.name;VS.nameDatum.onselectstart=function(g){g=top.getEvent(g,VS.browser.myWin.event,true);if(VS.nameLink.dragDrop)VS.nameLink.dragDrop();return false;};if(VS.isFolder()){VS.nameLink.ondragenter=VS.getDragEnterHandler();VS.nameLink.ondragleave=VS.getDragLeaveHandler();VS.nameLink.ondragover=VS.getDragOverHandler();VS.nameLink.ondrop=VS.getDropHandler();}};Folder.prototype.getMouseDownHandler=function(Uh){var VS=this;var bt=function(g){g=top.getEvent(g,VS.browser.myWin.event,false);VS.MouseDownFunc(g,Uh);return true;};return bt;};Folder.prototype.getMouseUpHandler=function(){var VS=this;var bt=function(g){g=top.getEvent(g,VS.browser.myWin.event,false);VS.MouseUpFunc(g);return true;};return bt;};Folder.prototype.getDblClickHandler=function(){var VS=this;var bt=function(){VS.DblClickFunc();return true;};return bt;};Folder.prototype.getMouseMoveHandler=function(mg){var VS=this;var bt=function(g){if(!VS.browser.myWin)return false;g=top.getEvent(g,VS.browser.myWin.event,false);VS.MouseMoveFunc(g);return true;};return bt;};Folder.prototype.getDragOverHandler=function(){var VS=this;var bt=function(g){g=top.getEvent(g,VS.browser.myWin.event,true);if(g.ctrlKey){if(g.shiftKey)g.dataTransfer.dropEffect="link";else g.dataTransfer.dropEffect="copy";}else g.dataTransfer.dropEffect="move";return false;};return bt;};Folder.prototype.getDragEnterHandler=function(){var VS=this;var bt=function(g){g=top.getEvent(g,VS.browser.myWin.event,false);var iv=g.dataTransfer.getData("Text");var LT=VS.browser.controls.GetDragDataType(iv);if(LT==DRAG_FORMAT_TOC_ENTRIES){top.cancelEvent(g);VS.ShowValidTarget();if(g.ctrlKey){if(g.shiftKey)g.dataTransfer.dropEffect="link";else g.dataTransfer.dropEffect="copy";}else g.dataTransfer.dropEffect="move";return false;}else if(LT==DRAG_FORMAT_THUMBNAILS){top.cancelEvent(g);VS.ShowValidTarget();g.dataTransfer.dropEffect="move";return false;}};return bt;};Folder.prototype.getDragLeaveHandler=function(){var VS=this;var bt=function(g){g=top.getEvent(g,VS.browser.myWin.event,true);VS.HideValidTarget();return false;};return bt;};Folder.prototype.getDropHandler=function(){var VS=this;var bt=function(g){g=top.getEvent(g,VS.browser.myWin.event,true);VS.HideValidTarget();VS.DropFunc(g);return false;};return bt;};Folder.prototype.getDragStartHandler=function(){var VS=this;var bt=function(g){g=top.getEvent(g,VS.browser.myWin.event,false);VS.DragStartFunc(g);};return bt;};Folder.prototype.Rename=function(Ln,T){var VS=this;if(Ln!=null){var k7="callbackfunc"+top.callbackNum++;top[k7]=function(JY){VS.name=JY;if(VS.parentFolder&&!VS.isOnLHS()){VS.browser.RefreshFolderContents();}else{if(VS.NOBRobj)VS.nameDatum.removeChild(VS.NOBRobj);else VS.nameDatum.removeChild(VS.nameLink);VS.ShowName();}VS.RefreshWithinTreeView();};VS.browser.controls.renameInput.value=Ln;VS.browser.controls.renameForm.action="RenameTOCEntry.asp?type="+VS.toctype+"&id="+VS.id+"&callback="+k7+"&dbid="+T;VS.browser.controls.renameForm.submit();}};Folder.prototype.SetIcon=function(yZ){this.myIcon=yZ;this.myIcon.id="img"+this.id;if(this.toctype=="es"){if(this.isCheckedOut()){if(this.isPlockOwnedByMe){this.myIcon.src="images/CheckedOutShortcutSelf.gif";}else{this.myIcon.src="images/CheckedOutShortcutOther.gif";}}else{this.myIcon.src="images/EDocShortcut.gif";}this.myIcon.style.backgroundImage="url("+this.imgsrc+")";}else if(this.toctype=="e"){if(this.isCheckedOut()){if(this.isPlockOwnedByMe){this.myIcon.src="images/CheckedOutSelf.gif";}else{this.myIcon.src="images/CheckedOutOther.gif";}this.myIcon.style.backgroundImage="url("+this.imgsrc+")";}else this.myIcon.src=this.imgsrc;}else this.myIcon.src=this.imgsrc;this.myIcon.alt=this.imgalt;this.myIcon.width=this.imgwidth;this.myIcon.height=this.imgheight;this.myIcon.style.cursor="default";this.myIcon.onmousedown=this.getMouseDownHandler();this.myIcon.onmouseup=this.getMouseUpHandler();this.myIcon.ondblclick=this.getDblClickHandler();if(this.isFolder()){this.myIcon.ondragenter=this.getDragEnterHandler();this.myIcon.ondragleave=this.getDragLeaveHandler();this.myIcon.ondragover=this.getDragOverHandler();this.myIcon.ondrop=this.getDropHandler(this.browser.myWin);}this.myIcon.ondragstart=this.getDragStartHandler();if(this.browser.controls){if(this.browser.controls.clipboard&&this.browser.controls.moveOnPaste){for(var ww=0;ww<this.browser.controls.clipboard.length;ww++){if(this.browser.controls.clipboard[ww].id==this.id){this.browser.controls.clipboard[ww]=this;this.DisplayCut();}}}}};Folder.prototype.DisplayCut=function(){if(this.myIcon)this.myIcon.style.filter="Alpha(Opacity=50, Style=0)";};Folder.prototype.DisplayNotCut=function(){if(this.myIcon)this.myIcon.style.filter="";};Folder.prototype.SetToggle=function(yZ){var VS=this;VS.toggleNode=yZ;VS.toggleNode.id="toggle"+this.id;VS.toggleNode.src=TOGGLE_EXPAND;VS.toggleNode.alt=STR_EXPAND;VS.toggleNode.style.cursor="default";VS.toggleNode.onclick=function(){if(VS.OKToOpen())VS.OpenClose();};};Folder.prototype.ShowMetadataDialog=function(FY){var VS=this;if(!top.VerifyConnection(this.browser.controls.dbid))return;var SH;var JU=VS.browser.controls.GetSelectedEntries();var Zu="";var rT="";if(JU.length>1)for(ww=0;ww<JU.length;ww++){if(ww>0){Zu+=";";rT+=";";}Zu+=JU[ww].id;rT+=JU[ww].toctype;}else{Zu=VS.id;rT=VS.toctype;}var s6="FieldPopup.asp?";if(FY){s6=s6+FY+"=1&";}s6=s6+"ids="+Zu+"&types="+rT+"&dbid="+VS.browser.controls.dbid;var UD=new Object;UD.window=top.window;var GKs=top.lfShowModalDialog(this.browser.controls.myWin,s6,UD,"help:no;scroll:no;status:no",2);if(!top.VerifyConnection(this.browser.controls.dbid))return;if(GKs>0)SH="SavePage.asp";else if(GKs==0)SH="ClosePage.asp";SH+="?ids="+Zu+"&types="+rT+"&closedoc=true"+"&dbid="+VS.browser.controls.dbid;if(top.GetXMLDocument(SH)){if(!VS.isOnLHS()&&GKs){VS.browser.RefreshFolderContents();}}};Folder.prototype.ShowAccessDialog=function(){if(!top.VerifyConnection(this.browser.controls.dbid))return;if(top.lfShowModalDialog(this.browser.controls.myWin,"AccessPopup.asp?id="+this.id+"&dbid="+this.browser.controls.dbid,null,"help:no;scroll:no;status:no")&&!this.isOnLHS())this.browser.RefreshFolderContents();};Folder.prototype.PropagateRights=function(){if(confirm(top.STR_CONFIRM_PROPAGATE_RIGHTS))top.GetXMLDocument("PropagateRights.asp?id="+this.id+"&dbid="+this.browser.controls.dbid);};Folder.prototype.ShowSensitivityDialog=function(){if(!top.VerifyConnection(this.browser.controls.dbid))return;var VS=this;var m2="callback"+top.callbackNum++;var SH;if(top.lfShowModalDialog(this.browser.controls.myWin,"SensitivityPopup.asp?id="+VS.id+"&toctype="+VS.toctype+"&dbid="+VS.browser.controls.dbid,null,"help:no;scroll:no;status:no"))SH="SavePage.asp";else SH="ClosePage.asp";SH+="?id="+VS.id+"&toctype="+VS.toctype+"&closedoc=true"+"&callback="+m2+"&dbid="+VS.browser.controls.dbid;top.GetXMLDocument(SH);};Folder.prototype.ShowPropertiesDialog=function(GD,T){if(!top.VerifyConnection(T))return;var an;if(this.toctype.indexOf('s')>=0){an=this.targetid;}else{an=this.id;}var hf;var qC;if(this.isFolder())qC=0;else qC=1;var VD2="";if(this.isRecordSeries)VD2+="&isrs=true";else if(this.isRecordFolder)VD2+="&isrf=true";top.lfShowModalDialog(GD,"PropertiesPopup.asp?id="+an+"&toctype="+this.toctype+"&dbid="+T+VD2,null,"help:no;scroll:no;status:no;",qC);};Folder.prototype.ShowReviewDateDialog=function(){if(!top.VerifyConnection(this.browser.controls.dbid))return;var JU=this.browser.controls.GetSelectedEntries();var Zu="";if(JU.length>1){for(ww=0;ww<JU.length;ww++){if(ww>0){Zu+=";";}Zu+=JU[ww].id;}}else{Zu=this.id;}top.lfShowModalDialog(this.browser.controls.myWin,"ReviewDatePopup.asp?ids="+Zu+"&toctype="+this.toctype+"&dbid="+this.browser.controls.dbid,null,"help:no;scroll:no;status:no");};Folder.prototype.ShowFrozenDialog=function(){if(!top.VerifyConnection(this.browser.controls.dbid))return;var JU=this.browser.controls.GetSelectedEntries();var Zu="";var b4=0;if(JU.length>1){b4=1;for(ww=0;ww<JU.length;ww++){if(ww>0){Zu+=";";}Zu+=JU[ww].id;}}else{Zu=this.id;}if(top.lfShowModalDialog(this.browser.controls.myWin,"FrozenPopup.asp?ids="+Zu+"&dbid="+this.browser.controls.dbid,null,"help:no;scroll:no;status:no",b4))this.browser.controls.myDocBrowser.RefreshFolderContents();};Folder.prototype.ShowRecordActionsDialog=function(){if(!top.VerifyConnection(this.browser.controls.dbid))return;var U3g="RecordActionsPopup.asp?id="+this.id+"&dbid="+this.browser.controls.dbid;if(this.browser.controls.myDocBrowser.currentFolder==this)U3g+="&listinghandle="+this.browser.controls.myDocBrowser.ListingHandle;var ob=top.lfShowModalDialog(this.browser.controls.myWin,U3g,this.browser.controls.myWin,"help:no;scroll:no;status:no");if(ob&&this.browser.controls.myDocBrowser.currentFolder==this){this.browser.controls.mainFolderBrowser.OpenParentFolder();this.browser.controls.mainFolderBrowser.GetSelectedEntries()[0].RefreshContents();}else{if(this.GetIsSelected()&&!this.isOnLHS()){var A6=new Array();A6.push(this.id);this.browser.controls.myDocBrowser.RefreshFolderContents(A6);}if(this.browser.controls.mainFolderBrowser.GetSelectedEntries().length>0){this.browser.controls.mainFolderBrowser.GetSelectedEntries()[0].RefreshContents();this.browser.controls.myDocBrowser.RefreshFolderContents();}}};Folder.prototype.ExportBriefcase=function(){if(!top.VerifyConnection(this.browser.controls.dbid))return;if(this.browser.controls.exportAudited){if(!top.lfShowModalDialog(window,"AuditReasonPopup.asp?event="+this.browser.controls.exportAudited+"&dbid="+this.browser.controls.dbid,null,"help:no;scroll:no;status:no"))return;}window.open("ExportBriefcase.asp?folderid="+this.id+"&dbid="+this.browser.controls.dbid+"&/"+encodeURIComponent(this.name)+".lfb");};Folder.prototype.PrintFilePlan=function(T){if(!top.VerifyConnection(T))return;window.open("RMFilePlan.asp?folderid="+this.id+"&dbid="+T);};Folder.prototype.ShowValidTarget=function(){if(this.isOnLHS())this.nameLink.className="ValidTarget EntryText TOCEntryNameStyle";else this.nameLink.className="ValidTarget TOCEntryNameStyle";};Folder.prototype.HideValidTarget=function(){if(this.isOnLHS())this.nameLink.className="EntryText TOCEntryNameStyle";else this.nameLink.className="TOCEntryNameStyle";};Folder.prototype.ClearContentsNode=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){Folder.prototype.ClearContentsNode(v5.childNodes[ww]);}if(v5.tagName=="TD"){v5.onkeypress=null;}v5.parentNode.removeChild(v5);};Folder.prototype.ClearContentsArray=function(SG,fT){if(SG&&(SG.length>0)){while(SG&&SG.length){var N0V=SG.pop();if(fT)N0V.ReleaseDOMElements();}}SG=null;};Folder.prototype.ReleaseDOMElements=function(){var VS=this;VS.finishedFunc=null;if(VS.domdoc1){delete VS.domdoc1;VS.domdoc1=null;}if(VS.domdoc2){delete VS.domdoc2;VS.domdoc2=null;}if(VS.nameLink!=null){VS.nameLink.id=null;VS.nameLink.ondragstart=null;VS.nameLink.onmousemove=null;VS.nameLink.onmouseup=null;VS.nameLink.onmousedown=null;VS.nameLink.ondblclick=null;VS.nameLink.title=null;VS.nameLink.ondragenter=null;VS.nameLink.ondragleave=null;VS.nameLink.ondragover=null;VS.nameLink.ondrop=null;while(VS.nameLink.childNodes.length>0)VS.nameLink.removeChild(VS.nameLink.childNodes[0]);VS.nameLink=null;}Folder.prototype.ClearContentsArray(VS.ContentsArrayTree,true);Folder.prototype.ClearContentsArray(VS.ContentsArray,true);VS.NOBRobj=null;VS.myContentsTable=null;if(VS.contentsNode){Folder.prototype.ClearContentsNode(VS.contentsNode);VS.contentsNode=null;}VS.childRow=null;if(VS.myIcon){VS.myIcon.alt=null;VS.myIcon.width=null;VS.myIcon.height=null;VS.myIcon.style.cursor=null;VS.myIcon.onmousedown=null;VS.myIcon.onmouseup=null;VS.myIcon.ondblclick=null;VS.myIcon.ondragenter=null;VS.myIcon.ondragleave=null;VS.myIcon.ondragover=null;VS.myIcon.ondrop=null;VS.myIcon.ondragstart=null;VS.myIcon.src=null;VS.myIcon=null;}if(VS.toggleNode){VS.toggleNode.onclick=null;VS.toggleNode=null;}if(this.nameDatum){VS.nameDatum.onselectstart=null;VS.nameDatum.onkeypress=null;while(VS.nameDatum.childNodes.length>0)VS.nameDatum.removeChild(VS.nameDatum.childNodes[0]);VS.nameDatum=null;}if(VS.children&&VS.children.length)VS.children=new Array();VS.folderSize=null;if(VS.myRow){if(VS.myRow.children.length>1&&VS.myRow.children[1]){VS.myRow.children[1].onkeydown=null;VS.myRow.children[1].onkeypress=null;}}VS.myRow=null;VS.name=null;VS.toctype=null;VS.targetid=null;VS.opened=null;VS.displayRow=null;VS.columndata=null;VS.imgsrc=null;VS.imgalt=null;VS.imgwidth=null;VS.imgheight=null;VS.templateID=null;VS.isRecordSeries=null;VS.isRecordFolder=null;VS.pLockOwner=null;VS.isPlockOwnedByMe=null;VS.bOKToOpen=null;};var FOLDER_BROWSER_X_OFFSET=0;var FOLDER_BROWSER_Y_OFFSET=87;function FolderBrowser(RP,Xs,GD,zt,i,T,CR,xs){var o8=this;o8.showDocs=Xs;o8.myWin=GD;o8.dbid=T;o8.useControls=CR;o8.clickFirer=zt;o8.DeselectTOCObj=function(){};o8.selectedEntries=new Array();top.autoOpenEdoc=xs;o8.SetBrowseControls=function(fb,K){if(K&&(K!=ROOT_FOLDER_ID)){var tD=top.GetXMLDocument("GetLinkToPath.asp?id="+K+"&dbid="+o8.GetDBID());if(tD){var Ws=new Array();var Bqp=tD.documentElement.getElementsByTagName("NoRights");if(Bqp.length>0){var v5=tD.documentElement.getElementsByTagName("Entry").item(0);this.topFolder=new top.Folder(v5.getAttribute("Name"),'f',K,K,v5.getAttribute("ImgSrc"),v5.getAttribute("ImgAlt"),v5.getAttribute("ImgWidth"),v5.getAttribute("ImgHeight"),0,0,v5.getAttribute("IsRecordSeries"),v5.getAttribute("IsRecordFolder"));}else{top.EntriesFromXML(tD,Ws);this.topFolder=new top.Folder(i,'f',ROOT_FOLDER_ID,ROOT_FOLDER_ID,FOLDER_ICON,STR_FOLDER,FOLDER_ICON_WIDTH,FOLDER_ICON_HEIGHT);}o8.controls=fb;o8.drawEntry(this.topFolder,RP);if(Bqp.length>0)this.SetSelectedEntry(this.topFolder);else o8.controls.OpenFolderPath(Ws);}}else{o8.topFolder=new top.Folder(i,'f',ROOT_FOLDER_ID,ROOT_FOLDER_ID,FOLDER_ICON,STR_FOLDER,FOLDER_ICON_WIDTH,FOLDER_ICON_HEIGHT);o8.controls=fb;o8.drawEntry(o8.topFolder,RP,true);o8.SetSelectedEntry(o8.topFolder);o8.topFolder.OpenClose();}};var io=function(g){g=top.getEvent(g,o8.myWin.event,false);if(o8.controls){o8.controls.BrowseMenu.HideMenu();if(o8.controls.lastButtonClicked!=null){o8.controls.lastButtonClicked=null;}else{o8.controls.FocusOnFolderBrowser();o8.controls.killContextMenu();}}};zt.onclick=io;zt.onscroll=function(){if(o8.controls)o8.controls.killContextMenu();};zt.oncontextmenu=function(g){if(o8.controls){if(!o8.controls.showBuiltinContext){g=top.getEvent(g,o8.myWin.event,true);if(o8.selectedEntries.length>0){o8.selectedEntries[0].ShowDropContextMenu(g,null,null,true);}}else o8.controls.showBuiltinContext=false;}};RP.ownerDocument.onkeydown=function(g){if(o8.controls)return o8.controls.KeyPress(g,GD);};GD.onunload=function(){o8.showDocs=null;o8.myWin=null;o8.dbid=null;o8.useControls=null;o8.DeselectTOCObj=null;o8.clickFirer=null;o8.controls=null;o8.topFolder.ReleaseDOMElements();FolderBrowser.prototype.RemoveChildren(RP);if(o8.selectedEntries!=null){while(o8.selectedEntries.length){o8.selectedEntries.pop();}o8.selectedEntries=null;}zt.onclick=null;zt.onscroll=null;zt.oncontextmenu=null;RP.ownerDocument.onkeydown=null;o8.SetBrowseControls=null;GD.onunload=null;o8.topFolder=null;};}FolderBrowser.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){FolderBrowser.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="TD"){v5.onkeypress=null;v5.onkeydown=null;}v5.parentNode.removeChild(v5);};FolderBrowser.prototype.allowsDragging=function(){return false;};FolderBrowser.prototype.FoldersOpenInFrame=function(){return true;};FolderBrowser.prototype.AllowMultilineName=function(){return true;};FolderBrowser.prototype.WaitingForControls=function(){if(this.controls||!this.useControls)return false;else return true;};FolderBrowser.prototype.GetUnhighlightedClass=function(){return"";};FolderBrowser.prototype.GetDBID=function(){return this.dbid;};FolderBrowser.prototype.getXWinOffset=function(){return FOLDER_BROWSER_X_OFFSET;};FolderBrowser.prototype.getYWinOffset=function(){return FOLDER_BROWSER_Y_OFFSET;};FolderBrowser.prototype.AddEntry=function(RVa){RVa.browser=this;};FolderBrowser.prototype.drawEntry=function(RVa,LD){var o8=this;var RX=LD.ownerDocument;var IE,cO,VG,Fi;var eJU,yp,VN,HR,EK;this.AddEntry(RVa);IE=RX.createElement("tr");IE.id="row"+RVa.id;RVa.myRow=IE;LD.appendChild(IE);cO=RX.createElement("td");cO.id=RVa.toctype+RVa.id+"cell";cO.className="FolderBrowseTable";IE.appendChild(cO);ze=RX.createElement("td");ze.id="nameCell"+RVa.id;ze.className="FolderBrowseTable";IE.appendChild(ze);var VG=RX.createElement("nobr");if(top.ie){MF=RX.createElement("div");MF.id="nameDiv"+RVa.id;MF.style.position="relative";ze.appendChild(MF);MF.appendChild(VG);}else ze.appendChild(VG);var qQ=RX.createElement("img");RVa.SetIcon(qQ);VG.appendChild(qQ);VG.className="LabelFont";var kw=RX.createElement("img");RVa.SetToggle(kw);cO.appendChild(kw);cO.onkeypress=function(g){g=top.getEvent(g,o8.myWin.event,false);if(g.keyCode==ENTER_KEY_CODE){top.cancelEvent(g);kw.click();}};function ed(UV){var bT=null;if(RVa.parentFolder){for(ww=0;ww<RVa.parentFolder.ContentsArray.length;ww++){if(RVa.parentFolder.ContentsArray[ww].id==RVa.id)break;bT=RVa.parentFolder.ContentsArray[ww];}if((bT!=null)&&!UV){do{if(bT.opened&&(bT.children!=null)&&(bT.children.length!=0)){for(f8u in bT.children);bT=bT.children[f8u];}else break;}while(1==1);o8.SetSelectedEntry(bT,true);}else{o8.SetSelectedEntry(RVa.parentFolder,true);}}}function Xu(UV){var bT=null;if(RVa.opened&&(RVa.children!=null)&&(RVa.children.length!=0)){for(f8u in RVa.children){o8.SetSelectedEntry(RVa.children[f8u],true);break;}}else if(!UV){XHk=RVa;do{for(ww=0;ww<XHk.parentFolder.ContentsArray.length;ww++)if((XHk.parentFolder.ContentsArray[ww].id==XHk.id)&&((ww+1)!=XHk.parentFolder.ContentsArray.length))bT=XHk.parentFolder.ContentsArray[++ww];if(bT!=null){o8.SetSelectedEntry(bT,true);break;}else{XHk=XHk.parentFolder;if(XHk.parentFolder==null){break;}}}while(1==1);}}ze.onkeydown=function(g){g=top.getEvent(g,o8.myWin.event,false);if(g.keyCode==ENTER_KEY_CODE){RVa.OpenClose();}else if(g.keyCode==LEFT_ARROW_KEY_CODE){if(RVa.OKToOpen()&&RVa.opened)RVa.OpenClose();else ed(true);g.cancelBubble=true;g.returnValue=false;}else if(g.keyCode==RIGHT_ARROW_KEY_CODE){if(RVa.OKToOpen()&&!RVa.opened)RVa.OpenClose();else Xu(true);g.cancelBubble=true;g.returnValue=false;}else if(g.keyCode==UP_ARROW_KEY_CODE){ed(false);g.cancelBubble=true;g.returnValue=false;}else if(g.keyCode==DOWN_ARROW_KEY_CODE){Xu(false);g.cancelBubble=true;g.returnValue=false;}};RVa.SetNameDatum(VG);VN=RX.createElement("tr");LD.appendChild(VN);RVa.childRow=VN;Fi=RX.createElement("td");Fi.className="FolderBrowseTable";VN.appendChild(Fi);HR=RX.createElement("td");HR.id="contentsCell"+RVa.id;HR.className="LabelFont";RVa.contentsNode=HR;VN.appendChild(HR);IE=null;cO=null;VG=null;Fi=null;eJU=null;yp=null;VN=null;HR=null;EK=null;};FolderBrowser.prototype.drawFolderContents=function(G,t_,vy){var UP=G.contentsNode;var RX=UP.ownerDocument;var Vn,LD;Vn=RX.createElement("table");Vn.id=G.id+"table";Vn.cellSpacing=0;Vn.cellPadding=0;LD=RX.createElement("tbody");Vn.appendChild(LD);G.myContentsTable=LD;G.opened=true;G.toggleNode.src=TOGGLE_CONTRACT;G.toggleNode.alt=STR_COLLAPSE;if(vy==0)G.toggleNode.style.visibility="hidden";if(vy==0||t_.length>0){for(ww=0;ww<t_.length;ww++){var RVa=t_[ww];G.setChild(RVa);this.drawEntry(RVa,LD);}}else{var IE=RX.createElement("tr");var BK=RX.createElement("td");BK.colSpan=2;BK.className="EntryText TOCEntryNameStyle";LD.appendChild(IE).appendChild(BK).appendChild(RX.createElement("nobr")).appendChild(RX.createTextNode(top.STR_TREE_BRANCH_PLACEHOLDER.replace("{0}",vy)));}UP.appendChild(Vn);};FolderBrowser.prototype.SetSelectedEntry=function(RVa,dB){var o8=this;this.SelectNoEntries();this.AddSelectedEntry(RVa);if(this.controls){if(top.loadEntriesTimerID!=null){window.clearTimeout(top.loadEntriesTimerID);top.loadEntriesTimerID=null;top.loadEntriesFunction=null;}if(dB){top.loadEntriesFunction=function(){top.loadEntriesTimerID=null;top.loadEntriesFunction=null;o8.controls.ShowFolderContents(RVa);};top.loadEntriesTimerID=window.setTimeout("top.loadEntriesFunction()",500);}else{o8.controls.ShowFolderContents(RVa);}}};FolderBrowser.prototype.AddSelectedEntry=function(RVa){var vtB=false;var ww;for(ww=0;ww<this.selectedEntries.length;ww++){if(this.selectedEntries[ww].id==RVa.id)vtB=true;}if(!vtB)this.selectedEntries.push(RVa);this.RequestFocus();this.GetFocus();};FolderBrowser.prototype.SelectNoEntries=function(RVa){while(this.selectedEntries.length){var W_o=this.selectedEntries.pop();W_o.UnHighlightNode();}if(this.controls)this.controls.SetMultiSelectCount(0);this.IDsOfEntriesToSelect=null;this.PendingIDsToSelect=null;};FolderBrowser.prototype.GetSelectedEntries=function(){return this.selectedEntries;};FolderBrowser.prototype.UnSelectEntry=function(RVa){var Rf,ww;for(ww=0;ww<this.selectedEntries.length;ww++){if(this.selectedEntries[ww].id==RVa.id)Rf=ww;}RVa.UnHighlightNode();if(Rf==0||Rf)this.selectedEntries.splice(Rf,1);this.controls.SetMultiSelectCount(this.selectedEntries.length);for(ww=0;ww<this.selectedEntries.length;ww++)this.selectedEntries[ww].HighlightNode();};FolderBrowser.prototype.LoseFocus=function(){var ww;for(ww=0;ww<this.selectedEntries.length;ww++){this.selectedEntries[ww].LoseFocus();}if(this.controls)this.controls.SetMultiSelectCount(0);};FolderBrowser.prototype.RequestFocus=function(){if(this.controls)this.controls.FocusOnFolderBrowser();};FolderBrowser.prototype.GetFocus=function(){if(this.controls)this.controls.SetMultiSelectCount(this.selectedEntries.length);for(ww=0;ww<this.selectedEntries.length;ww++){this.selectedEntries[ww].HighlightNode();}};FolderBrowser.prototype.OpenParentFolder=function(){if(this.GetSelectedEntries()[0]&&this.GetSelectedEntries()[0].parentFolder)this.SetSelectedEntry(this.GetSelectedEntries()[0].parentFolder);};var oZ=4;var fm=2;function Highlight(n5,et,rI,F,fb,f6Z){var Hy=this;Hy.controls=fb;Hy.yHandle=n5;Hy.xHandle=et;Hy.type=rI;Hy.id=F;Hy.color=f6Z;var UW=Hy.controls.annotDiv.ownerDocument.createElement("DIV");UW.style.position="absolute";UW.style.left=et;UW.style.top=n5;UW.style.width="0px";UW.style.height="0px";UW.id=Hy.id+"div";Hy.myDiv=UW;Hy.myImage=UW;Hy.SetHLDivNormal();if(Hy.controls.annotsEditable){UW.style.cursor="crosshair";Hy.SetMoveHandler();}var yhM=UW.ownerDocument.createElement("img");yhM.src="spacer.gif";UW.appendChild(yhM);Hy.controls.annotDiv.appendChild(UW);}Highlight.prototype.setDragHandle=function(g){this.xHandle=top.getOffsetX(g);this.yHandle=top.getOffsetY(g);};Highlight.prototype.SetMoveHandler=function(){var Hy=this;Hy.myDiv.onmousedown=function(g){g=top.getEvent(g,Hy.controls.imageWin.event,true);Hy.setDragHandle(g);Hy.controls.catchHLResize=false;Hy.controls.imageDiv.onmousemove=function(qG){qG=top.getEvent(qG,Hy.controls.imageWin.event,true);return Hy.DragMe(g);};Hy.controls.imageDiv.onmouseup=function(qG){qG=top.getEvent(qG,Hy.controls.imageWin.event,true);this.onmousemove=null;this.onmouseup=null;Hy.controls.catchHLResize=true;return Hy.FinishDrawing();};return false;};Hy.myDiv.onmousemove=function(g){g=top.getEvent(g,Hy.controls.imageWin.event,false);return Hy.SetResizeCursor(g);};};Highlight.prototype.Select=function(){var Hy=this;Hy.controls.DeselectItem();if(Hy.type==ANN_HIGHLIGHT){Hy.controls.highlightColorMenu.SelectColor("#"+Hy.color,Hy.color);Hy.controls.highlightColorMenu.OnSelectedColorChanged=function(){Hy.color=Hy.controls.highlightColorMenu.GetSelectedValue();if(top.GetXMLDocument(Hy.GenerateRecordFrameSrc())){Hy.myDiv.style.backgroundColor="#"+Hy.color;Hy.controls.SetDirty();}};Hy.controls.DeselectItem=function(){Hy.SetHLDivNormal();Hy.controls.highlightColorMenu.OnSelectedColorChanged=function(){Hy.controls.SetAnnotationType(ANN_HIGHLIGHT);};};}else if(Hy.type==ANN_BLACKOUTIMAGE){Hy.controls.redactionColorMenu.SelectColor("#"+Hy.color,Hy.color);Hy.controls.redactionColorMenu.OnSelectedColorChanged=function(){Hy.color=Hy.controls.redactionColorMenu.GetSelectedValue();if(top.GetXMLDocument(Hy.GenerateRecordFrameSrc())){if(Hy.color=="FFFFFF"){Hy.myDiv.style.backgroundColor="#C0C0C0";}else{Hy.myDiv.style.backgroundColor="black";}Hy.controls.SetDirty();}};Hy.controls.DeselectItem=function(){Hy.SetHLDivNormal();Hy.controls.redactionColorMenu.OnSelectedColorChanged=function(){Hy.controls.SetAnnotationType(ANN_BLACKOUTIMAGE);};};}else{Hy.controls.DeselectItem=function(){Hy.SetHLDivNormal();};}var o9=function(){if(confirm(top.STR_CONFIRM_DELETE_ANNOT)){Hy.Remove();return true;}else return false;};Hy.controls.SetDeleteFun(o9);Hy.SetHLDivSelected();Hy.controls.imageDiv.onmousedown=function(g){Hy.controls.DeselectItem();Hy.controls.DisableDelete();if(Hy.controls.AddAnnotFun){g=top.getEvent(g,Hy.controls.imageWin.event,false);return Hy.controls.AddAnnotFun(g);}};};Highlight.prototype.SetHLDivSelected=function(){if(top.ie){this.myDiv.style.filter="Alpha(Opacity=50, Style=0)";this.myDiv.style.border="2px solid red";if(this.type==ANN_HIGHLIGHT)this.myDiv.style.backgroundColor="#"+this.color;}else{if(this.type==ANN_HIGHLIGHT)this.myDiv.style.backgroundImage='url(selhighlight.gif)';else if(this.type==ANN_BLACKOUTIMAGE)this.myDiv.style.backgroundImage='url(selblackout.gif)';}};Highlight.prototype.SetHLDivNormal=function(){if(top.ie){this.myDiv.style.filter="Alpha(Opacity=50, Style=0)";if(this.type==ANN_HIGHLIGHT)this.myDiv.style.backgroundColor="#"+this.color;else if(this.type==ANN_BLACKOUTIMAGE){if(this.color=="000000")this.myDiv.style.backgroundColor="black";else this.myDiv.style.backgroundColor="#C0C0C0";}this.myDiv.style.border="";}else{if(this.type==ANN_HIGHLIGHT)this.myDiv.style.backgroundImage='url(highlight.gif)';else if(this.type==ANN_BLACKOUTIMAGE)this.myDiv.style.backgroundImage='url(blackout.gif)';}};Highlight.prototype.SetResizeCursor=function(g){if(this.controls.catchHLResize){top.cancelEvent(g);var rC=false;var CkC=false;var qGc=false;var Xwq=false;if(top.getOffsetY(g)<oZ)rC=true;else if(top.getOffsetY(g)>parseInt(this.myDiv.style.height)-oZ)qGc=true;if(top.getOffsetX(g)<oZ)Xwq=true;else if(top.getOffsetX(g)>parseInt(this.myDiv.style.width)-oZ)CkC=true;if(rC){if(CkC)this.myDiv.style.cursor="ne-resize";else if(Xwq)this.myDiv.style.cursor="nw-resize";else this.myDiv.style.cursor="n-resize";}else if(qGc){if(CkC)this.myDiv.style.cursor="se-resize";else if(Xwq)this.myDiv.style.cursor="sw-resize";else this.myDiv.style.cursor="s-resize";}else if(CkC)this.myDiv.style.cursor="e-resize";else if(Xwq)this.myDiv.style.cursor="w-resize";else this.myDiv.style.cursor="move";return false;}};Highlight.prototype.Move=function(l0,q_){if(this.myDiv.style.cursor=="move"){var errM=parseInt(this.myDiv.style.top)+q_;if(errM<0)this.myDiv.style.top="0px";else if(errM+this.GetHeight()>parseInt(this.controls.imageTag.clientHeight))this.myDiv.style.top=parseInt(this.controls.imageTag.clientHeight)-this.GetHeight();else this.myDiv.style.top=errM;var _v=parseInt(this.myDiv.style.left)+l0;if(_v<0)this.myDiv.style.left="0px";else if(_v+this.GetWidth()>parseInt(this.controls.imageTag.clientWidth))this.myDiv.style.left=parseInt(this.controls.imageTag.clientWidth)-this.GetWidth();else this.myDiv.style.left=_v;}else{switch(this.myDiv.style.cursor){case"n-resize":case"ne-resize":case"nw-resize":if(parseInt(this.myDiv.style.height)-q_<fm)q_=parseInt(this.myDiv.style.height)-fm;if(parseInt(this.myDiv.style.top)+q_<0)q_=0-parseInt(this.myDiv.style.top);this.myDiv.style.top=parseInt(this.myDiv.style.top)+q_;this.myDiv.style.height=parseInt(this.myDiv.style.height)-q_;break;case"s-resize":case"se-resize":case"sw-resize":if(this.yHandle+q_<fm)q_=fm-this.yHandle;this.myDiv.style.height=this.yHandle+q_;}switch(this.myDiv.style.cursor){case"w-resize":case"nw-resize":case"sw-resize":if(parseInt(this.myDiv.style.width)-l0<fm)l0=parseInt(this.myDiv.style.width)-fm;if(parseInt(this.myDiv.style.left)+l0<0)l0=0-parseInt(this.myDiv.style.left);this.myDiv.style.left=parseInt(this.myDiv.style.left)+l0;this.myDiv.style.width=parseInt(this.myDiv.style.width)-l0;break;case"e-resize":case"ne-resize":case"se-resize":if(this.xHandle+l0<fm)l0=fm-this.xHandle;this.myDiv.style.width=this.xHandle+l0;}}top.dbtext1.value=this.myDiv.style.left;top.dbtext2.value=this.myDiv.style.top;};Highlight.prototype.DragMe=function(g){var l0,q_;var JC=top.getFirer(g);if(JC==this.controls.imageTag){l0=top.getOffsetX(g)-(parseInt(this.myDiv.style.left)+this.xHandle);q_=top.getOffsetY(g)-(parseInt(this.myDiv.style.top)+this.yHandle);}else{if(JC==this.myImage){l0=top.getOffsetX(g)-this.xHandle;q_=top.getOffsetY(g)-this.yHandle;}else{if(JC.parentNode){var q7=top.getOffsetX(g);var hT=top.getOffsetY(g);while(JC&&(JC.parentNode!=this.controls.annotDiv)){if(JC.style&&(JC.style.left.length>0))q7+=parseInt(JC.style.left);if(JC.style&&(JC.style.top.length>0))hT+=parseInt(JC.style.top);JC=JC.parentNode;}if(JC){l0=(q7+parseInt(JC.style.left))-(parseInt(this.myDiv.style.left)+this.xHandle);q_=(hT+parseInt(JC.style.top))-(parseInt(this.myDiv.style.top)+this.yHandle);}else{l0=0;q_=0;}}else{l0=0;q_=0;}}}this.Move(l0,q_);return false;};Highlight.prototype.ContinueDrawing=function(g){var l0,q_;var JC;l0=top.getOffsetX(g)-this.xHandle;q_=top.getOffsetY(g)-this.yHandle;JC=top.getFirer(g);if(JC!=this.controls.imageTag){if(JC.style.left.length>0&&JC.style.top.length>0){l0+=parseInt(JC.style.left);q_+=parseInt(JC.style.top);}else return false;}this.Draw(l0,q_);return false};Highlight.prototype.FinishDrawing=function(){var Hy=this;if((parseInt(Hy.myDiv.style.height)>=fm)&&(parseInt(Hy.myDiv.style.width)>=fm)){if(top.GetXMLDocument(Hy.GenerateRecordFrameSrc())){Hy.Select();Hy.controls.SetDirty();}}};Highlight.prototype.Draw=function(l0,q_){var Jh,o4;var _v,errM;if(l0<0){_v=this.xHandle+l0;o4=0-l0;}else{_v=this.xHandle;o4=l0;}if(q_<0){errM=this.yHandle+q_;Jh=0-q_;}else{errM=this.yHandle;Jh=q_;}this.myDiv.style.left=_v+"px";this.myDiv.style.top=errM+"px";this.myDiv.style.width=o4+"px";this.myDiv.style.height=Jh+"px";};Highlight.prototype.RemoveFromDisplay=function(){this.controls.ClearHighlights();this.controls.ClearText();this.controls.ShowAnnotations(true,false);this.controls.LoadText();};Highlight.prototype.Remove=function(){var Hy=this;if(top.GetXMLDocument("RemoveAnnotation.asp?docid="+this.controls.docid+"&page="+this.controls.pagenum+"&annotid="+this.id+"&type="+this.type+"&dbid="+this.controls.dbid)){Hy.RemoveFromDisplay();Hy.controls.SetDirty();Hy.controls.DeselectItem=function(){};}};Highlight.prototype.GenerateRecordFrameSrc=function(){return("RecordImageHighlight.asp?docid="+this.controls.docid+"&page="+this.controls.pagenum+"&annotid="+this.id+"&left="+parseInt(this.myDiv.style.left)+"&top="+parseInt(this.myDiv.style.top)+"&width="+parseInt(this.myDiv.style.width)+"&height="+parseInt(this.myDiv.style.height)+"&type="+this.type+"&scale="+this.controls.scale+"&dbid="+this.controls.dbid+"&color="+this.color);};Highlight.prototype.GetHeight=function(){return parseInt(this.myDiv.clientHeight);};Highlight.prototype.GetWidth=function(){return parseInt(this.myDiv.clientWidth);};Highlight.prototype.ReleaseDOMElements=function(){if(this.myDiv){this.myDiv.onmousedown=null;this.myDiv.onmousemove=null;this.myDiv=null;}if(this.controls){this.controls.imageDiv.onmouseup=null;this.controls.imageDiv.onmousemove=null;this.controls=null;}};var BACK_KEY_CODE=8;var TAB_KEY_CODE=9;var ENTER_KEY_CODE=13;var SHIFT_KEY_CODE=16;var ESCAPE_KEY_CODE=27;var SPACE_BAR_KEY_CODE=32;var LEFT_ARROW_KEY_CODE=37;var UP_ARROW_KEY_CODE=38;var RIGHT_ARROW_KEY_CODE=39;var DOWN_ARROW_KEY_CODE=40;var DELETE_KEY_CODE=46;var PGUP_KEY_CODE=33;var PGDN_KEY_CODE=34;var MAIN_0_KEY_CODE=48;var MAIN_1_KEY_CODE=49;var MAIN_2_KEY_CODE=50;var MAIN_3_KEY_CODE=51;var MAIN_4_KEY_CODE=52;var MAIN_5_KEY_CODE=53;var MAIN_6_KEY_CODE=54;var MAIN_7_KEY_CODE=55;var MAIN_8_KEY_CODE=56;var MAIN_9_KEY_CODE=57;var A_KEY_CODE=65;var B_KEY_CODE=66;var C_KEY_CODE=67;var G_KEY_CODE=71;var H_KEY_CODE=72;var I_KEY_CODE=73;var N_KEY_CODE=78;var R_KEY_CODE=82;var S_KEY_CODE=83;var U_KEY_CODE=85;var V_KEY_CODE=86;var X_KEY_CODE=88;var Z_KEY_CODE=90;var PAD_0_KEY_CODE=96;var PAD_1_KEY_CODE=97;var PAD_2_KEY_CODE=98;var PAD_3_KEY_CODE=99;var PAD_4_KEY_CODE=100;var PAD_5_KEY_CODE=101;var PAD_6_KEY_CODE=102;var PAD_7_KEY_CODE=103;var PAD_8_KEY_CODE=104;var PAD_9_KEY_CODE=105;var PAD_ASTERISK_KEY_CODE=106;var PAD_PLUS_KEY_CODE=107;var PAD_DASH_KEY_CODE=109;var PAD_PERIOD_KEY_CODE=110;var PAD_SLASH_KEY_CODE=111;var F2_KEY_CODE=113;var SEMICOLON_KEY_CODE=186;var EQUALS_KEY_CODE=187;var COMMA_KEY_CODE=188;var DASH_KEY_CODE=189;var PERIOD_KEY_CODE=190;var SLASH_KEY_CODE=191;var LEFT_BRACKET_KEY_CODE=219;var BACKSLASH_KEY_CODE=220;var RIGHT_BRACKET_KEY_CODE=221;var APOSTROPHE_KEY_CODE=222;var QP_LIST_DELIMITER="\x01";top.DRAG_FORMAT_UNKNOWN=0;top.DRAG_FORMAT_TOC_ENTRIES=1;top.DRAG_FORMAT_THUMBNAILS=2;top.getOffsetX=function(g){if(top.ie)return g.offsetX;else return g.layerX;};top.getOffsetY=function(g){if(top.ie)return g.offsetY;else return g.layerY;};top.getLMB=function(g){return top.isLMB(g.button);};top.isLMB=function(PS3){if(PS3==top.getLMBNum())return true;else return false;};top.getLMBNum=function(){if(top.ie)return 1;else return 0;};top.getFirer=function(g){if(top.ie){return g.srcElement;}else{return g.target;}};top.getEvent=function(g,L_,yu){if(top.ie)g=L_;if(yu){g.cancelBubble=true;g.returnValue=false;}return g;};top.cancelEvent=function(g){if(top.ie){g.cancelBubble=true;g.returnValue=false;}else{g.preventDefault();g.stopPropagation();}};top.getClientHeight=function(GD){if(top.ie)return GD.document.body.clientHeight;else return GD.innerHeight-25;};top.getClientWidth=function(GD){if(top.ie)return GD.document.body.clientWidth;else return GD.innerWidth;};top.copyArray=function(b1){var qpJ=new Array();for(var ww=0;ww<b1.length;ww++){qpJ[ww]=b1[ww];}return qpJ;};top.clearKeyPressHandler=function(Jl){Jl.onkeydown=null;};top.setKeyPressHandler=function(Jl,GD){Jl.onkeydown=function(g){g=GD.top.getEvent(g,GD.event,false);if(g.keyCode==ENTER_KEY_CODE){GD.top.cancelEvent(g);Jl.click();}};};top.compareFieldValues=function(ebA,Tk,G8G){var Mm;switch(G8G){case FIELD_TYPE_STRING:ebA=ebA.toLowerCase();Tk=Tk.toLowerCase();break;case FIELD_TYPE_LONG:case FIELD_TYPE_SHORT:ebA=parseInt(ebA);Tk=parseInt(Tk);break;case FIELD_TYPE_DATE:case FIELD_TYPE_DATETIME:if(ebA.length>0)ebA=Date.parse(ebA);if(Tk.length>0)Tk=Date.parse(Tk);break;}if((ebA.length==0)&&(Tk.length==0))Mm=0;else if(ebA.length==0)Mm=1;else if(Tk.length==0)Mm=-1;else if(ebA<Tk)Mm=-1;else if(ebA>Tk)Mm=1;else Mm=0;return Mm;};top.EditQuikPik=function(GD,BF,PK,Np,T){if(!top.VerifyConnection(T))return;var Eh=top.lfShowModalDialog(GD,"QuickPickDialog.asp?templateid="+BF+"&fieldindex="+(PK+1)+"&dbid="+T,null,"help:no;scroll:no;status:no");if(Eh)Np(Eh);};top.GetXMLDocument=function(eE){var tD=new ActiveXObject("MSXML2.FreeThreadedDOMDocument");var ju=eE;tD.async=false;if(tD.load(ju)){var fw=tD.getElementsByTagName("script");if(fw.length>0){eval(fw.item(0).text);return null;}}else{return null;}return tD;};top.escapeQuotes=function(BL){fx=new RegExp("\"","g");return BL.replace(fx,"\"\"");};top.FormDateQuery=function(a9B,nD,YH){var m="";if(nD.length>0||YH.length>0){if(nD.length>0){m=a9B+">=\""+nD+"\"";if(YH.length>0)m+=",";}if(YH.length>0){m+=a9B+"<=\""+YH+"\"";}}return m;};top.OpenHelpLink=function(oHj,A6K){var s6;var s4="";if(oHj!="")s4="#html/";if(A6K)s6=RM_HELP_PATH+s4+oHj;else s6=HELP_PATH+s4+oHj;window.open(s6);};top.GetUTC=function(){var wU=new Date();return Date.UTC(wU.getUTCFullYear(),wU.getUTCMonth(),wU.getUTCDay(),wU.getUTCHours(),wU.getUTCMinutes(),wU.getUTCSeconds(),wU.getUTCMilliseconds());};top.IsAlphaNumericKey=function(E1){return(E1>=A_KEY_CODE&&E1<=Z_KEY_CODE)||(E1>=MAIN_0_KEY_CODE&&E1<=MAIN_9_KEY_CODE)||(E1>=PAD_0_KEY_CODE&&E1<=PAD_9_KEY_CODE);};top.CharFromKey=function(E1){if(E1>=A_KEY_CODE&&E1<=Z_KEY_CODE)return String.fromCharCode(E1);else{switch(E1){case MAIN_0_KEY_CODE:case PAD_0_KEY_CODE:return"0";case MAIN_1_KEY_CODE:case PAD_1_KEY_CODE:return"1";case MAIN_2_KEY_CODE:case PAD_2_KEY_CODE:return"2";case MAIN_3_KEY_CODE:case PAD_3_KEY_CODE:return"3";case MAIN_4_KEY_CODE:case PAD_4_KEY_CODE:return"4";case MAIN_5_KEY_CODE:case PAD_5_KEY_CODE:return"5";case MAIN_6_KEY_CODE:case PAD_6_KEY_CODE:return"6";case MAIN_7_KEY_CODE:case PAD_7_KEY_CODE:return"7";case MAIN_8_KEY_CODE:case PAD_8_KEY_CODE:return"8";case MAIN_9_KEY_CODE:case PAD_9_KEY_CODE:return"9";}}};top.DragDataType=function(b,fb,GD){if(!b)return top.DRAG_FORMAT_UNKNOWN;if(b.indexOf(LFTOCID_DATA_FORMAT)==0){var f6=b.substr(LFTOCID_DATA_FORMAT.length).split(top.DRAG_DATA_DELIMITER);if(f6.length<4)return top.DRAG_FORMAT_UNKNOWN;if((f6[0]!=fb.dbid)||(f6[1]!=GD.location.hostname))return top.DRAG_FORMAT_UNKNOWN;return top.DRAG_FORMAT_TOC_ENTRIES;}else if(b.indexOf(top.LFTHUMBNAIL_DATA_FORMAT)==0||b.indexOf(top.JSTHUMBNAIL_DATA_FORMAT)==0){var f6=b.substr(top.LFTHUMBNAIL_DATA_FORMAT.length).split(top.DRAG_DATA_DELIMITER);if(f6.length<3)return top.DRAG_FORMAT_UNKNOWN;if((f6[0]!=fb.dbname)||(f6[1]!=fb.servername))return top.DRAG_FORMAT_UNKNOWN;return top.DRAG_FORMAT_THUMBNAILS;}else return top.DRAG_FORMAT_UNKNOWN;};top.ThumbnailPages=function(b,fb,GD){if(top.DragDataType(b,fb,GD)!=top.DRAG_FORMAT_THUMBNAILS)return;var f6=b.substr(top.LFTHUMBNAIL_DATA_FORMAT.length).split(top.DRAG_DATA_DELIMITER);return f6.slice(3);};top.ThumbnailEntryHandle=function(b,fb,GD){if(top.DragDataType(b,fb,GD)!=top.DRAG_FORMAT_THUMBNAILS)return;var f6=b.substr(LFTOCID_DATA_FORMAT.length).split(top.DRAG_DATA_DELIMITER);return f6[2];};top.VerifyConnection=function(T){var sG=top.GetXMLDocument("VerifyConnection.asp?dbid="+T);if(!sG)alert(top.STR_NO_CONNECTION);return sG;};top.TrimLeft=function(cAF){var QS=cAF.length;if(QS==0)return"";var CB=0;var tc=false;while(CB<QS&&!tc){if(cAF.charAt(CB)==' ')CB++;else tc=true;}if(tc){if(CB>0){return cAF.substring(CB,QS);}return cAF;}else{return"";}};top.TrimRight=function(cAF){var QS=cAF.length;if(QS==0)return"";var CB=QS-1;var tc=false;while(CB>-1&&!tc){if(cAF.charAt(CB)==' ')CB--;else tc=true;}if(tc){if(CB<QS-1){return cAF.substring(0,CB+1);}return cAF;}else{return"";}};top.Trim=function(cAF){return top.TrimRight(top.TrimLeft(cAF));};top.OpenedDocuments=new Array();top.OpenDocView=function(GD,F,ft,q0,bz){var MJ=false;for(var ww=0;ww<top.OpenedDocuments.length;ww++){if(top.OpenedDocuments[ww][0]==("entry"+F)){try{if(bz){top.OpenedDocuments[ww][1].top.BeforeUnloadFunc();top.OpenedDocuments[ww][1].location.replace(ft);}else{top.OpenedDocuments[ww][1].focus();}MJ=true;}catch(tp){top.OpenedDocuments.splice(ww,1);}}}if(!MJ){NL=GD.open(ft,"",q0);F1=new Array();F1.push("entry"+F);F1.push(NL);top.OpenedDocuments.push(F1);}};top.getCookieVal=function(XC){var Al=document.cookie.indexOf(";",XC);if(Al==-1)Al=document.cookie.length;return unescape(document.cookie.substring(XC,Al));};top.GetCookie=function(name){var fC=name+"=";var rg=fC.length;var Zn=document.cookie.length;var ww=0;while(ww<Zn){var nS=ww+rg;if(document.cookie.substring(ww,nS)==fC)return top.getCookieVal(nS);ww=document.cookie.indexOf(" ",ww)+1;if(ww==0)break;}return null;};top.SetCookie=function(name,tk){document.cookie=name+"="+escape(tk);};var LABEL_ROW_SIZE=16;function PaneInfo(hu,di){this.labelText=hu;this.loc=di;}function LeftPane(GD,SR,es,s7,XA){var nYU=this;GD.onresize=function(){nYU.RefreshRowSize();};GD.onload=function(){nYU.RefreshRowSize();};nYU.myWin=GD;nYU.subPanes=SR;nYU.displayHeight=XA;nYU.OpenRow=0;nYU.myTBody=es;nYU.InfoRowArray=new Array();nYU.LabelCellArray=new Array();var ww;for(ww=0;ww<SR.length;ww++){var xvc=GD.document.createElement("tr");es.insertBefore(xvc,s7);var IaU=GD.document.createElement("td");xvc.appendChild(IaU);IaU.style.height=LABEL_ROW_SIZE+"px";IaU.style.width="100%";IaU.background="images/Tabpixel.gif";var hu=GD.document.createTextNode(SR[ww].labelText);IaU.appendChild(hu);IaU.className="LabelFont LeftPaneBackground LeftPaneLabel";IaU.onclick=nYU.GetLabelClickFun(ww);IaU.onmouseover=nYU.GetLabelMouseOverFun(ww,IaU);IaU.onmouseout=nYU.GetLabelMouseOutFun(ww,IaU);IaU.tabIndex=0;IaU.onfocus=nYU.GetLabelClickFun(ww);var cJ=GD.document.createElement("tr");cJ.style.margin="0px";es.insertBefore(cJ,s7);var Lk=GD.document.createElement("td");cJ.appendChild(Lk);var wZ=GD.document.createElement("iframe");wZ.tabIndex=0;wZ.scrolling="yes";wZ.src=SR[ww].loc;Lk.appendChild(wZ);wZ.style.width="100%";wZ.style.height="0px";nYU.InfoRowArray[ww]=wZ;nYU.LabelCellArray[ww]=IaU;}nYU.ShowRow(0);this.LabelCellArray[this.OpenRow].className="LabelFont LeftPaneBackground LeftPaneLabelSelected";}LeftPane.prototype.GetInfoWinHeight=function(){return(top.getClientHeight(this.myWin)-(this.displayHeight+(this.subPanes.length*LABEL_ROW_SIZE)));};LeftPane.prototype.CloseFrame=function(){this.OpenFrame(0);};LeftPane.prototype.GetLabelClickFun=function(CB){var nYU=this;return function(){if(CB!=nYU.OpenRow)nYU.ShowRow(CB);};};LeftPane.prototype.GetLabelMouseOverFun=function(CB,hV){var nYU=this;return function(){hV.className="LabelFont LeftPaneBackground LeftPaneLabelOver";};};LeftPane.prototype.GetLabelMouseOutFun=function(CB,hV){var nYU=this;if(CB==nYU.OpenRow){return function(){hV.className="LabelFont LeftPaneBackground LeftPaneLabelSelected";};}else{return function(){hV.className="LabelFont LeftPaneBackground LeftPaneLabel";};}};LeftPane.prototype.GetFrameRows=function(){var PGO=this.RowArray[0];for(ww=1;ww<this.RowArray.length;ww++){PGO+=","+LABEL_ROW_SIZE+","+this.RowArray[ww];}return PGO;};LeftPane.prototype.ShowRow=function(CB){var Ky=this.OpenRow;this.OpenRow=CB;this.InfoRowArray[Ky].style.height="0px";var Hc=this.LabelCellArray[Ky];Hc.className="LabelFont LeftPaneBackground LeftPaneLabel";Hc.onmouseover=this.GetLabelMouseOverFun(Ky,Hc);Hc.onmouseout=this.GetLabelMouseOutFun(Ky,Hc);var AN=this.LabelCellArray[CB];AN.className="LabelFont LeftPaneBackground LeftPaneLabelSelected";AN.onmouseover=this.GetLabelMouseOverFun(CB,AN);AN.onmouseout=this.GetLabelMouseOutFun(CB,AN);this.RefreshRowSize();};LeftPane.prototype.RefreshRowSize=function(CB){this.InfoRowArray[this.OpenRow].style.height=Math.max(this.GetInfoWinHeight(),0)+"px";};LeftPane.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){LeftPane.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="TD"){v5.onclick=null;v5.onmouseover=null;v5.onmouseout=null;}v5.parentNode.removeChild(v5);};LeftPane.prototype.ReleaseDOMElements=function(){var nYU=this;nYU.myWin.onload=null;nYU.myWin.onresize=null;nYU.myWin=null;nYU.LabelCellArray=null;nYU.InfoRowArray=null;if(nYU.myTBody){LeftPane.prototype.RemoveChildren(nYU.myTBody);nYU.myTBody=null;}};function LinkType(TZ,wY,wT){this.ID=TZ;this.sourceName=wY;this.targetName=wT;}LinkType.prototype.Display=function(Ka,b1b,hX,z9){var psc=this;psc.row=Ka;psc.sourceTD=b1b;psc.targetTD=hX;psc.sourceTD.className="TransferCell";psc.targetTD.className="TransferCell";psc.sourceTD.onclick=function(){if(psc.sourceTDSelected)return;psc.sourceTDSelected=true;psc.targetTDSelected=false;z9(psc);while(psc.sourceTD.childNodes.length>0)psc.sourceTD.removeChild(psc.sourceTD.childNodes[0]);psc.sourceTD.className="UserRowHighlight";var v3=psc.sourceTD.ownerDocument.createElement("input");v3.type="text";v3.value=psc.sourceName;v3.onblur=function(){if(v3.value.length>0)psc.sourceName=v3.value;psc.ShowSourceAndTarget();};psc.sourceTD.appendChild(v3);v3.focus();};psc.targetTD.onclick=function(){if(psc.targetTDSelected)return;psc.targetTDSelected=true;psc.sourceTDSelected=false;z9(psc);while(psc.targetTD.childNodes.length>0)psc.targetTD.removeChild(psc.targetTD.childNodes[0]);psc.targetTD.className="UserRowHighlight";var V8=psc.targetTD.ownerDocument.createElement("input");V8.type="text";V8.value=psc.targetName;V8.onblur=function(){if(V8.value.length>0)psc.targetName=V8.value;psc.ShowSourceAndTarget();};psc.targetTD.appendChild(V8);V8.focus();};psc.ShowSourceAndTarget();};LinkType.prototype.Select=function(){this.sourceTD.className="UserRowHighlight TransferCell";this.targetTD.className="UserRowHighlight TransferCell";};LinkType.prototype.Deselect=function(){this.sourceTD.className="TransferCell";this.targetTD.className="TransferCell";this.sourceTDSelected=false;this.targetTDSelected=false;};LinkType.prototype.ShowSourceAndTarget=function(){while(this.sourceTD.childNodes.length>0)this.sourceTD.removeChild(this.sourceTD.childNodes[0]);while(this.targetTD.childNodes.length>0)this.targetTD.removeChild(this.targetTD.childNodes[0]);if(this.sourceName.length>0)this.sourceTD.appendChild(this.sourceTD.ownerDocument.createTextNode(this.sourceName));else this.sourceTD.innerHTML="&nbsp;";if(this.targetName.length>0)this.targetTD.appendChild(this.targetTD.ownerDocument.createTextNode(this.targetName));else this.targetTD.innerHTML="&nbsp;";};function MenuInfo(name,xc,PZ,T6,dh,bWK){this.name=name;this.items=xc;this.itemcalls=PZ;this.clickable=T6;this.selectedIndex=dh;this.menuShim=bWK;}function Menustrip(l,Rl,GI){var _n=this;_n.myWin=l;_n.myDiv=Rl;_n.menus=new Array();_n.menuWidths=new Array();Rl.className="MenuBackground";Rl.onclick=function(g){g=top.getEvent(g,window.event,true);_n.ShowMenu(g);GI();};}Menustrip.prototype.AddMenu=function(bH){var _n=this;bH.index=_n.menus.length;_n.menus.push(bH);var sa=_n.myDiv.ownerDocument.createTextNode(bH.name);var N4=_n.myDiv.ownerDocument.createElement("a");var Qy=_n.myDiv.ownerDocument.createElement("div");Qy.style.display="inline";bH.namelink=N4;N4.tabIndex=0;N4.className="MenuTitle";Qy.onmouseover=function(){this.className="MenuTitleDivOver";};Qy.onmouseout=function(){this.className="MenuTitleDiv";};N4.onselectstart=function(g){g=top.getEvent(g,_n.myWin.event,true);};N4.appendChild(sa);Qy.appendChild(N4);_n.myDiv.appendChild(Qy);N4.onclick=function(g){_n.ignoreFocus=false;if(!_n.ShownMenuInfo||_n.ShownMenuInfo.index!=bH.index){_n.CurrentMenuInfo=bH;}else _n.CurrentMenuInfo=null;};N4.onmouseover=function(){if(_n.ShownMenuInfo&&(_n.ShownMenuInfo.index!=bH.index))N4.click();};N4.onmousedown=function(){_n.ignoreFocus=true;};N4.onfocus=function(){if(!_n.ignoreFocus)N4.click();};N4.onkeydown=function(g){g=top.getEvent(g,_n.myWin.event,false);if(g.keyCode==TAB_KEY_CODE)N4.click();else _n.KeySelect(g);};_n.menuWidths.push(Qy.offsetWidth);};Menustrip.prototype.HideMenu=function(){};Menustrip.prototype.ShowMenu=function(g){var _n=this;this.HideMenu();if(this.CurrentMenuInfo){var Qo=8;for(var ww=0;ww<this.CurrentMenuInfo.index;ww++){Qo+=this.menuWidths[ww]+16;}_n.newMenu=new top.ContextMenu(this.myDiv.ownerDocument.body,(parseInt(this.myDiv.style.left)+Qo)+"px",parseInt(this.myDiv.style.top)+parseInt(this.myDiv.style.height)+3,this.myWin,true);for(var ww=0;ww<this.CurrentMenuInfo.items.length;ww++){if(!this.CurrentMenuInfo.items[ww])_n.newMenu.AddSeparator();else if(this.CurrentMenuInfo.itemcalls[ww].isSubMenu)_n.newMenu.AddSubMenu(this.CurrentMenuInfo.items[ww],this.CurrentMenuInfo.itemcalls[ww],this.CurrentMenuInfo.clickable[ww],null,null,this.CurrentMenuInfo.namelink);else _n.newMenu.AddItem(this.CurrentMenuInfo.items[ww],this.CurrentMenuInfo.itemcalls[ww],this.CurrentMenuInfo.clickable[ww],null,(this.CurrentMenuInfo.selected==ww),this.CurrentMenuInfo.namelink);}if(this.CurrentMenuInfo.menuShim){_n.newMenu.AddMenuShim(this.CurrentMenuInfo.menuShim);}this.HideMenu=function(){_n.newMenu.die();this.HideMenu=function(){};this.ShownMenuInfo=null;};this.ShownMenuInfo=this.CurrentMenuInfo;this.CurrentMenuInfo=null;_n.KeySelect=function(g){if(g.keyCode==DOWN_ARROW_KEY_CODE&&_n.ShownMenuInfo){top.cancelEvent(g);_n.newMenu.KeySelect();}};}};Menustrip.prototype.RemoveMyDivSubItems=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){Menustrip.prototype.RemoveMyDivSubItems(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onselectstart=null;v5.onclick=null;v5.onmouseover=null;v5.onmousedown=null;v5.onfocus=null;v5.onkeydown=null;}else if(v5.tagName=="DIV"){v5.onmouseover=null;v5.onmouseout=null;}};Menustrip.prototype.ReleaseDOMElements=function(){var _n=this;if(_n.myDiv){Menustrip.prototype.RemoveMyDivSubItems(_n.myDiv);_n.myDiv.onclick=null;_n.myDiv=null;}if(_n.newMenu)_n.newMenu.ReleaseDOMElements();_n.newMenu=null;while(_n.menus&&_n.menus.length)_n.menus.pop();_n.menus=null;while(_n.menuWidths&&_n.menuWidths.length)_n.menuWidths.pop();_n.menuWidths=null;};var MAX_POST_SIZE=102399;var FIT_TO_WIDTH=0;var FIT_TO_HEIGHT=-1;function PageControls(k,C5,Vt,U,TL,OT,IN,wF,T,bc,FI,du,mH,od,ld,ma,ns4,Y98,mR,EQ,p2b,i,u,Hr,Or,HO,z4,y6,sBv,p0,w2n,rY,iM,mS,VU,oN3){this.topname=k;if(C5>100)this.zoomPercentage=FIT_TO_WIDTH;else this.zoomPercentage=C5;this.scale=this.zoomPercentage;this.zoomIncrement=Vt;this.docid=U;this.pagenum=TL;this.pagecount=OT;this.searchHandle=wF;this.docname=IN;this.dbid=T;this.AddAnnotFun=function(g){};this.DeselectItem=function(){};this.DeleteFun=function(){};this.catchHLResize=true;this.saveCounter=0;this.nextAnnotID=0;this.imageEditable=bc;this.fieldsEditable=FI;this.textEditable=du;this.linksEditable=mH;this.annotsEditable=od;this.redactionsEditable=ld;this.tagsEditable=ma;this.AllowPDF=ns4;this.parentID=Y98;this.dochandle=mR;this.reasonForPDF=EQ;this.hitoffset=p2b;this.dbname=i;this.servername=u;this.pagedeletable=Hr;this.versionsEditable=Or;this.HasRecordManagementPrivileges=HO;this.hasScanFeature=z4;this.scannerLoaded=true;this.checkedOutSelf=y6;this.checkedOutOther=sBv;this.textExtractable=false;this.ShowSticky=p0;this.StickyContextString=w2n;this.ImageQualityHigh=rY?"True":"False";this.canAppend=iM;this.canWrite=mS;this.isEdoc=VU;this.VersionsCheckedOutByOther=oN3;if(p2b)this.hitpage=TL;else this.hitpage=-1;this.ImageControls=new Array();this.TextControls=new Array();this.bDirty=false;this.DeselectItem=function(){};}PageControls.prototype.SetImageTag=function(aW){this.imageTag=aW;this.imageTag.ondragstart=function(){return false;};};PageControls.prototype.SetImageDiv=function(Hy8){this.imageDiv=Hy8;};PageControls.prototype.SetImageWin=function(sJ){var fL=this;this.imageWin=sJ;this.imageWin.document.onkeydown=function(g){g=top.getEvent(g,sJ.event,false);if(g.keyCode==DELETE_KEY_CODE)fL.DeleteFun();else if(g.keyCode==top.EQUALS_KEY_CODE)fL.ZoomIn();else if(g.keyCode==top.DASH_KEY_CODE)fL.ZoomOut();else if(g.keyCode==top.H_KEY_CODE&&g.shiftKey&&g.ctrlKey)fL.HighlightMode();else if(g.keyCode==top.R_KEY_CODE&&g.shiftKey&&g.ctrlKey)fL.RedactionMode();else if(g.keyCode==top.S_KEY_CODE&&g.shiftKey&&g.ctrlKey)fL.StampMode();else if(g.keyCode==top.N_KEY_CODE&&g.shiftKey&&g.ctrlKey)fL.StickyNoteMode();else if(g.keyCode==top.G_KEY_CODE&&g.ctrlKey){fL.pageNumberInput.createTextRange().select();}else if(g.keyCode==top.S_KEY_CODE&&g.ctrlKey&&!g.shiftKey){if(!(fL.IsSaveBtnLocked()))fL.SavePage();}else if(g.keyCode==PGUP_KEY_CODE){if(g.ctrlKey){fL.ChangePage(fL.pagenum-1);}else if(fL.scrollDiv){if(!fL.PrevPageIfAtTop()){fL.scrollDiv.scrollTop=Math.max(fL.scrollDiv.scrollTop-fL.scrollDiv.clientHeight,0);}}}else if(g.keyCode==PGDN_KEY_CODE){if(g.ctrlKey){fL.ChangePage(fL.pagenum+1);}else if(fL.scrollDiv){if(!fL.NextPageIfAtBottom()){fL.scrollDiv.scrollTop=Math.min(fL.scrollDiv.scrollTop+fL.scrollDiv.clientHeight,fL.scrollDiv.scrollHeight-fL.scrollDiv.clientHeight);}}}};};PageControls.prototype.SetScrollingDiv=function(YHu){var fL=this;fL.scrollDiv=YHu;fL.scrollDiv.oncontextmenu=function(){return false;};YHu.onkeydown=function(g){g=top.getEvent(g,fL.imageWin.event,false);if(g.keyCode==PGUP_KEY_CODE){g.cancelBubble=true;fL.PrevPageIfAtTop();}else if(g.keyCode==PGDN_KEY_CODE){g.cancelBubble=true;fL.NextPageIfAtBottom();}};};PageControls.prototype.PrevPageIfAtTop=function(){if(!this.scrollDiv)return false;if((this.scrollDiv.scrollTop==0)&&(this.pagenum>1)){this.ChangePage(fL.pagenum-1);return true;}return false;};PageControls.prototype.NextPageIfAtBottom=function(){if(!this.scrollDiv)return false;if((this.scrollDiv.scrollTop==this.scrollDiv.scrollHeight-this.scrollDiv.clientHeight)){this.ChangePage(fL.pagenum+1);return true;}return false;};PageControls.prototype.ClearSaveIcon=function(HSk){var fL=this;fL.clearImgSwap(HSk.childNodes[0]);HSk.onclick=null;HSk.onfocus=null;HSk.onblur=null;top.clearKeyPressHandler(HSk);};PageControls.prototype.SetSaveIcon=function(HSk){var fL=this;fL.saveBtn=HSk;fL.setImgSwap(fL.saveBtn.childNodes[0],"images/save.gif","images/save_over.gif");if(fL.imageEditable||fL.textEditable||fL.fieldsEditable||fL.linksEditable||fL.annotsEditable){fL.saveBtn.onclick=function(){if(!(fL.IsSaveBtnLocked()))fL.SavePage();};top.setKeyPressHandler(fL.saveBtn,this.pageToolsWin);fL.saveBtn.onfocus=fL.saveBtn.childNodes[0].onmouseover;fL.saveBtn.onblur=fL.saveBtn.childNodes[0].onmouseout;fL.saveBtn.tabIndex=0;}else fL.saveBtn.parentElement.style.display="none";};PageControls.prototype.SetScanIcon=function(M){var fL=this;fL.scanBtn=M;if(fL.hasScanFeature&&fL.imageEditable){fL.setImgSwap(fL.scanBtn.childNodes[0],"images/scan.gif","images/scan_over.gif");fL.scanBtn.onclick=function(){if(!top.VerifyConnection(fL.dbid))return;if(top.scannerLoaded){if(fL.stampToolbarWin){fL.stampToolbarWin.close();}if(fL.bDirty){var Sh=top.lfShowModalDialog(fL.imageWin,"PrescanSavePrompt.asp",null,"help:no;scroll:no;status:no");if(Sh==0)return;if(Sh==2){fL.SavePage();}else if(Sh==1){var Myq="?id="+fL.docid+"&toctype=d&closepage=yes&closedoc=yes&dbid="+fL.dbid;if(fL.pagenum)Myq+="&page="+fL.pagenum;top.GetXMLDocument("ClosePage.asp"+Myq);fL.SetClean();fL.HidePage();var tD=top.GetXMLDocument("ReopenDocument.asp?id="+fL.docid+"&toctype=d&dbid="+fL.dbid);if(tD){var c=tD.documentElement;var OT=c.getAttribute("PageCount");var Jyt=c.getAttribute("Handle");fL.dochandle=Jyt;fL.CorrectPageNum(fL.pagenum,OT);fL.LoadDocument();if(fL.thumbDisplay)fL.thumbDisplay.DisplayThumbSet(true);}}}top.LoadScanning();}else{window.open("Scanning_Install.asp?dbid="+fL.dbid,'','menubar=no,resizable=no,scrollbars=no,status=no, width=480px, height=380px');}};top.setKeyPressHandler(fL.scanBtn,this.pageToolsWin);fL.scanBtn.tabIndex=0;fL.scanBtn.onfocus=fL.scanBtn.childNodes[0].onmouseover;fL.scanBtn.onblur=fL.scanBtn.childNodes[0].onmouseout;}else{fL.scanBtn.parentElement.style.display="none";}};PageControls.prototype.ScannerLoadFailed=function(){this.scannerLoaded=false;};PageControls.prototype.SetTextDiv=function(Lg){var fL=this;fL.textDiv=Lg;fL.textDiv.onmouseup=function(){if(fL.CurrentDocumentText&&s8(fL.textWin).length>0){if(fL.GetAnnotationType()==ANN_HIGHLIGHT){fL.CurrentDocumentText.AddHighlight(true,fL.GetAddImageAnnot());}else if(fL.GetAnnotationType()==ANN_BLACKOUTIMAGE){fL.CurrentDocumentText.AddHighlight(false,fL.GetAddImageAnnot());}}};};PageControls.prototype.SetTextElement=function(oh){this.textElement=oh;this.TextControls.push(oh);};PageControls.prototype.SetImageElement=function(MP){this.imageElement=MP;this.ImageControls.push(MP);};PageControls.prototype.SetTextWin=function(_na){this.textWin=_na;this.textForm=_na.document.createElement("form");this.textForm.method="post";this.textForm.target="textpostee";_na.document.body.appendChild(this.textForm);this.textAnnotForm=_na.document.createElement("form");this.textAnnotForm.method="post";this.textAnnotForm.target="textannotpostee";_na.document.body.appendChild(this.textAnnotForm);};PageControls.prototype.SetAnnotDiv=function(Sj){this.annotDiv=Sj;};PageControls.prototype.SetStickyDiv=function(ow){this.stickyDiv=ow;};PageControls.prototype.SetNoNoteText=function(kE){this.noNoteText=kE;if(this.bShowImageAnnots){this.bShowImageAnnots=false;this.ShowAnnotations(true);}};PageControls.prototype.SetFieldDisp=function(Zd,pt){var fL=this;Zd.SetDirtyFunc=function(){fL.SetDirty();};fL.fieldDisp=Zd;fL.templateSelect=pt;if(fL.ReadyToShowFields)fL.ReadyToShowFields();};PageControls.prototype.SetPageToolsWin=function(jpn){this.pageToolsWin=jpn;};PageControls.prototype.GetAddImageAnnot=function(){return true;};PageControls.prototype.SetPgUpIcons=function(kF,UI){var fL=this;fL.pgUpBtns=kF;fL.pgStartBtns=UI;fL.DisablePrevPage();for(var ww=0;ww<fL.pgUpBtns.length;ww++){fL.pgUpBtns[ww].onclick=function(){if(fL.pagenum>1)fL.ChangePage(fL.pagenum-1);};fL.pgUpBtns[ww].tabIndex=0;top.setKeyPressHandler(fL.pgUpBtns[ww],fL.pageToolsWin);}for(var ww=0;ww<fL.pgStartBtns.length;ww++){fL.pgStartBtns[ww].onclick=function(){if(fL.pagenum!=1)fL.ChangePage(1);};fL.pgStartBtns[ww].tabIndex=0;top.setKeyPressHandler(fL.pgStartBtns[ww],fL.pageToolsWin);}};PageControls.prototype.SetPgDnIcons=function(mh,EY){var fL=this;fL.pgDnBtns=mh;fL.pgEndBtns=EY;fL.DisableNextPage();for(var ww=0;ww<fL.pgEndBtns.length;ww++){fL.pgEndBtns[ww].onclick=function(){if(fL.pagenum!=fL.pagecount)fL.ChangePage(fL.pagecount);};fL.pgEndBtns[ww].tabIndex=0;top.setKeyPressHandler(fL.pgEndBtns[ww],fL.pageToolsWin);}for(var ww=0;ww<fL.pgDnBtns.length;ww++){fL.pgDnBtns[ww].onclick=function(){fL.ChangePage(fL.pagenum+1);};fL.pgDnBtns[ww].tabIndex=0;top.setKeyPressHandler(fL.pgDnBtns[ww],fL.pageToolsWin);}};PageControls.prototype.SetPageNumberInput=function(Gt){var fL=this;fL.pageNumberInput=Gt;fL.pageNumberInput.onkeypress=function(g){g=top.getEvent(g,fL.pageToolsWin.event,false);if(g.keyCode==ENTER_KEY_CODE&&parseInt(fL.pageNumberInput.value)){fL.ChangePage(parseInt(fL.pageNumberInput.value));}};};PageControls.prototype.SetViewImageIcon=function(Nn){var fL=this;fL.imageBtn=Nn;fL.TextControls.push(Nn);fL.imageBtn.tabIndex=0;top.setKeyPressHandler(Nn,fL.pageToolsWin);Nn.onclick=function(){fL.ShowImage();};fL.setImgSwap(Nn.childNodes[0],"images/ViewImage1.gif","images/ViewImage1_over.gif");Nn.onfocus=Nn.childNodes[0].onmouseover;Nn.onblur=Nn.childNodes[0].onmouseout;};PageControls.prototype.SetViewTextIcon=function(gE){var fL=this;fL.textBtn=gE;fL.ImageControls.push(gE);fL.textBtn.tabIndex=0;top.setKeyPressHandler(fL.textBtn,fL.pageToolsWin);gE.onclick=function(){fL.ShowText();};fL.setImgSwap(gE.childNodes[0],"images/ViewText1.gif","images/ViewText1_over.gif");gE.onfocus=gE.childNodes[0].onmouseover;gE.onblur=gE.childNodes[0].onmouseout;};PageControls.prototype.SetThumbDisplay=function(UhT){this.thumbDisplay=UhT;};PageControls.prototype.SetRefreshIcon=function(P){var fL=this;fL.refreshBtn=P;fL.refreshBtn.onclick=function(){fL.PromptForSave(true);fL.HidePage();var tD=top.GetXMLDocument("ReopenDocument.asp?id="+fL.docid+"&toctype=d&dbid="+fL.dbid);if(tD){var c=tD.documentElement;var OT=c.getAttribute("PageCount");var Jyt=c.getAttribute("Handle");fL.dochandle=Jyt;fL.CorrectPageNum(fL.pagenum,OT);fL.LoadDocument();fL.thumbDisplay.DisplayThumbSet(true);}};fL.refreshBtn.tabIndex=0;top.setKeyPressHandler(fL.refreshBtn,fL.pageToolsWin);fL.setImgSwap(fL.refreshBtn.childNodes[0],"images/refresh.gif",'images/Refresh_over.gif');fL.refreshBtn.onfocus=P.childNodes[0].onmouseover;fL.refreshBtn.onblur=P.childNodes[0].onmouseout;};PageControls.prototype.ZoomIn=function(){var fL=this;fL.zoomPercentage+=fL.zoomIncrement;if(fL.zoomPercentage>100)fL.zoomPercentage=100;if(!fL.IsSaveBtnLocked()){fL.HidePage();fL.ShowPage();}};PageControls.prototype.ZoomOut=function(){var fL=this;if(fL.zoomPercentage>fL.zoomIncrement+1)fL.zoomPercentage=fL.zoomPercentage-fL.zoomIncrement;else fL.zoomPercentage=1;if(!fL.IsSaveBtnLocked()){fL.HidePage();fL.ShowPage();}};PageControls.prototype.SetZoomDropdown=function(bh){var fL=this;fL.ZoomDropDownItem=bh;bh.tabIndex=0;fL.ImageControls.push(bh);bh.onchange=function(){fL.zoomPercentage=bh.value;fL.SetZoomDropDownSel();fL.HidePage();fL.ShowPage();}};PageControls.prototype.SetZoomDropDownSel=function(){var fL=this;if((fL.ZoomDropDownItem==null)||(fL.ZoomDropDownItem.style.display=="none"))return;if(fL.ZoomDropDownItem.length>6)fL.ZoomDropDownItem.removeChild(fL.ZoomDropDownItem.firstChild);for(var ww=0;ww<fL.ZoomDropDownItem.length;ww++){if(fL.zoomPercentage==fL.ZoomDropDownItem[ww].value){fL.ZoomDropDownItem.selectedIndex=ww;return;}}var Ji=document.createElement("OPTION");Ji.text=fL.zoomPercentage+"%";Ji.value=fL.zoomPercentage;Ji.selected=true;fL.ZoomDropDownItem.add(Ji,0);};PageControls.prototype.SetZoomIcons=function(K6,T_){var fL=this;fL.zoomInBtn=K6;fL.zoomOutBtn=T_;K6.onclick=function(){fL.ZoomIn();};T_.onclick=function(){fL.ZoomOut();};fL.ImageControls.push(K6);fL.ImageControls.push(T_);fL.setImgSwap(K6.childNodes[0],"images/ZoomIn.gif","images/ZoomIn_over.gif");fL.setImgSwap(T_.childNodes[0],"images/ZoomOut.gif","images/ZoomOut_over.gif");K6.tabIndex=0;T_.tabIndex=0;top.setKeyPressHandler(K6,fL.pageToolsWin);top.setKeyPressHandler(T_,fL.pageToolsWin);K6.onfocus=K6.childNodes[0].onmouseover;K6.onblur=K6.childNodes[0].onmouseout;T_.onfocus=T_.childNodes[0].onmouseover;T_.onblur=T_.childNodes[0].onmouseout;};PageControls.prototype.SetRotateIcons=function(Jd,OU){var fL=this;fL.rotateLeftBtn=Jd;fL.rotateRightBtn=OU;var Vb=function(OM){var ju="RotateImage.asp?id="+fL.docid+"&page="+fL.pagenum+"&dbid="+fL.dbid+"&dir=";if(OM)ju+="left";else ju+="right";if(top.GetXMLDocument(ju)){if(fL.imageEditable)fL.SetDirty();fL.HidePage();fL.ShowPage();}};fL.rotateLeftBtn.onclick=function(){Vb(true);};fL.rotateRightBtn.onclick=function(){Vb(false);};fL.ImageControls.push(fL.rotateLeftBtn);fL.ImageControls.push(fL.rotateRightBtn);fL.setImgSwap(fL.rotateLeftBtn.childNodes[0],"images/RotateLeft.gif","images/RotateLeft_over.gif");fL.setImgSwap(fL.rotateRightBtn.childNodes[0],"images/RotateRight.gif","images/RotateRight_over.gif");fL.rotateLeftBtn.tabIndex=0;fL.rotateRightBtn.tabIndex=0;top.setKeyPressHandler(fL.rotateLeftBtn,fL.pageToolsWin);top.setKeyPressHandler(fL.rotateRightBtn,fL.pageToolsWin);fL.rotateLeftBtn.onfocus=fL.rotateLeftBtn.childNodes[0].onmouseover;fL.rotateLeftBtn.onblur=fL.rotateLeftBtn.childNodes[0].onmouseout;fL.rotateRightBtn.onfocus=fL.rotateRightBtn.childNodes[0].onmouseover;fL.rotateRightBtn.onblur=fL.rotateRightBtn.childNodes[0].onmouseout;};PageControls.prototype.SetEditTextIcon=function(nQ){var fL=this;fL.editTextBtn=nQ;if(fL.textEditable){fL.editTextBtn.onclick=function(){fL.ShowTextEditWin();};fL.TextControls.push(fL.editTextBtn);fL.ImageControls.push(fL.editTextBtn);fL.editTextBtn.tabIndex=0;top.setKeyPressHandler(fL.editTextBtn,fL.pageToolsWin);}else fL.editTextBtn.parentElement.style.display="none";fL.setImgSwap(fL.editTextBtn.childNodes[0],"images/EditText.gif","images/EditText_over.gif");fL.editTextBtn.onfocus=fL.editTextBtn.childNodes[0].onmouseover;fL.editTextBtn.onblur=fL.editTextBtn.childNodes[0].onmouseout;};PageControls.prototype.SetShowEdocIcon=function(HY){var fL=this;fL.showEdocBtn=HY;fL.showEdocBtn.parentElement.style.display="inline";fL.setImgSwap(fL.showEdocBtn.childNodes[0],"images/DownloadEDocBtn.gif","images/DownloadEDocBtn_over.gif");var eEQ="ImageDisplay.asp?doc="+this.docid+"&edoc=1&scale=10000&dbid="+this.dbid+"&/"+this.docname;if(fL.checkedOutSelf){fL.showEdocBtn.onclick=function(){return confirm(top.STR_CHECKED_OUT_SELF_DOWNLOAD_CONFIRM);};}fL.showEdocBtn.href=eEQ;fL.showEdocBtn.target="_blank";fL.showEdocBtn.tabIndex=0;top.setKeyPressHandler(fL.showEdocBtn,fL.pageToolsWin);fL.showEdocBtn.onfocus=fL.showEdocBtn.childNodes[0].onmouseover;fL.showEdocBtn.onblur=fL.showEdocBtn.childNodes[0].onmouseout;};PageControls.prototype.SetUploadEdocIcon=function(q5){var fL=this;fL.uploadEdocBtn=q5;fL.uploadEdocBtn.parentElement.style.display="inline";fL.setImgSwap(fL.uploadEdocBtn.childNodes[0],"images/UploadEDocBtn.gif","images/UploadEDocBtn_over.gif");top.setKeyPressHandler(fL.uploadEdocBtn,fL.pageToolsWin);fL.uploadEdocBtn.onclick=function(){if(!top.VerifyConnection(fL.dbid))return;if(fL.stampToolbarWin){fL.stampToolbarWin.close();}if(fL.bDirty){var Sh=top.lfShowModalDialog(fL.imageWin,"PrescanSavePrompt.asp",null,"help:no;scroll:no;status:no");if(Sh==0)return;if(Sh==2){fL.SavePage();}else if(Sh==1){var Myq="?id="+fL.docid+"&toctype=d&closepage=yes&closedoc=yes&dbid="+fL.dbid;if(fL.pagenum)Myq+="&page="+fL.pagenum;top.GetXMLDocument("ClosePage.asp"+Myq);fL.SetClean();fL.HidePage();var tD=top.GetXMLDocument("ReopenDocument.asp?id="+fL.docid+"&toctype=d&dbid="+fL.dbid);if(tD){var c=tD.documentElement;var OT=c.getAttribute("PageCount");var Jyt=c.getAttribute("Handle");fL.dochandle=Jyt;fL.CorrectPageNum(fL.pagenum,OT);fL.LoadDocument();fL.thumbDisplay.DisplayThumbSet(true);}}}top.lfShowModalDialog(fL.imageWin,"ReplaceEDocDialog.asp?id="+fL.docid+"&dbid="+fL.dbid,null,"help:no;scroll:no;status:no");fL.Refresh(true);};fL.uploadEdocBtn.onfocus=fL.uploadEdocBtn.childNodes[0].onmouseover;fL.uploadEdocBtn.onblur=fL.uploadEdocBtn.childNodes[0].onmouseout;};PageControls.prototype.SetSnapshotIcon=function(OE){var fL=this;fL.snapshotBtn=OE;fL.snapshotBtn.parentElement.style.display="inline";fL.snapshotBtn.onclick=function(){if(!confirm(top.STR_CONFIRM_SNAPSHOT))return;if(top.GetXMLDocument("Snapshot.asp?id="+fL.docid+"&dbid="+fL.dbid))alert(top.STR_SNAPSHOT_INITIATED);};fL.snapshotBtn.tabIndex=0;top.setKeyPressHandler(fL.snapshotBtn,fL.pageToolsWin);fL.setImgSwap(fL.snapshotBtn.childNodes[0],"images/SnapshotBtn.gif","images/SnapshotBtn_over.gif");fL.snapshotBtn.onfocus=fL.snapshotBtn.childNodes[0].onmouseover;fL.snapshotBtn.onblur=fL.snapshotBtn.childNodes[0].onmouseout;};PageControls.prototype.SetExtractIcon=function(R7){var fL=this;fL.extractBtn=R7;fL.extractBtn.parentElement.style.display="inline";if(this.textExtractable){fL.extractBtn.onclick=function(){if(!confirm(top.STR_CONFIRM_EXTRACT_TEXT))return;var tD=top.GetXMLDocument("ExtractText.asp?id="+fL.docid+"&dbid="+fL.dbid);if(tD){var OT=tD.documentElement.text;fL.CorrectPageNum(fL.pagenum,OT);fL.LoadDocument();}};}else{fL.extractBtn.onclick=function(){alert(top.STR_NOT_EXTRACTABLE_EXPLANATION);};}fL.extractBtn.tabIndex=0;top.setKeyPressHandler(fL.extractBtn,fL.pageToolsWin);fL.setImgSwap(fL.extractBtn.childNodes[0],"images/ViewText.gif","images/ViewText_over.gif");fL.extractBtn.onfocus=fL.extractBtn.childNodes[0].onmouseover;fL.extractBtn.onblur=fL.extractBtn.childNodes[0].onmouseout;};PageControls.prototype.SetTextExtractable=function(Zk){this.textExtractable=Zk;};PageControls.prototype.EnableTextGeneration=function(){if(this.snapshotBtn){this.SetSnapshotIcon(this.snapshotBtn);}if(this.extractBtn){this.SetExtractIcon(this.extractBtn);}};PageControls.prototype.DisableTextGeneration=function(){if(this.snapshotBtn){this.setImgSwap(this.snapshotBtn.childNodes[0],"images/SnapshotBtn_disabled.gif","images/SnapshotBtn_disabled.gif");this.snapshotBtn.onfocus=this.snapshotBtn.childNodes[0].onmouseover;this.snapshotBtn.onblur=this.snapshotBtn.childNodes[0].onmouseout;this.snapshotBtn.onclick=null;}if(this.extractBtn){this.setImgSwap(this.extractBtn.childNodes[0],"images/ViewText_disabled.gif","images/ViewText_disabled.gif");this.extractBtn.onfocus=this.extractBtn.childNodes[0].onmouseover;this.extractBtn.onblur=this.extractBtn.childNodes[0].onmouseout;this.extractBtn.onclick=null;}};PageControls.prototype.DisableUploadEdoc=function(){if(this.uploadEdocBtn){this.setImgSwap(this.uploadEdocBtn.childNodes[0],"images/UploadEDocBtn_disabled.gif","images/UploadEDocBtn_disabled.gif");this.uploadEdocBtn.onfocus=this.uploadEdocBtn.childNodes[0].onmouseover;this.uploadEdocBtn.onblur=this.uploadEdocBtn.childNodes[0].onmouseout;this.uploadEdocBtn.onclick=null;}};PageControls.prototype.RedisplayTextAnnotations=function(){if(this.CurrentTextHighlights&&this.CurrentTextHighlights.length>0){var iF=function(Tr,my){if(Tr.startChar<my.startChar)return-1;else if(Tr.startChar>my.startChar)return 1;else return 0;};this.CurrentTextHighlights.sort(iF);this.CurrentTextHighlights[0].ShowHighlight();for(ww=1;ww<this.CurrentTextHighlights.length;ww++){if((this.CurrentTextHighlights[ww].type==ANN_HIGHLIGHTTEXT)||(this.CurrentTextHighlights[ww].type==ANN_BLACKOUTTEXT)){this.CurrentTextHighlights[ww].ShowHighlight(null,null,this.CurrentTextHighlights[ww-1].startNodeIndex,this.CurrentTextHighlights[ww-1].startChar);}}}};PageControls.prototype.ShowTextEditWin=function(){if(!top.VerifyConnection(this.dbid))return;var fL=this;if(fL.IsSaveBtnLocked())return;var ue=new Array();ue[0]=fL.CurrentDocumentText;ue[1]=fL.CurrentTextHighlights;var F9=top.lfShowModalDialog(fL.pageToolsWin,'EditTextWin.asp',ue,'resizable:yes;help:no');fL.lockSaveBtn();var k7="callbackfunc"+top.callbackNum++;fL.pageToolsWin.top[k7]=function(IP,iV,ToD){while(fL.textForm.childNodes.length)fL.textForm.removeChild(fL.textForm.childNodes[0]);fL.searchHandle=0;fL.ClearText();fL.SetDirty();fL.CurrentDocumentText=IP;fL.CurrentDocumentText.ShowText(iV,null,false,ToD);fL.RedisplayTextAnnotations();fL.releaseSaveBtn();};var xX=F9[1];var PD=F9[2];var JW=F9[3];var hR="";for(var ww=0;ww<xX.length;ww++){var hB=fL.textWin.document.createElement("textarea");hB.style.display="none";hB.name="nodeid"+ww;hB.value=xX[ww].nodeID;fL.textForm.appendChild(hB);var lz=fL.textWin.document.createElement("textarea");lz.style.display="none";lz.name="nodetext"+ww;lz.value=xX[ww].text.substr(0,MAX_POST_SIZE);fL.textForm.appendChild(lz);}fL.textForm.action="EditPageText.asp?id="+fL.docid+"&page="+fL.pagenum+"&controls="+fL.topname+"&wordcount="+xX.length+"&callback="+k7+"&dbid="+fL.dbid;fL.textForm.submit();fL.lockSaveBtn();fL.CurrentTextHighlights=F9[0];for(var ww=0;ww<fL.CurrentTextHighlights.length;ww++){var Ir=fL.textWin.document.createElement("textarea");Ir.style.display="none";Ir.name="annotid"+ww;Ir.value=fL.CurrentTextHighlights[ww].id;fL.textAnnotForm.appendChild(Ir);var JV=fL.textWin.document.createElement("textarea");JV.style.display="none";JV.name="annotstart"+ww;JV.value=fL.CurrentTextHighlights[ww].startChar;fL.textAnnotForm.appendChild(JV);var CO=fL.textWin.document.createElement("textarea");CO.style.display="none";CO.name="annotend"+ww;CO.value=fL.CurrentTextHighlights[ww].endChar;fL.textAnnotForm.appendChild(CO);var VB=fL.textWin.document.createElement("textarea");VB.style.display="none";VB.name="annottype"+ww;VB.value=fL.CurrentTextHighlights[ww].type;fL.textAnnotForm.appendChild(VB);var VA=fL.textWin.document.createElement("textarea");VA.style.display="none";VA.name="annotcolor"+ww;VA.value=fL.CurrentTextHighlights[ww].color;fL.textAnnotForm.appendChild(VA);}for(var nS=0;nS<PD.length;nS++){var A5=fL.textWin.document.createElement("textarea");A5.style.display="none";A5.name="deletedannotid"+nS;A5.value=PD[nS];fL.textAnnotForm.appendChild(A5);var jA=fL.textWin.document.createElement("textarea");jA.style.display="none";jA.name="deletedannottype"+nS;jA.value=ANN_HIGHLIGHTTEXT;fL.textAnnotForm.appendChild(jA);}for(var Je=0;Je<JW.length;Je++){var A5=fL.textWin.document.createElement("textarea");A5.style.display="none";A5.name="deletedannotid"+(Je+PD.length);A5.value=JW[Je];fL.textAnnotForm.appendChild(A5);var jA=fL.textWin.document.createElement("textarea");jA.style.display="none";jA.name="deletedannottype"+(Je+PD.length);jA.value=ANN_BLACKOUTTEXT;fL.textAnnotForm.appendChild(jA);}var nZ="callbackfunc"+top.callbackNum++;fL.pageToolsWin.top[nZ]=function(){while(fL.textAnnotForm.childNodes.length)fL.textAnnotForm.removeChild(fL.textAnnotForm.childNodes[0]);fL.releaseSaveBtn();};fL.textAnnotForm.action="RepositionTextAnnots.asp?docid="+fL.docid+"&page="+fL.pagenum+"&annotcount="+fL.CurrentTextHighlights.length+"&deletedcount="+(PD.length+JW.length)+"&callback="+nZ+"&dbid="+fL.dbid;fL.textAnnotForm.submit();};PageControls.prototype.SetPDFControls=function(Ehh){this.HidePDFControls=function(){for(var ww=0;ww<Ehh.length;++ww){Ehh[ww].style.display="none";if(Ehh[ww].parentElement.className=="DocToolbarButtonLeft"){Ehh[ww].parentElement.style.display="none";}}if(this.pdfDivider){this.pdfDivider.style.display="none";}};this.ShowPDFControls=function(){for(var ww=0;ww<Ehh.length;++ww){Ehh[ww].style.display="inline";if(Ehh[ww].parentElement.className=="DocToolbarButtonLeft"){Ehh[ww].parentElement.style.display="inline";}}if(this.pdfDivider){this.pdfDivider.style.display="inline";}};if(!this.AllowPDF){this.HidePDFControls();}};PageControls.prototype.SetPDFIcon=function(Ts){var fL=this;fL.pdfIcon=Ts;fL.pdfIcon.onclick=function(){fL.ShowPDF();};fL.setImgSwap(fL.pdfIcon.childNodes[0],"images/DownloadPDFBtn.gif","images/DownloadPDFBtn_over.gif");fL.pdfIcon.tabIndex=0;top.setKeyPressHandler(fL.pdfIcon,fL.pageToolsWin);fL.pdfIcon.onfocus=fL.pdfIcon.childNodes[0].onmouseover;fL.pdfIcon.onblur=fL.pdfIcon.childNodes[0].onmouseout;};PageControls.prototype.SetPDFInputs=function(kQ,hD){var fL=this;fL.pdfStartInput=kQ;fL.pdfEndInput=hD;kQ.onkeypress=function(g){g=top.getEvent(g,fL.pageToolsWin.event,false);if(g.keyCode==ENTER_KEY_CODE)fL.pdfEndInput.focus();};hD.onkeypress=function(g){g=top.getEvent(g,fL.pageToolsWin.event,false);if(g.keyCode==ENTER_KEY_CODE)fL.ShowPDF();};};PageControls.prototype.ShowPDF=function(){if(!top.VerifyConnection(this.dbid))return;if(this.reasonForPDF){if(!top.lfShowModalDialog(this.pageToolsWin,"AuditReasonPopup.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no"))return;}var TL=parseInt(this.pdfStartInput.value);var OdN=parseInt(this.pdfEndInput.value);if((TL>=1)&&(OdN>=1)&&(TL<=OdN)){CI='ImageDisplay.asp?pdf=1&scale=10000&pdfendpage='+OdN+'&pdfstartpage='+TL+'&doc='+this.docid+'&dbid='+this.dbid+'&/'+this.docname+'.pdf';var xp=this.pageToolsWin.open(CI,'','menubar=yes,resizable=yes,scrollbars=yes,status=yes');}};PageControls.prototype.ShowImage=function(){var fL=this;fL.HideControls();for(var ww=0;ww<this.ImageControls.length;ww++){fL.ImageControls[ww].style.display="inline";if(fL.ImageControls[ww].parentElement.className=="DocToolbarButtonLeft"){fL.ImageControls[ww].parentElement.style.display="inline";}}fL.DisableDelete();fL.DeselectItem();};PageControls.prototype.ShowText=function(_K){this.HideControls();for(var ww=0;ww<this.TextControls.length;ww++){this.TextControls[ww].style.display="inline";if(this.TextControls[ww].parentElement.className=="DocToolbarButtonLeft"){this.TextControls[ww].parentElement.style.display="inline";}}if(_K){this.imageBtn.parentElement.style.display="none";}fL.DisableDelete();fL.DeselectItem();};PageControls.prototype.HideControls=function(){for(var ww=0;ww<this.TextControls.length;ww++){this.TextControls[ww].style.display="none";if(this.TextControls[ww].parentElement.className=="DocToolbarButtonLeft"){this.TextControls[ww].parentElement.style.display="none";}}for(var ww=0;ww<this.ImageControls.length;ww++){this.ImageControls[ww].style.display="none";if(this.ImageControls[ww].parentElement.className=="DocToolbarButtonLeft"){this.ImageControls[ww].parentElement.style.display="none";}}};PageControls.prototype.AllowImageSwitching=function(){if(this.imageBtn&&(this.imageBtn.parentElement.style.display=="none")&&(this.textBtn.style.display=="none"))this.imageBtn.parentElement.style.display="inline";};PageControls.prototype.SetDeleteIcon=function(a7){var fL=this;fL.deleteBtn=a7;fL.deleteBtn.onclick=function(){fL.DeleteFun();};top.setKeyPressHandler(fL.deleteBtn,fL.pageToolsWin);fL.DisableDelete();if(!fL.annotsEditable&&!fL.imageEditable){a7.parentElement.style.display="none";}else{fL.ImageControls.push(a7);fL.TextControls.push(a7);}};PageControls.prototype.SetDeleteLinkBtn=function(a7,DY){this.deleteLinkBtn=a7;this.deleteLinkImage=DY;};PageControls.prototype.SetDeleteFun=function(y0){var fL=this;if(fL.deleteBtn){fL.setImgSwap(fL.deleteBtn.childNodes[0],"images/delete.gif","images/delete_over.gif");fL.deleteBtn.onfocus=fL.deleteBtn.childNodes[0].onmouseover;fL.deleteBtn.onblur=fL.deleteBtn.childNodes[0].onmouseout;fL.deleteBtn.tabIndex=0;fL.DeleteFun=function(){if(y0())fL.DisableDelete();};}};PageControls.prototype.DisableDelete=function(){var fL=this;if(fL.deleteBtn){fL.setImgSwap(fL.deleteBtn.childNodes[0],"images/delete_grey.gif","images/delete_grey.gif");fL.deleteBtn.onfocus=fL.deleteBtn.childNodes[0].onmouseover;fL.deleteBtn.onblur=fL.deleteBtn.childNodes[0].onmouseout;fL.deleteBtn.tabIndex=-1;fL.DeleteFun=function(){};}};PageControls.prototype.SetColorPickerDiv=function(yG){};PageControls.prototype.StickyNoteMode=function(){var fL=this;if(fL.currentAnnotationType==ANN_STICKYNOTE)fL.SetAnnotationType(null);else fL.SetAnnotationType(ANN_STICKYNOTE);};PageControls.prototype.SetStickyIcon=function(tw3,Gb,WU,QI,p2){var fL=this;fL.stickyIcon=tw3;top.setKeyPressHandler(fL.stickyIcon,fL.pageToolsWin);if(fL.annotsEditable){fL.ImageControls.push(tw3);fL.ImageControls.push(Gb);fL.SetStickyDeselected();fL.stickyIcon.onclick=function(){fL.StickyNoteMode();};fL.stickyIcon.tabIndex=0;}else{fL.stickyIcon.parentElement.style.display="none";Gb.style.display="none";}tw3.onfocus=function(){tw3.childNodes[0].onmouseover();};tw3.onblur=function(){tw3.childNodes[0].onmouseout();};fL.stickyColorMenuDiv=Gb;fL.stickyColorMenu=new top.ColorMenu(Gb,"#"+WU,QI,p2,top.STR_COLORMENU_STICKY_NOTES,fL.pageToolsWin);fL.stickyColorMenu.AddColor("#FFFF00","yellow",top.STR_COLOR_YELLOW);fL.stickyColorMenu.AddColor("#FF8000","orange",top.STR_COLOR_ORANGE);fL.stickyColorMenu.AddColor("#FF0000","red",top.STR_COLOR_RED);fL.stickyColorMenu.AddColor("#FF80FF","pink",top.STR_COLOR_PINK);fL.stickyColorMenu.AddColor("#00FF00","green",top.STR_COLOR_GREEN);fL.stickyColorMenu.AddColor("#80FFFF","ltblue",top.STR_COLOR_LT_BLUE);fL.stickyColorMenu.AddColor("#0080FF","blue",top.STR_COLOR_BLUE);fL.stickyColorMenu.AddColor("#C040FF","purple",top.STR_COLOR_PURPLE);fL.stickyColorMenu.Enable();fL.stickyColorMenu.OnSelectedColorChanged=function(){fL.SetAnnotationType(ANN_STICKYNOTE);};fL.stickyColorMenu.OnMenuOpen=function(){fL.highlightColorMenu.HideMenu();fL.redactionColorMenu.HideMenu();};};PageControls.prototype.SetStickyDeselected=function(){var fL=this;this.setImgSwap(this.stickyIcon.childNodes[0],"images/StickyNotes.gif","images/StickyNotes_over.gif");if(fL.stickyColorMenu){fL.stickyColorMenu.HideMenu();fL.stickyColorMenu.OnSelectedColorChanged=function(){fL.SetAnnotationType(ANN_STICKYNOTE);};}};PageControls.prototype.SetStickySelected=function(){var fL=this;this.setImgSwap(this.stickyIcon.childNodes[0],"images/StickyNotes_selected.gif","images/StickyNotes_selected.gif");fL.stickyColorMenu.OnSelectedColorChanged=function(){fL.imageDiv.style.cursor="images/StickyNotes_"+fL.stickyColorMenu.GetSelectedValue()+".cur";};};PageControls.prototype.HighlightMode=function(){if(fL.currentAnnotationType==ANN_HIGHLIGHT)fL.SetAnnotationType(null);else fL.SetAnnotationType(ANN_HIGHLIGHT);};PageControls.prototype.SetHighlightIcon=function(Bk,Ci,Ob,ok,WU,p2){fL=this;fL.highlightIcon=Bk;fL.highlightColorMenuDiv=Ci;if(fL.annotsEditable){fL.ImageControls.push(Bk);fL.ImageControls.push(Ci);fL.TextControls.push(Bk);fL.TextControls.push(Ci);fL.SetHighlightDeselected();fL.highlightIcon.onclick=function(){fL.HighlightMode();};fL.highlightIcon.tabIndex=0;top.setKeyPressHandler(fL.highlightIcon,fL.pageToolsWin);}else{fL.highlightIcon.parentElement.style.display="none";fL.highlightColorMenuDiv.style.display="none";}fL.highlightIcon.onfocus=function(){fL.highlightIcon.childNodes[0].onmouseover();};fL.highlightIcon.onblur=function(){fL.highlightIcon.childNodes[0].onmouseout();};fL.highlightColorMenuDiv=fL.highlightColorMenuDiv;fL.highlightColorMenu=new top.ColorMenu(fL.highlightColorMenuDiv,"#"+WU,WU,p2,top.STR_COLORMENU_HIGHLIGHTS,fL.pageToolsWin);var ww=0;for(ww=0;ww<Ob.length;ww++){fL.highlightColorMenu.AddColor("#"+Ob[ww],Ob[ww],ok[ww]);}fL.highlightColorMenu.Enable();fL.highlightColorMenu.OnSelectedColorChanged=function(){fL.SetAnnotationType(ANN_HIGHLIGHT);};fL.highlightColorMenu.OnMenuOpen=function(){fL.stickyColorMenu.HideMenu();fL.redactionColorMenu.HideMenu();};};PageControls.prototype.SetHighlightDeselected=function(){this.setImgSwap(this.highlightIcon.childNodes[0],"images/Highlight.gif","images/Highlight_over.gif");if(fL.highlightColorMenu){fL.highlightColorMenu.HideMenu();fL.highlightColorMenu.OnSelectedColorChanged=function(){fL.SetAnnotationType(ANN_HIGHLIGHT);};}};PageControls.prototype.SetHighlightSelected=function(){this.setImgSwap(this.highlightIcon.childNodes[0],"images/Highlight_selected.gif","images/Highlight_selected.gif");};PageControls.prototype.RedactionMode=function(){if(fL.currentAnnotationType==ANN_BLACKOUTIMAGE)fL.SetAnnotationType(null);else fL.SetAnnotationType(ANN_BLACKOUTIMAGE);};PageControls.prototype.SetRedactionIcon=function(Sm,QD,WU,p2){fL=this;fL.redactionIcon=Sm;fL.redactionColorMenuDiv=QD;if(fL.annotsEditable&&fL.redactionsEditable){fL.ImageControls.push(Sm);fL.ImageControls.push(QD);fL.TextControls.push(Sm);fL.TextControls.push(QD);fL.SetRedactionDeselected();fL.redactionIcon.onclick=function(){fL.RedactionMode();};fL.redactionIcon.tabIndex=0;top.setKeyPressHandler(fL.redactionIcon,fL.pageToolsWin);}else{fL.redactionIcon.parentElement.style.display="none";if(fL.redactionColorMenuDiv)fL.redactionColorMenuDiv.style.display="none";}fL.redactionIcon.onfocus=function(){fL.redactionIcon.childNodes[0].onmouseover();};fL.redactionIcon.onblur=function(){fL.redactionIcon.childNodes[0].onmouseout();};fL.redactionColorMenu=new top.ColorMenu(fL.redactionColorMenuDiv,"#"+WU,WU,p2,top.STR_COLORMENU_REDACTIONS,fL.pageToolsWin);fL.redactionColorMenu.AddColor("#000000","000000",top.STR_COLOR_BLACK);fL.redactionColorMenu.AddColor("#FFFFFF","FFFFFF",top.STR_COLOR_WHITE);fL.redactionColorMenu.Enable();fL.redactionColorMenu.OnSelectedColorChanged=function(){fL.SetAnnotationType(ANN_BLACKOUTIMAGE);};fL.redactionColorMenu.OnMenuOpen=function(){fL.stickyColorMenu.HideMenu();fL.highlightColorMenu.HideMenu();};};PageControls.prototype.SetRedactionDeselected=function(){this.setImgSwap(this.redactionIcon.childNodes[0],"images/Redact.gif","images/Redact_over.gif");if(fL.redactionColorMenu){fL.redactionColorMenu.HideMenu();fL.redactionColorMenu.OnSelectedColorChanged=function(){fL.SetAnnotationType(ANN_BLACKOUTIMAGE);};}};PageControls.prototype.SetRedactionSelected=function(){this.setImgSwap(this.redactionIcon.childNodes[0],"images/Redact_selected.gif","images/Redact_selected.gif");};PageControls.prototype.SetHighLowQualityIcons=function(Di,T1){fL=this;fL.HighQualityIcon=Di;fL.LowQualityIcon=T1;fL.ImageControls.push(fL.HighQualityIcon);fL.ImageControls.push(fL.LowQualityIcon);if(fL.redactionIcon)fL.redactionIcon.tabIndex=0;top.setKeyPressHandler(fL.HighQualityIcon,fL.pageToolsWin);top.setKeyPressHandler(fL.LowQualityIcon,fL.pageToolsWin);fL.setImgSwap(fL.HighQualityIcon.childNodes[0],"images/HighQuality.gif","images/HighQuality_Over.gif");fL.setImgSwap(fL.LowQualityIcon.childNodes[0],"images/LowQuality.gif","images/LowQuality_Over.gif");if(this.ImageQualityHigh=="True"){fL.SetHighQualitySelected();fL.SetLowQualityDeselected();}else{fL.SetLowQualitySelected();fL.SetHighQualityDeselected();}fL.HighQualityIcon.onclick=function(){if(fL.ImageQualityHigh="FALSE"){fL.SetHighQualitySelected();fL.SetLowQualityDeselected();fL.ImageQualityHigh="True";fL.HidePage();fL.ShowPage();}};fL.LowQualityIcon.onclick=function(){if(fL.ImageQualityHigh="True"){fL.SetLowQualitySelected();fL.SetHighQualityDeselected();fL.ImageQualityHigh="False";fL.HidePage();fL.ShowPage();}};fL.HighQualityIcon.tabIndex=0;fL.HighQualityIcon.onfocus=fL.HighQualityIcon.childNodes[0].onmouseover;fL.HighQualityIcon.onblur=fL.HighQualityIcon.childNodes[0].onmouseout;fL.LowQualityIcon.tabIndex=0;fL.LowQualityIcon.onfocus=fL.LowQualityIcon.childNodes[0].onmouseover;fL.LowQualityIcon.onblur=fL.LowQualityIcon.childNodes[0].onmouseout;};PageControls.prototype.SetHighQualitySelected=function(){this.setImgSwap(this.HighQualityIcon.childNodes[0],"images/HighQuality_Selected.gif","images/HighQuality_Selected.gif");};PageControls.prototype.SetHighQualityDeselected=function(){this.setImgSwap(this.HighQualityIcon.childNodes[0],"images/HighQuality.gif","images/HighQuality_Over.gif");};PageControls.prototype.SetLowQualitySelected=function(){this.setImgSwap(this.LowQualityIcon.childNodes[0],"images/LowQuality_Selected.gif","images/LowQuality_Selected.gif");};PageControls.prototype.SetLowQualityDeselected=function(){this.setImgSwap(this.LowQualityIcon.childNodes[0],"images/LowQuality.gif","images/LowQuality_Over.gif");};PageControls.prototype.StampMode=function(){if(fL.currentAnnotationType==ANN_STAMP)fL.SetAnnotationType(null);else{fL.SetAnnotationType(ANN_STAMP);}};PageControls.prototype.SetStampIcon=function(T0){fL=this;fL.stampIcon=T0;if(fL.annotsEditable){fL.ImageControls.push(T0);fL.SetStampDeselected();fL.stampIcon.onclick=function(){fL.StampMode();};fL.stampIcon.tabIndex=0;top.setKeyPressHandler(fL.stampIcon,fL.pageToolsWin);}else fL.stampIcon.parentElement.style.display="none";T0.onfocus=function(){T0.childNodes[0].onmouseover();};T0.onblur=function(){T0.childNodes[0].onmouseout();};};PageControls.prototype.SetStampDeselected=function(){this.setImgSwap(this.stampIcon.childNodes[0],"images/StampBtnLeft.gif","images/StampBtnLeft_over.gif");this.sSelect=null;if(this.stampToolbarWin&&this.currentAnnotationType!=ANN_STAMP){this.stampToolbarWin.close();this.stampToolbarWin=null;}};PageControls.prototype.SetStampSelected=function(){this.setImgSwap(this.stampIcon.childNodes[0],"images/StampBtnLeft_selected.gif","images/StampBtnLeft_selected.gif");};PageControls.prototype.CreateStamp=function(n5,et){var fL=this;var xv="_"+(++fL.nextAnnotID);var I0;if(fL.sSelect.GetIsPublicStamp())I0=true;else I0=false;if((I0&&!fL.sSelect.GetPublicStampID())||(!I0&&fL.sSelect.fileInput.value.length==0)){alert(STR_STAMP_INSTRUCTIONS);return;}var sd=fL.sSelect.GetColor();var nn=fL.sSelect.GetPublicStampID();fL.lockSaveBtn();if(this.sSelect){var p_A=function(o4,Jh){if(o4&&Jh){var Zj;fL.SetDirty();if(I0)var Zj=new top.Stamp(et,n5,o4,Jh,xv,fL.docid,fL.pagenum,fL,nn,sd);else var Zj=new top.Stamp(et,n5,o4,Jh,xv,fL.docid,fL.pagenum,fL);}fL.releaseSaveBtn();};this.sSelect.CreateStamp(n5,et,this,p_A,xv);}};PageControls.prototype.SetAnnotationType=function(HU){var fL=this;if(!(fL.IsSaveBtnLocked()&&HU)){fL.currentAnnotationType=HU;fL.SetStickyDeselected();fL.SetHighlightDeselected();fL.SetRedactionDeselected();fL.SetStampDeselected();if(HU){var C8=function(jj){if(!jj){fL.sSelect=jj;fL.stampIcon.onkeydown=function(){return true;};fL.SetAnnotationType(null);}else if(jj.keyCode==TAB_KEY_CODE){if(jj.shiftKey)fL.stickyIcon.focus();else fL.zoomInBtn.focus();}else if(jj=="error"){fL.stampIcon.focus();fL.stampToolbarWin.focus();}else{fL.sSelect=jj;fL.imageDiv.style.cursor="images/stamp.cur";fL.stampIcon.onkeydown=function(g){g=top.getEvent(g,fL.imageWin.event,false);if(g.keyCode==TAB_KEY_CODE){fL.stampToolbarWin.focus();top.cancelEvent(g);return false;}};fL.releaseSaveBtn();fL.SetStampSelected();}};fL.imageDiv.onmousedown=function(g){g=top.getEvent(g,fL.imageWin.event,false);return fL.AddAnnotFun(g);};if(HU==ANN_HIGHLIGHT){fL.imageDiv.style.cursor="images/Highlight.cur";fL.textDiv.style.cursor="images/Highlight.cur";fL.SetHighlightSelected();}else if(HU==ANN_BLACKOUTIMAGE){fL.imageDiv.style.cursor="images/Redaction.cur";fL.textDiv.style.cursor="images/Redaction.cur";fL.SetRedactionSelected();}else if(HU==ANN_STICKYNOTE){fL.imageDiv.style.cursor="images/StickyNotes_"+fL.stickyColorMenu.GetSelectedValue()+".cur";fL.SetStickySelected();}else if(HU==ANN_STAMP){if(!top.VerifyConnection(this.dbid))return;if(!fL.stampToolbarWin){fL.lockSaveBtn();fL.stampToolbarWin=fL.pageToolsWin.showModelessDialog("StampSelect.asp",Array(C8,top),"dialogHeight:100px;dialogWidth:750px;help:no;scroll:no;status:no");}}}else{fL.imageDiv.style.cursor="default";fL.textDiv.style.cursor="default";}}};PageControls.prototype.GetAnnotationType=function(){return this.currentAnnotationType;};PageControls.prototype.IsSaveBtnLocked=function(){if(this.saveCounter<=0)return false;else return true;};PageControls.prototype.ClearHighlights=function(){while(this.annotDiv.childNodes.length>0){this.annotDiv.removeChild(this.annotDiv.childNodes[0]);}if(this.stickyDiv){while(this.stickyDiv.childNodes.length>0){this.stickyDiv.removeChild(this.stickyDiv.childNodes[0]);}this.noNoteText.style.visibility="visible";}};PageControls.prototype.ClearText=function(){while(this.textDiv.childNodes.length>0){this.textDiv.removeChild(this.textDiv.childNodes[0]);}};PageControls.prototype.HidePage=function(){if(this.imageTag)this.imageTag.src="spacer.gif";this.ClearText();this.ClearHighlights();};PageControls.prototype.LoadDocument=function(){if(!this.canAppend||!this.canWrite){this.DisableTextGeneration();this.DisableUploadEdoc();}if(this.pagecount>0){this.ShowImage();this.ShowPage();}else{this.HideControls();if(this.AllowPDF){this.HidePDFControls();}}this.ShowFields();if(this.docLinkTBody){this.bShowDocLinks=false;this.DisplayDocLinks();}else this.bShowDocLinks=true;if(this.verTable){this.bShowVersions=false;this.DisplayVersions();}else this.bShowVersions=true;if(this.compTable){this.bShowCompartments=false;this.DisplayCompartments();}else this.bShowCompartments=true;if(this.tagTable){this.bShowTags=false;this.DisplayTags();}else this.bShowTags=true;};PageControls.prototype.FindScaleFactor=function(){var fL=this;var m;if(this.imageWin){this.displayWidth=this.imageWin.document.body.clientWidth-20;this.displayHeight=this.imageWin.document.body.clientHeight-70;}if((fL.ImageWidth==0)||(fL.ImageHeight==0))m=3200;if(FIT_TO_WIDTH==fL.zoomPercentage)m=((10000<(10000*fL.displayWidth)/fL.ImageWidth)?10000:(10000*fL.displayWidth)/fL.ImageWidth);else if(FIT_TO_HEIGHT==fL.zoomPercentage)m=((10000<(10000*fL.displayHeight)/fL.ImageHeight)?10000:(10000*fL.displayHeight)/fL.ImageHeight);else m=(10000*fL.zoomPercentage)/100;return Math.round(m);};PageControls.prototype.LoadImage=function(){var fL=this;var tD=top.GetXMLDocument("HasImage.asp?page="+fL.pagenum+"&id="+fL.docid+"&dbid="+fL.dbid+"&hsearch="+fL.searchHandle);if(tD){if(tD.documentElement.getAttribute("HasImage")){fL.ImageWidth=tD.documentElement.getAttribute("Width");fL.ImageHeight=tD.documentElement.getAttribute("Height");fL.scale=this.FindScaleFactor();fL.zoomPercentage=Math.round((fL.scale*100)/10000);fL.SetZoomDropDownSel();var wa="ImageDisplay.asp?page="+fL.pagenum+"&id="+fL.docid+"&scale="+fL.scale+"&dbid="+fL.dbid+"&hsearch="+fL.searchHandle+"&ImageQualityHigh="+fL.ImageQualityHigh;if(fL.pagenum==fL.hitpage)wa+="&hitoffset="+fL.hitoffset;fL.AllowImageSwitching();if(fL.imageTag)fL.imageTag.src=wa;if(this.AllowPDF&&this.ShowPDFControls){this.ShowPDFControls();}}else{if(this.AllowPDF){this.HidePDFControls();}fL.ShowText(true);}}};PageControls.prototype.LoadText=function(){var fL=this;var tD=top.GetXMLDocument("GetDocumentText.asp?id="+fL.docid+"&page="+fL.pagenum+"&hsearch="+fL.searchHandle+"&dbid="+fL.dbid);if(tD){var IP=new top.Doctext(fL.topname);var iV="";var ToD=new Array();var c=tD.documentElement;var Dg=c.getElementsByTagName("Text");if(Dg.length>0){if(Dg.item(0).childNodes.length>0)iV=Dg.item(0).childNodes[0].nodeValue;}XS=new RegExp(String.fromCharCode(10),"g");iV=iV.replace(XS,String.fromCharCode(13,10));var Lr=c.getElementsByTagName("WordBoundaries");if(Lr.length>0){var LT9=Lr.item(0);var w9=LT9.getElementsByTagName("Item");for(var ww=0;ww<w9.length;++ww)ToD.push(w9.item(ww).text);}fL.CurrentDocumentText=IP;IP.ShowText(iV,null,false,ToD);fL.ShowAnnotations(false);}};PageControls.prototype.SetDirty=function(){this.bDirty=true;};PageControls.prototype.SetClean=function(){this.bDirty=false;};PageControls.prototype.AddAnnotation=function(g){var fL=this;if(top.getLMB(g)){var No=top.getOffsetY(g);var T6F=top.getOffsetX(g);if(fL.GetAnnotationType()==ANN_HIGHLIGHT||fL.GetAnnotationType()==ANN_BLACKOUTIMAGE){var f6Z=null;if(fL.GetAnnotationType()==ANN_HIGHLIGHT){f6Z=fL.highlightColorMenu.GetSelectedValue();}else{f6Z=fL.redactionColorMenu.GetSelectedValue();}top.cancelEvent(g);var jB=new top.Highlight(No,T6F,fL.GetAnnotationType(),"_"+(++this.nextAnnotID),this,f6Z);fL.catchHLResize=false;fL.imageDiv.onmouseup=function(){fL.imageDiv.onmouseup=null;fL.imageDiv.onmousemove=null;fL.catchHLResize=true;return jB.FinishDrawing();};fL.imageDiv.onmousemove=function(De){De=top.getEvent(De,fL.imageWin.event,true);return jB.ContinueDrawing(De);};return false;}else if(fL.GetAnnotationType()==ANN_STICKYNOTE){top.cancelEvent(g);var xv="_"+(++fL.nextAnnotID);var O4=fL.stickyColorMenu.GetSelectedColor().slice(1);if(top.GetXMLDocument("RecordStickyPosition.asp?docid="+fL.docid+"&page="+fL.pagenum+"&annotID="+xv+"&left="+T6F+"&top="+No+"&scale="+fL.scale+"&dbid="+fL.dbid+"&color="+O4)){var LJ=new top.StickyNote(T6F,No,"",fL.stickyDiv.childNodes.length+1,xv,fL,true,null,fL.stickyColorMenu.GetSelectedValue(),O4);fL.SetDirty();}return false;}else if(fL.GetAnnotationType()==ANN_STAMP){top.cancelEvent(g);fL.CreateStamp(No,T6F);return false;}}};PageControls.prototype.ShowAnnotations=function(KP){var fL=this;var M3;if(KP)M3="&onimage=true";else M3="&ontext=true";var tD=top.GetXMLDocument("GetAnnotations.asp?id="+fL.docid+"&page="+fL.pagenum+"&scale="+fL.scale+M3+"&dbid="+fL.dbid);if(tD){var c=tD.documentElement;if(KP){fL.HighlightsArray=new Array();var rH=c.getElementsByTagName("ImageHighlights");if(rH.length>0){var YM=rH.item(0).getElementsByTagName("Item");for(var ww=0;ww<YM.length;++ww){var NYl=YM.item(ww);var jB=new top.Highlight(parseInt(NYl.getAttribute("Top")),parseInt(NYl.getAttribute("Left")),top.ANN_HIGHLIGHT,NYl.getAttribute("ID"),fL,NYl.getAttribute("Color"));jB.Draw(parseInt(NYl.getAttribute("Width")),parseInt(NYl.getAttribute("Height")));fL.HighlightsArray.push(jB);}}var Mu=c.getElementsByTagName("ImageBlackouts");if(Mu.length>0){var o3=Mu.item(0).getElementsByTagName("Item");for(var ww=0;ww<o3.length;++ww){var NYl=o3.item(ww);var Pp=new top.Highlight(parseInt(NYl.getAttribute("Top")),parseInt(NYl.getAttribute("Left")),top.ANN_BLACKOUTIMAGE,NYl.getAttribute("ID"),fL,NYl.getAttribute("Color"));Pp.Draw(parseInt(NYl.getAttribute("Width")),parseInt(NYl.getAttribute("Height")));fL.HighlightsArray.push(Pp);}}fL.StickyNoteArray=new Array();var rr=c.getElementsByTagName("StickyNotes");if(rr.length>0){var pe=rr.item(0).getElementsByTagName("Item");for(var ww=0;ww<pe.length;++ww){var NYl=pe.item(ww);var hP="";if(NYl.childNodes.length>0)hP=NYl.childNodes[0].nodeValue;XS=new RegExp(String.fromCharCode(10),"g");hP=hP.replace(XS,String.fromCharCode(13,10));var LJ=new top.StickyNote(parseInt(NYl.getAttribute("XPosition")),parseInt(NYl.getAttribute("YPosition")),hP,ww+1,NYl.getAttribute("ID"),fL,this.ShowSticky==parseInt(NYl.getAttribute("ID")),this.StickyContextString,NYl.getAttribute("Color"),NYl.getAttribute("ColorString"));fL.StickyNoteArray.push(LJ);}}fL.StampsArray=new Array();var qs=c.getElementsByTagName("Stamps");if(qs.length>0){var Zs=qs.item(0).getElementsByTagName("Item");for(var ww=0;ww<Zs.length;++ww){var NYl=Zs.item(ww);var Zj=new top.Stamp(parseInt(NYl.getAttribute("XPosition")),parseInt(NYl.getAttribute("YPosition")),parseInt(NYl.getAttribute("Width")),parseInt(NYl.getAttribute("Height")),NYl.getAttribute("ID"),fL.docid,fL.pagenum,fL);fL.StampsArray.push(Zj);}}}else{fL.CurrentTextHighlights=new Array();var huU=c.getElementsByTagName("TextHighlights");if(huU.length>0){var L9=huU.item(0).getElementsByTagName("Item");for(var ww=0;ww<L9.length;++ww){var NYl=L9.item(ww);var jB=new top.TextHighlight(parseInt(NYl.getAttribute("Start")),parseInt(NYl.getAttribute("End")),top.ANN_HIGHLIGHTTEXT,NYl.getAttribute("ID"),this,NYl.getAttribute("Color"));fL.CurrentTextHighlights.push(jB);}}var dM=c.getElementsByTagName("TextBlackouts");if(dM.length>0){var ms=dM.item(0).getElementsByTagName("Item");for(var ww=0;ww<ms.length;++ww){var NYl=ms.item(ww);var Pp=new top.TextHighlight(parseInt(NYl.getAttribute("Start")),parseInt(NYl.getAttribute("End")),top.ANN_BLACKOUTTEXT,NYl.getAttribute("ID"),this,NYl.getAttribute("Color"));fL.CurrentTextHighlights.push(Pp);}}fL.RedisplayTextAnnotations();}fL.AddAnnotFun=function(g){g=top.getEvent(g,fL.imageWin.event,true);fL.AddAnnotation(g);};}};PageControls.prototype.SavePage=function(){var fL=this;if(!top.VerifyConnection(fL.dbid)){fL.SetClean();return;}var ju="SavePage.asp?id="+fL.docid+"&toctype=d&dbid="+fL.dbid;if(fL.pagecount>0)ju+="&page="+fL.pagenum;if(top.GetXMLDocument(ju)){fL.SetClean();fL.ClearHighlights();fL.ClearText();if(fL.pagecount>0){fL.ShowAnnotations(true);fL.LoadText();}fL.ShowFields();fL.DisplayDocLinks();fL.DisplayVersions();fL.DisableDelete();}};PageControls.prototype.clearImgSwap=function(mj){mj.src=null;mj.onmouseover=null;mj.onmouseout=null;};PageControls.prototype.setImgSwap=function(mj,ju,Ne){mj.src=ju;mj.onmouseover=this.getImgSwapFun(mj,Ne,true);mj.onmouseout=this.getImgSwapFun(mj,ju,false);};PageControls.prototype.getImgSwapFun=function(mj,ju,Lt){var fL=this;var zX=function(){if(!Lt||!fL.IsSaveBtnLocked())mj.src=ju;};return zX;};PageControls.prototype.DisableNextPage=function(){for(var ww=0;ww<this.pgDnBtns.length;ww++){this.setImgSwap(this.pgDnBtns[ww].childNodes[0],"images/rightarrow_disabled.gif","images/rightarrow_disabled.gif");this.pgDnBtns[ww].onfocus=this.pgDnBtns[ww].childNodes[0].onmouseover;this.pgDnBtns[ww].onblur=this.pgDnBtns[ww].childNodes[0].onmouseout;this.pgDnBtns[ww].tabIndex=-1;}for(var ww=0;ww<this.pgEndBtns.length;ww++){this.setImgSwap(this.pgEndBtns[ww].childNodes[0],"images/rightarrowline_disabled.gif","images/rightarrowline_disabled.gif");this.pgEndBtns[ww].onfocus=this.pgEndBtns[ww].childNodes[0].onmouseover;this.pgEndBtns[ww].onblur=this.pgEndBtns[ww].childNodes[0].onmouseout;this.pgEndBtns[ww].tabIndex=-1;}};PageControls.prototype.EnableNextPage=function(){if(this.pgDnBtns){for(var ww=0;ww<this.pgDnBtns.length;ww++){this.setImgSwap(this.pgDnBtns[ww].childNodes[0],"images/rightarrow.gif","images/rightarrow_over.gif");this.pgDnBtns[ww].onfocus=this.pgDnBtns[ww].childNodes[0].onmouseover;this.pgDnBtns[ww].onblur=this.pgDnBtns[ww].childNodes[0].onmouseout;this.pgDnBtns[ww].tabIndex=0;}}if(this.pgEndBtns){for(var ww=0;ww<this.pgEndBtns.length;ww++){this.setImgSwap(this.pgEndBtns[ww].childNodes[0],"images/rightarrowline.gif","images/rightarrowline_over.gif");this.pgEndBtns[ww].onfocus=this.pgEndBtns[ww].childNodes[0].onmouseover;this.pgEndBtns[ww].onblur=this.pgEndBtns[ww].childNodes[0].onmouseout;this.pgEndBtns[ww].tabIndex=0;}}};PageControls.prototype.DisablePrevPage=function(){if(this.pgUpBtns){for(var ww=0;ww<this.pgUpBtns.length;ww++){this.setImgSwap(this.pgUpBtns[ww].childNodes[0],"images/leftarrow_disabled.gif","images/leftarrow_disabled.gif");this.pgUpBtns[ww].onfocus=this.pgUpBtns[ww].childNodes[0].onmouseover;this.pgUpBtns[ww].onblur=this.pgUpBtns[ww].childNodes[0].onmouseout;this.pgUpBtns[ww].tabIndex=-1;}}if(this.pgStartBtns){for(var ww=0;ww<this.pgStartBtns.length;ww++){this.setImgSwap(this.pgStartBtns[ww].childNodes[0],"images/leftarrowline_disabled.gif","images/leftarrowline_disabled.gif");this.pgStartBtns[ww].onfocus=this.pgStartBtns[ww].childNodes[0].onmouseover;this.pgStartBtns[ww].onblur=this.pgStartBtns[ww].childNodes[0].onmouseout;this.pgStartBtns[ww].tabIndex=-1;}}};PageControls.prototype.EnablePrevPage=function(){for(var ww=0;ww<this.pgUpBtns.length;ww++){this.setImgSwap(fL.pgUpBtns[ww].childNodes[0],"images/leftarrow.gif","images/leftarrow_over.gif");this.pgUpBtns[ww].onfocus=this.pgUpBtns[ww].childNodes[0].onmouseover;this.pgUpBtns[ww].onblur=this.pgUpBtns[ww].childNodes[0].onmouseout;this.pgUpBtns[ww].tabIndex=0;}for(var ww=0;ww<this.pgStartBtns.length;ww++){this.setImgSwap(fL.pgStartBtns[ww].childNodes[0],"images/leftarrowline.gif","images/leftarrowline_over.gif");this.pgStartBtns[ww].onfocus=this.pgStartBtns[ww].childNodes[0].onmouseover;this.pgStartBtns[ww].onblur=this.pgStartBtns[ww].childNodes[0].onmouseout;this.pgStartBtns[ww].tabIndex=0;}};PageControls.prototype.ShowPage=function(){this.LoadImage();this.LoadText();if(this.noNoteText){this.bShowImageAnnots=false;this.ShowAnnotations(true);}else this.bShowImageAnnots=true;this.DisplayPageNum();};PageControls.prototype.DisplayPageNum=function(){var fL=this;if(fL.pagenum<fL.pagecount)fL.EnableNextPage();else fL.DisableNextPage();if(fL.pagenum>1)fL.EnablePrevPage();else fL.DisablePrevPage();if(fL.pageNumberInput)fL.pageNumberInput.value=fL.pagenum;if(fL.pdfStartInput)fL.pdfStartInput.value=fL.pagenum;if(fL.pdfEndInput)fL.pdfEndInput.value=fL.pagecount;if(fL.numPagesSpan)fL.numPagesSpan.innerHTML=fL.pagecount;};PageControls.prototype.ChangePage=function(TW){var fL=this;if(TW<=fL.pagecount){fL.PromptForSave(false);fL.HidePage();fL.pagenum=TW;if(fL.pagenum>0)fL.ShowPage();}};PageControls.prototype.PromptForSave=function(sH){var fL=this;if(sH&&fL.stampToolbarWin){fL.stampToolbarWin.close();}if(this.bDirty){if(!top.VerifyConnection(this.dbid))return;var Myq="?id="+this.docid+"&toctype=d&closepage=yes&dbid="+this.dbid;if(this.pagenum)Myq+="&page="+this.pagenum;if(sH){Myq+="&closedoc=yes";}var um="SavePrompt.asp"+Myq;if(confirm(STR_SAVE_CHANGES_CAPTION))top.GetXMLDocument("SavePage.asp"+Myq);else top.GetXMLDocument("ClosePage.asp"+Myq);this.SetClean();}else{if(!top.VerifyConnection(this.dbid))return;this.CloseDoc(sH,false);}};PageControls.prototype.CloseDoc=function(sH,jJ){var ju="ClosePage.asp?id="+this.docid+"&dbid="+this.dbid+"&toctype=d";if(this.pagenum)ju+='&page='+this.pagenum;if(sH)ju+="&closedoc=yes";top.GetXMLDocument(ju);if(jJ)top.close();};PageControls.prototype.Refresh=function(AR){var fL=this;if(AR){fL.SetClean();}fL.PromptForSave(true);fL.HidePage();var tD=top.GetXMLDocument("ReopenDocument.asp?id="+fL.docid+"&toctype=d&dbid="+fL.dbid);if(tD){var c=tD.documentElement;var OT=c.getAttribute("PageCount");var Jyt=c.getAttribute("Handle");fL.dochandle=Jyt;fL.CorrectPageNum(fL.pagenum,OT);fL.LoadDocument();fL.thumbDisplay.DisplayThumbSet(true);}};PageControls.prototype.OKToOpenDoc=function(){return!(this.IsSaveBtnLocked());};PageControls.prototype.ShowFields=function(){var fL=this;fL.ReadyToShowFields=function(){var tD=top.GetXMLDocument("TemplateSchema.asp?dbid="+fL.dbid+"&tocid="+fL.docid+"&toctype=d");if(tD){var v1=new Array();top.FieldsFromXML(tD,v1);var x3=tD.documentElement.getAttribute("ID");fL.fieldDisp.DisplayFields(v1,x3,fL,fL.docid,"d",fL.fieldsEditable,fL.dbid);if(x3)fL.templateSelect.value=x3;else fL.templateSelect.value="0";}fL.ReadyToShowFields=null;};if(fL.fieldDisp)fL.ReadyToShowFields();};PageControls.prototype.CorrectPageNum=function(obA,rAG){this.pagecount=rAG;if(obA==0&&rAG>0)obA=1;this.pagenum=Math.min(obA,rAG);this.DisplayPageNum();};PageControls.prototype.DisplayDocLinks=function(){var fL=this;while(fL.docLinkTBody.childNodes.length>0){fL.docLinkTBody.removeChild(fL.docLinkTBody.childNodes[0]);}var tD=top.GetXMLDocument("GetDocumentLinks.asp?id="+fL.docid+"&dbid="+fL.dbid);if(tD){var c=tD.documentElement;var el=c.getElementsByTagName("Item");for(var ww=0;ww<el.length;++ww){var RUL=el.item(ww);var TD=new top.DocLink(RUL.getAttribute("ID"),RUL.getAttribute("Type"),RUL.getAttribute("OtherDocID"),RUL.getAttribute("OtherDocName"),RUL.getAttribute("OtherDocIconSrc"),RUL.getAttribute("OtherDocIconAlt"),RUL.getAttribute("OtherDocIconWidth"),RUL.getAttribute("OtherDocIconHeight"),RUL.getAttribute("RelationCodeForThisDoc"),RUL.getAttribute("bothRecords"),fL.topname);}}};PageControls.prototype.SetDocLinkTBody=function(lG,zT3){this.docLinkTBody=lG;this.linkTypes=zT3;if(this.bShowDocLinks){this.DisplayDocLinks();this.bShowDocLinks=false;}};PageControls.prototype.StoreVersion=function(w4){this.DocVersions.push(w4);};PageControls.prototype.RemoveVersion=function(w4){for(var ww=0;ww<this.DocVersions.length;++ww){if(this.DocVersions[ww].versionNumber==w4.versionNumber){var eF=this.DocVersions.splice(ww,1);eF[0].ReleaseDOMElements();return;}}};PageControls.prototype.RemoveAllVersions=function(){for(var ww=0;ww<this.DocVersions.length;++ww)this.DocVersions[ww].ReleaseDOMElements();this.DocVersions=null;};PageControls.prototype.GetNextVersionNumber=function(){var m=2;for(var ww=0;ww<this.DocVersions.length;++ww){if(this.DocVersions[ww].versionNumber)m=Math.max(m,this.DocVersions[ww].versionNumber+1);}return m;};PageControls.prototype.AddedToVersionGroup=function(){fL.verTable.childNodes[0].childNodes[1].childNodes[0].innerHTML=this.DocVersions[0].versionNumber;};PageControls.prototype.RemovedFromVersionGroup=function(){fL.verTable.childNodes[0].childNodes[1].childNodes[0].innerHTML=STR_NONE;};PageControls.prototype.DisplayVersions=function(){var fL=this;while(fL.verTable.childNodes[0].childNodes.length>1){fL.verTable.childNodes[0].removeChild(fL.verTable.childNodes[0].childNodes[1]);}fL.DocVersions=new Array();var tD=top.GetXMLDocument("GetDocumentVersions.asp?id="+fL.docid+"&dbid="+fL.dbid);if(tD){var c=tD.documentElement;var S5=c.getElementsByTagName("Item");for(var ww=0;ww<S5.length;++ww){var Wm=S5.item(ww);fL.StoreVersion(new top.DocVersion(parseInt(Wm.getAttribute("Version")),Wm.getAttribute("ID"),Wm.getAttribute("Name"),Wm.getAttribute("HasWriteMeta")=="True",Wm.getAttribute("ImgSrc"),Wm.getAttribute("ImgAlt"),Wm.getAttribute("ImgWidth"),Wm.getAttribute("ImgHeight"),fL,Wm.getAttribute("Date"),Wm.getAttribute("Creator")));}}};PageControls.prototype.SetVersionTable=function(JxT){this.verTable=JxT;if(this.bShowVersions){this.DisplayVersions();this.bShowVersions=false;}};PageControls.prototype.SetDeleteVersionButton=function(fX,Kn){this.deleteVersionButton=fX;this.deleteVersionImage=Kn;};PageControls.prototype.SetImportVersionButton=function(bk){this.verImportVersionButton=bk;bk.onclick=function(){if(!top.VerifyConnection(fL.dbid))return;PageControls.prototype.AddNewVersion(false);};};PageControls.prototype.AddNewVersion=function(T65){if(!top.VerifyConnection(fL.dbid))return;if(fL.DocVersions[0].NeedToSaveBeforeAdd){if(!confirm(STR_NEED_TO_SAVE))return;if(!(fL.IsSaveBtnLocked()))fL.SavePage();while(fL.DocVersions.length>1){fL.DocVersions.pop();}fL.DocVersions[0].NeedToSaveBeforeAdd=false;}var Ii=fL.GetNextVersionNumber();if(T65){var Jo=top.lfShowModalDialog(fL.pageToolsWin,'DocumentPopupBrowser.asp?startid='+fL.parentID+'&dbid='+fL.dbid+'&CommentDialog=true'+'&docid='+fL.docid+'&versionnum='+Ii+'&LastestVersion='+fL.DocVersions[fL.DocVersions.length-1].docID,null,"help:no;scroll:no;status:no");if(Jo){var tD=top.GetXMLDocument("GetDocumentVersions.asp?id="+Jo.targetid+"&dbid="+fL.dbid);if(tD){var c=tD.documentElement;var S5=c.getElementsByTagName("Item");if(S5.length>1){if(!confirm(STR_DOC_ALREADY_VERSIONED.replace("{0}",fL.docname)))return;}}if(fL.DocVersions[0].versionNumber==0){fL.DocVersions[0].versionNumber=1;fL.AddedToVersionGroup();}fL.StoreVersion(new top.DocVersion(Ii,Jo.targetid,Jo.name,true,Jo.imgsrc,Jo.imgalt,Jo.imgwidth,Jo.imgheight,fL));fL.SetDirty();}}else{if(fL.isEdoc=="True")uv="&addedoc=yes";else uv="&imagedoc=yes";var tD=top.GetXMLDocument("CheckImportVolume.asp?dbid="+fL.dbid);if(tD){var c=tD.documentElement;if(c.getAttribute("Result")<=0){alert(top.STR_INVALID_VOLUME);return;}}var BE=top.lfShowModalDialog(window,"FieldPopup.asp?folderid="+fL.parentID+uv+"&dbid="+fL.dbid+"&ForVersion=true&VersionNum="+Ii+"&MetadataControlsDocID="+fL.docid,null,"help:no;scroll:no;status:no",0);if((BE!=null)&&(BE!=-1)){var tD=top.GetXMLDocument("GetDocumentVersions.asp?id="+BE+"&dbid="+fL.dbid);if(tD){var S5=tD.getElementsByTagName("Item");var Wm=S5.item(0);if(fL.DocVersions[0].versionNumber==0){fL.DocVersions[0].versionNumber=1;fL.AddedToVersionGroup();}fL.StoreVersion(new top.DocVersion(Ii,Wm.getAttribute("ID"),Wm.getAttribute("Name"),Wm.getAttribute("HasWriteMeta")=="True",Wm.getAttribute("ImgSrc"),Wm.getAttribute("ImgAlt"),Wm.getAttribute("ImgWidth"),Wm.getAttribute("ImgHeight"),fL));fL.SetDirty();}}}};PageControls.prototype.SetAddVersionButton=function(ev){var fL=this;fL.addVersionButton=ev;fL.addVersionButton.onclick=function(){if(!top.VerifyConnection(fL.dbid))return;PageControls.prototype.AddNewVersion(true);};};PageControls.prototype.RemoveVersionButton=function(){this.addVersionButton.onclick=null;this.addVersionButton=null;};PageControls.prototype.SetVersionDetailButton=function(Sw){this.verDetailsButton=Sw;};PageControls.prototype.SetTagDetailButton=function(dc){this.tagDetailButton=dc;};PageControls.prototype.DisplayCompartments=function(){var fL=this;while(fL.compTable.childNodes[0].childNodes.length>0){fL.compTable.childNodes[0].removeChild(fL.compTable.childNodes[0].childNodes[0]);}fL.lockSaveBtn();var k7="callbackfunc"+top.callbackNum++;var Wn=top.jsDiv.ownerDocument.createElement("iframe");Wn.style.width="0px";Wn.style.height="0px";top[k7]=function(Abc){top.jsDiv.removeChild(Wn);fL.releaseSaveBtn();};top.jsDiv.appendChild(Wn);Wn.src="GetDocumentCompartments.asp?id="+fL.docid+"&controls="+fL.topname+"&callback="+k7+"&dbid="+fL.dbid;};PageControls.prototype.SetCompartmentTable=function(fP){this.compTable=fP;if(this.bShowCompartments){this.DisplayCompartments();this.bShowCompartments=false;}};PageControls.prototype.DisplayTags=function(){var fL=this;while(fL.tagTable.childNodes[0].childNodes.length>1){fL.tagTable.childNodes[0].removeChild(fL.tagTable.childNodes[0].childNodes[1]);}var tD=top.GetXMLDocument("GetDocumentTags.asp?id="+fL.docid+"&dbid="+fL.dbid);if(tD){var c=tD.documentElement;var w9W=c.getElementsByTagName("Item");fL.ImageTags=new Array();for(var ww=0;ww<w9W.length;++ww){var VZ=w9W.item(ww);var Ea=VZ.getAttribute("Active")!=null;var rK=VZ.getAttribute("Secure")!=null;var ch=new top.Tag(VZ.getAttribute("ID"),VZ.getAttribute("Name"),Ea,rK,fL,VZ.getAttribute("Description"));fL.ImageTags.push(ch);}}};PageControls.prototype.SetTagTable=function(Ek5){this.tagTable=Ek5;if(this.bShowTags){this.DisplayTags();this.bShowTags=false;}};PageControls.prototype.lockSaveBtn=function(){this.imageWin.document.body.style.cursor="wait";this.imageWin.status=STR_LOADING;if(this.thumbDisplay)this.thumbDisplay.Disable();this.saveCounter++;return this.saveCounter;};PageControls.prototype.releaseSaveBtn=function(){if(--this.saveCounter<=0){if(this.imageWin){this.imageWin.document.body.style.cursor="auto";this.imageWin.status=STR_DOCUMENT_LOADED;}if(this.thumbDisplay)this.thumbDisplay.Enable();this.saveCounter=0;}return this.saveCounter;};PageControls.prototype.SetDividers=function(o8Z,uf,EZ,JhK){this.pdfDivider=o8Z;if(!this.AllowPDF){o8Z.style.display="none";}this.pagesDivider=uf;this.TextControls.push(uf);this.ImageControls.push(uf);this.annotDivider=EZ;if(this.annotsEditable){this.TextControls.push(EZ);this.ImageControls.push(EZ);}else{EZ.style.display="none";}this.zoomDivider=JhK;this.ImageControls.push(JhK);};PageControls.prototype.SetNumPagesSpan=function(KC){this.numPagesSpan=KC;};PageControls.prototype.ClearButton=function(v5){if(v5){if(v5.childNodes)this.clearImgSwap(v5.childNodes[0]);top.clearKeyPressHandler(v5);v5.onclick=null;v5.onfocus=null;v5.onblur=null;v5=null;}};PageControls.prototype.ClearColorMenu=function(v5){v5.OnSelectedColorChanged=null;v5.OnMenuOpen=null;v5.ReleaseDOMElements();};PageControls.prototype.ReleaseDOMElements=function(){while(this.TextControls.length){this.TextControls.pop();}this.TextControls=null;while(this.ImageControls.length){this.ImageControls.pop();}this.ImageControls=null;this.ClearButton(this.refreshBtn);this.refreshBtn=null;this.ClearButton(this.scanBtn);this.scanBtn=null;this.ClearButton(this.deleteBtn);this.deleteBtn=null;this.ClearButton(this.imageBtn);this.imageBtn=null;this.ClearButton(this.textBtn);this.textBtn=null;this.ClearButton(this.highlightIcon);this.highlightColorMenuDiv=null;this.highlightIcon.OnSelectedColorChanged=null;this.highlightIcon.OnMenuOpen=null;this.highlightIcon=null;this.ClearButton(this.redactionIcon);this.redactionIcon=null;this.redactionColorMenuDiv=null;this.ClearButton(this.stickyIcon);this.stickyColorMenuDiv=null;this.stickyIcon=null;this.ClearButton(this.stampIcon);this.stampIcon=null;this.ClearButton(this.zoomInBtn);this.zoomInBtn=null;this.ClearButton(this.zoomOutBtn);this.zoomOutBtn=null;this.ClearButton(this.rotateLeftBtn);this.rotateLeftBtn=null;this.ClearButton(this.rotateRightBtn);this.rotateRightBtn=null;this.ClearButton(this.pdfIcon);this.pdfIcon=null;this.ClearButton(this.editTextBtn);this.editTextBtn=null;this.ClearButton(this.showEdocBtn);this.showEdocBtn=null;this.ClearButton(this.uploadEdocBtn);this.uploadEdocBtn=null;this.ClearButton(this.snapshotBtn);this.snapshotBtn=null;this.ClearButton(this.extractBtn);this.extractBtn=null;this.ClearButton(this.saveBtn);this.saveBtn=null;this.ClearButton(this.HighQualityIcon);this.HighQualityIcon=null;this.ClearButton(this.LowQualityIcon);this.LowQualityIcon=null;if(this.HighlightsArray){for(var ww=0;ww<this.HighlightsArray.length;ww++)this.HighlightsArray[ww].ReleaseDOMElements();this.HighlightsArray=null;}if(this.StickyNoteArray){for(var ww=0;ww<this.StickyNoteArray.length;ww++)this.StickyNoteArray[ww].ReleaseDOMElements();this.StickyNoteArray=null;}if(fL.StampsArray){for(var ww=0;ww<this.StampsArray.length;ww++)this.StampsArray[ww].ReleaseDOMElements();this.StampsArray=null;}if(this.ImageTags){for(var ww=0;ww<this.ImageTags.length;ww++)this.ImageTags[ww].ReleaseDOMElements();this.ImageTags=null;}if(this.CurrentTextHighlights){for(var ww=0;ww<this.CurrentTextHighlights.length;ww++)this.CurrentTextHighlights[ww].ReleaseDOMElements();this.CurrentTextHighlights=null;}if(this.highlightColorMenu){this.ClearColorMenu(this.highlightColorMenu);this.highlightColorMenu=null;}if(this.redactionColorMenu){this.ClearColorMenu(this.redactionColorMenu);this.redactionColorMenu=null;}if(this.stickyColorMenu){this.ClearColorMenu(this.stickyColorMenu);this.stickyColorMenu=null;}if(this.pgUpBtns){for(var ww=0;ww<this.pgUpBtns.length;ww++){this.ClearButton(this.pgUpBtns[ww]);this.pgUpBtns[ww]=null;}this.pgUpBtns=null;}if(this.pgStartBtns){for(var ww=0;ww<this.pgStartBtns.length;ww++){this.ClearButton(this.pgStartBtns[ww]);this.pgStartBtns[ww]=null;}this.pgStartBtns=null;}if(this.pgDnBtns){for(var ww=0;ww<this.pgDnBtns.length;ww++){this.ClearButton(this.pgDnBtns[ww]);this.pgDnBtns[ww]=null;}this.pgDnBtns=null;}if(this.pgEndBtns){for(var ww=0;ww<this.pgEndBtns.length;ww++){this.ClearButton(this.pgEndBtns[ww]);this.pgEndBtns[ww]=null;}this.pgEndBtns=null;}if(this.ZoomDropDownItem){this.ZoomDropDownItem.onchange=null;this.ZoomDropDownItem=null;}if(this.pdfStartInput){this.pdfStartInput.onkeypress=null;this.pdfStartInput=null;}if(this.pdfEndInput){this.pdfEndInput.onkeypress=null;this.pdfEndInput=null;}if(this.pageNumberInput){this.pageNumberInput.onkeypress=null;this.pageNumberInput=null;}this.refreshBtn=null;if(this.scrollDiv){this.scrollDiv.onkeydown=null;this.scrollDiv=null;}if(this.textDiv){this.textDiv.onmouseup=null;this.textDiv=null;}if(this.imageTag){this.imageTag.ondragstart=null;this.imageTag=null;}this.docLinkTBody=null;this.linkTypes=null;this.imageDiv=null;if(this.imageWin){this.imageWin.document.onkeydown=null;this.imageWin=null;}if(this.CurrentDocumentText){this.CurrentDocumentText.ReleaseDOMElements();this.CurrentDocumentText=null;}this.scrollDiv=null;this.textElement=null;this.imageElement=null;this.textWin=null;this.textForm=null;this.textAnnotForm=null;this.annotDiv=null;this.stickyDiv=null;this.pdfDivider=null;this.noNoteText=null;this.VersionsCheckedOutByOther=null;if(this.fieldDisp){this.fieldDisp.ReleaseDOMElements();this.fieldDisp=null;}this.templateSelect=null;this.pageToolsWin=null;this.pgUpBtns=null;this.pgStartBtns=null;this.pgDnBtns=null;this.pgEndBtns=null;this.pageNumberInput=null;this.imageBtn=null;this.textBtn=null;if(this.thumbDisplay){this.thumbDisplay.ReleaseDOMElements();this.thumbDisplay=null;}this.zoomInBtn=null;this.zoomOutBtn=null;this.pdfStartInput=null;this.pdfEndInput=null;this.deleteLinkBtn=null;this.deleteLinkImage=null;this.DeleteFun=null;this.highlightIcon=null;this.stampIcon=null;this.verTable=null;this.deleteVersionButton=null;this.deleteVersionImage=null;if(this.verImportVersionButton){this.verImportVersionButton.onclick=null;this.verImportVersionButton=null;}if(this.addVersionButton){this.addVersionButton.onclick=null;this.addVersionButton=null;}this.verDetailsButton=null;this.verImportVersionButton=null;this.tagTable=null;this.pagesDivider=null;this.annotDivider=null;this.zoomDivider=null;this.numPagesSpan=null;this.HidePDFControls=null;this.ShowPDFControls=null;this.tagDetailButton=null;this.RemoveAllVersions();};var POPUP_ROW_COUNT=10;function PopupBrowser(es,c_,pOx,wFo,rB,GD,i,T,i4,K,uh,Zg){var tDR=this;this.myWin=GD;this.myTBody=es;this.OKBtn=pOx;this.parentFolderIcon=c_;this.dbid=T;this.SelectCallback=i4;this.forbiddenID=uh;this.parentFolderLabel=Zg;this.showDocs=wFo;this.SelectFolders=rB;this.OKBtn.disabled=true;this.setImgSwap(this.parentFolderIcon.childNodes[0],"images/ParentFolderBtn.gif","images/ParentFldBtn_over.gif");top.setKeyPressHandler(c_,GD);c_.tabIndex=0;this.selectedEntries=new Array();this.rootFolder=new top.Folder(i,'f',ROOT_FOLDER_ID,ROOT_FOLDER_ID,FOLDER_ICON,STR_FOLDER,FOLDER_ICON_WIDTH,FOLDER_ICON_HEIGHT);if(K&&K!=ROOT_FOLDER_ID){var tD=top.GetXMLDocument("GetLinkToPath.asp?id="+K+"&dbid="+this.GetDBID());if(tD){var Ws=new Array();top.EntriesFromXML(tD,Ws);Ws[0].parentFolder=tDR.rootFolder;Ws[0].browser=tDR;for(var ww=1;ww<Ws.length;ww++){Ws[ww].parentFolder=Ws[ww-1];Ws[ww].browser=tDR;}tDR.parentFolder=Ws[Ws.length-2];Ws[Ws.length-1].ShowContents(tDR,tDR.GetDBID());}}else{this.parentFolder=null;this.rootFolder.ShowContents(this,T);}};PopupBrowser.prototype.allowsDragging=function(){return false;};PopupBrowser.prototype.FoldersOpenInFrame=function(){return true;};PopupBrowser.prototype.AllowMultilineName=function(){return false;};PopupBrowser.prototype.WaitingForControls=function(){return false;};PopupBrowser.prototype.GetUnhighlightedClass=function(){return"";};PopupBrowser.prototype.GetDBID=function(){return this.dbid;};PopupBrowser.prototype.setImgSwap=function(mj,ju,Ne){var tDR=this;mj.src=ju;mj.onmouseover=function(){mj.src=Ne;};mj.onmouseout=function(){mj.src=ju;};this.parentFolderIcon.onclick=function(){tDR.OpenParentFolder();};this.parentFolderIcon.onfocus=this.parentFolderIcon.childNodes[0].onmouseover;this.parentFolderIcon.onblur=this.parentFolderIcon.childNodes[0].onmouseout;};PopupBrowser.prototype.setImgDisabled=function(mj,ju){mj.src=ju;mj.onmouseover=null;mj.onmouseout=null;this.parentFolderIcon.onclick=null;this.parentFolderIcon.onfocus=null;this.parentFolderIcon.onblur=null;};PopupBrowser.prototype.drawFolderContents=function(G,t_){if(this.parentFolderLabel&&G){var tD=top.GetXMLDocument("GetFullPath.asp?id="+G.id+"&dbid="+this.GetDBID());if(tD)this.parentFolderLabel.innerText=tD.documentElement.text;else this.parentFolderLabel.innerText="";}this.Clear();this.entries=t_;for(ww=0;ww<t_.length;ww++){var RVa=t_[ww];if(G)G.setChild(RVa);this.drawEntry(RVa,ww);}if(G){this.currentFolder=G;}if(this.currentFolder.id==ROOT_FOLDER_ID){this.setImgDisabled(this.parentFolderIcon.childNodes[0],"images/ParentFolderBtn_disabled.gif");}else if(!this.parentFolderIcon.onclick){this.setImgSwap(this.parentFolderIcon.childNodes[0],"images/ParentFolderBtn.gif","images/ParentFldBtn_over.gif");}};PopupBrowser.prototype.AddEntry=FolderBrowser.prototype.AddEntry;PopupBrowser.prototype.AddSelectedEntry=FolderBrowser.prototype.AddSelectedEntry;PopupBrowser.prototype.GetSelectedEntries=FolderBrowser.prototype.GetSelectedEntries;PopupBrowser.prototype.SelectNoEntries=FolderBrowser.prototype.SelectNoEntries;PopupBrowser.prototype.Clear=function(){for(var ww=0;ww<this.myTBody.childNodes.length;ww++){var s7=this.myTBody.childNodes[ww];while(s7.childNodes.length>0)s7.removeChild(s7.childNodes[0]);}this.currentFolder=null;};PopupBrowser.prototype.SetSelectedEntry=function(RVa){this.SelectNoEntries();this.AddSelectedEntry(RVa);if(RVa.id==this.forbiddenID)this.OKBtn.disabled=true;else if(this.SelectFolders)this.OKBtn.disabled=!RVa.isFolder();else this.OKBtn.disabled=RVa.isFolder();if(this.SelectCallback)this.SelectCallback(!this.OKBtn.disabled);};PopupBrowser.prototype.drawEntry=function(RVa,CB){var tDR=this;this.AddEntry(RVa);var DMj=this.myTBody.childNodes.length;var WWh=this.myTBody.childNodes[0].childNodes.length/2;var Jn=CB%DMj;var jo=(CB-Jn)/DMj;while(jo>=WWh){for(var ww=0;ww<DMj;ww++){var s7=this.myTBody.childNodes[ww];s7.appendChild(s7.ownerDocument.createElement("td"));s7.appendChild(s7.ownerDocument.createElement("td"));}WWh++;}var tS=this.myTBody.childNodes[Jn].childNodes[jo*2];tS.align="center";tS.width="32";tS.style.position="relative";var Ttq=this.myTBody.ownerDocument.createElement("img");tS.appendChild(Ttq);RVa.SetIcon(Ttq);var ze=this.myTBody.childNodes[Jn].childNodes[jo*2+1];ze.style.position="relative";ze.id=RVa.id+"docdatum";RVa.SetNameDatum(ze);RVa.myRow=ze;RVa.UnHighlightNode();ze.tabIndex=0;ze.onkeypress=function(g){g=top.getEvent(g,tDR.myWin.event,false);if(g.keyCode==SPACE_BAR_KEY_CODE){top.cancelEvent(g);Ttq.onmousedown();}else if(g.keyCode==ENTER_KEY_CODE){top.cancelEvent(g);if(tDR.GetSelectedEntries().length>0)tDR.GetSelectedEntries()[0].DblClickFunc();}};};PopupBrowser.prototype.RequestFocus=function(){};PopupBrowser.prototype.GetFocus=FolderBrowser.prototype.GetFocus;PopupBrowser.prototype.OpenParentFolder=function(){if(this.currentFolder){if(this.currentFolder.id==ROOT_FOLDER_ID)this.drawFolderContents(null,new Array(this.currentFolder),1,1);else if(this.currentFolder.parentFolder)this.currentFolder.parentFolder.ShowContents(this,this.dbid);}};PopupBrowser.prototype.OpenSelectedDocument=function(){this.OKBtn.click();};function SearchElementText(WO){this.sf=WO;}SearchElementText.prototype.Display=function(fW){this.CreateHeader(fW);this.CreateInputs();this.Show();};SearchElementText.prototype.Show=function(){this.DisplayDiv.style.display="block";};SearchElementText.prototype.Hide=function(){this.DisplayDiv.style.display="none";};SearchElementText.prototype.IsHidden=function(){return this.DisplayDiv.style.display=="none";};SearchElementText.prototype.CreateHeader=function(fW){var RI=this;var Ss=fW.ownerDocument;RI.DisplayDiv=Ss.createElement("div");fW.appendChild(RI.DisplayDiv);RI.HeaderDiv=Ss.createElement("div");RI.HeaderDiv.className="SearchFormElementHeader";RI.CriteriaDiv=Ss.createElement("div");RI.CriteriaDiv.className="SearchFormElementCriteria";RI.DisplayDiv.appendChild(RI.HeaderDiv);RI.DisplayDiv.appendChild(RI.CriteriaDiv);RI.TitleText=Ss.createElement("div");RI.TitleText.className="SearchHeaderText";RI.TitleText.appendChild(Ss.createTextNode(RI.GetTitleText()));RI.HeaderDiv.appendChild(RI.TitleText);var WC=Ss.createElement("div");WC.className="SearchHeaderLinksDiv";RI.CloseLink=Ss.createElement("a");RI.CloseLink.className="SearchCloseLink";RI.CloseLink.onclick=function(){RI.Hide();RI.sf.SaveOptions();return false;};RI.CloseLink.href=top.STR_CLOSE;RI.HelpLink=Ss.createElement("a");RI.HelpLink.className="SearchHelpLink";RI.HelpLink.onclick=function(){RI.ToggleHelp();return false;};RI.HelpLink.href=top.STR_HELP;WC.appendChild(RI.HelpLink);WC.appendChild(RI.CloseLink);RI.HeaderDiv.appendChild(WC);RI.HelpDiv=Ss.createElement("HelpDiv");RI.HelpDiv.appendChild(Ss.createTextNode(RI.GetHelpText()));RI.HelpDiv.style.display="none";RI.HelpDiv.className="SearchFormHelpDiv";RI.CriteriaDiv.appendChild(RI.HelpDiv);};SearchElementText.prototype.ToggleHelp=function(){if(this.HelpDiv.style.display=="none")this.HelpDiv.style.display="block";else this.HelpDiv.style.display="none";};SearchElementText.prototype.GetTitleText=function(){return top.STR_TEXT;};SearchElementText.prototype.GetHelpText=function(){return top.STR_HELP_TEXT;};SearchElementText.prototype.CreateInputs=function(){var aV=this;var Ss=this.CriteriaDiv.ownerDocument;var Cr=Ss.createElement("div");Cr.style.marginBottom="5px";aV.BasicTabLink=Ss.createElement("a");aV.BasicTabLink.appendChild(Ss.createTextNode(top.STR_BASIC_TEXT_SEARCH));aV.BasicTabLink.href=top.STR_BASIC_TEXT_SEARCH;aV.AdvancedTabLink=Ss.createElement("a");aV.AdvancedTabLink.appendChild(Ss.createTextNode(top.STR_ADVANCED_TEXT_SEARCH));aV.AdvancedTabLink.href=top.STR_ADVANCED_TEXT_SEARCH;aV.BasicTabLink.onclick=function(){aV.BasicTabLink.className="SearchElementTextTabSelected";aV.AdvancedTabLink.className="SearchElementTextTabActive";aV.BasicUISpan.style.display="inline";aV.AdvancedUISpan.style.display="none";aV.HelpDiv.innerText=top.STR_HELP_TEXT;return false;};aV.AdvancedTabLink.onclick=function(){aV.BasicTabLink.className="SearchElementTextTabActive";aV.AdvancedTabLink.className="SearchElementTextTabSelected";aV.BasicUISpan.style.display="none";aV.AdvancedUISpan.style.display="inline";aV.HelpDiv.innerText=top.STR_HELP_ADVANCED;return false;};Cr.appendChild(aV.BasicTabLink);Cr.appendChild(aV.AdvancedTabLink);aV.BasicUISpan=Ss.createElement("span");var WJ=Ss.createElement("div");aV.SearchPhrase1Box=Ss.createElement("input");aV.SearchPhrase1Box.type="text";aV.SearchPhrase1Box.size=20;aV.SearchPhrase1Box.onkeypress=aV.sf.KeyPressHandler;WJ.appendChild(Ss.createTextNode(top.STR_PHRASE+":"));WJ.appendChild(Ss.createElement("br"));WJ.appendChild(aV.SearchPhrase1Box);var eo=Ss.createElement("div");aV.PhraseRadio=Ss.createElement("input");aV.PhraseRadio.type="radio";aV.PhraseRadio.name="BooleanType";aV.PhraseRadio.id="SearchElementTextPhraseRadio";aV.PhraseRadio.checked=true;var Rd=Ss.createElement("label");Rd.htmlFor="SearchElementTextPhraseRadio";Rd.appendChild(Ss.createTextNode(top.STR_PHRASE));aV.AndRadio=Ss.createElement("input");aV.AndRadio.type="radio";aV.AndRadio.name="BooleanType";aV.AndRadio.id="SearchElementTextAndRadio";var XG=Ss.createElement("label");XG.htmlFor="SearchElementTextAndRadio";XG.appendChild(Ss.createTextNode(top.STR_AND));aV.OrRadio=Ss.createElement("input");aV.OrRadio.type="radio";aV.OrRadio.name="BooleanType";aV.OrRadio.id="SearchElementTextOrRadio";var Ys=Ss.createElement("label");Ys.htmlFor="SearchElementTextOrRadio";Ys.appendChild(Ss.createTextNode(top.STR_OR));aV.NotRadio=Ss.createElement("input");aV.NotRadio.type="radio";aV.NotRadio.name="BooleanType";aV.NotRadio.id="SearchElementTextNotRadio";var am=Ss.createElement("label");am.htmlFor="SearchElementTextNotRadio";am.appendChild(Ss.createTextNode(top.STR_NOT));aV.WithinRadio=Ss.createElement("input");aV.WithinRadio.type="radio";aV.WithinRadio.name="BooleanType";aV.WithinRadio.id="SearchElementTextWithinRadio";var gnp=Ss.createElement("label");gnp.htmlFor="SearchElementTextWithinRadio";gnp.appendChild(Ss.createTextNode(top.STR_WITHIN));aV.PhraseRadio.onclick=function(){aV.RadioChanged(aV.PhraseRadio);};aV.AndRadio.onclick=function(){aV.RadioChanged(aV.AndRadio);};aV.OrRadio.onclick=function(){aV.RadioChanged(aV.OrRadio);};aV.NotRadio.onclick=function(){aV.RadioChanged(aV.NotRadio);};aV.WithinRadio.onclick=function(){aV.RadioChanged(aV.WithinRadio);};eo.appendChild(aV.PhraseRadio);eo.appendChild(Rd);eo.appendChild(aV.AndRadio);eo.appendChild(XG);eo.appendChild(aV.OrRadio);eo.appendChild(Ys);eo.appendChild(aV.NotRadio);eo.appendChild(am);eo.appendChild(aV.WithinRadio);eo.appendChild(gnp);aV.WithinDiv=Ss.createElement("div");aV.WithinDiv.style.marginTop="5px";aV.WithinBox=Ss.createElement("input");aV.WithinBox.type="text";aV.WithinBox.size=3;aV.WithinBox.style.width="32px";aV.WithinBox.style.marginRight="5px";aV.WithinSelect=Ss.createElement("select");var TX=Ss.createElement("option");TX.text=top.STR_CHARACTERS_OF;TX.value=1;var VE=Ss.createElement("option");VE.text=top.STR_SENTENCES_WORDS;VE.value=10;var UR=Ss.createElement("option");UR.text=top.STR_PARAGRAPHS_WORDS;UR.value=50;aV.WithinSelect.options.add(TX);aV.WithinSelect.options.add(VE);aV.WithinSelect.options.add(UR);aV.WithinDiv.appendChild(Ss.createTextNode(top.STR_WITHIN));aV.WithinDiv.appendChild(Ss.createElement("br"));aV.WithinDiv.appendChild(aV.WithinBox);aV.WithinDiv.appendChild(aV.WithinSelect);aV.Phrase2Div=Ss.createElement("div");aV.Phrase2Div.style.marginTop="5px";aV.SearchPhrase2Box=Ss.createElement("input");aV.SearchPhrase2Box.type="text";aV.SearchPhrase2Box.size=20;aV.SearchPhrase2Box.onkeypress=aV.sf.KeyPressHandler;aV.Phrase2Div.appendChild(Ss.createTextNode(top.STR_SECOND_PHRASE));aV.Phrase2Div.appendChild(aV.SearchPhrase2Box);aV.BasicUISpan.appendChild(WJ);aV.BasicUISpan.appendChild(eo);aV.BasicUISpan.appendChild(aV.WithinDiv);aV.BasicUISpan.appendChild(aV.Phrase2Div);aV.AdvancedUISpan=Ss.createElement("span");aV.AdvancedBox=Ss.createElement("textarea");aV.AdvancedBox.rows=5;aV.AdvancedBox.cols=20;aV.AdvancedBox.style.width="98%";aV.AdvancedUISpan.appendChild(Ss.createTextNode(top.STR_ENTER_THE_PHRASE));aV.AdvancedUISpan.appendChild(Ss.createElement("br"));aV.AdvancedUISpan.appendChild(aV.AdvancedBox);var K1=Ss.createElement("div");aV.FuzzyBox=Ss.createElement("input");aV.FuzzyBox.type="checkbox";aV.FuzzyBox.id="SearchElementTextFuzzyBox";aV.FuzzyBox.onclick=function(){aV.FuzzyChanged();};var zL=Ss.createElement("label");zL.htmlFor="SearchElementTextFuzzyBox";zL.appendChild(Ss.createTextNode(top.STR_FUZZY_SEARCH));K1.appendChild(Ss.createElement("hr"));K1.appendChild(aV.FuzzyBox);K1.appendChild(zL);aV.FuzzyCriteriaDiv=Ss.createElement("div");aV.FuzzyCriteriaDiv.style.marginTop="0.75em";aV.FuzzyCriteriaDiv.style.marginLeft="2em";aV.FuzzyNumberRadio=Ss.createElement("input");aV.FuzzyNumberRadio.type="radio";aV.FuzzyNumberRadio.name="FuzzyType";aV.FuzzyNumberRadio.id="SearchElementTextFuzzyNumberRadio";aV.FuzzyNumberRadio.onclick=function(){aV.FuzzyRadioChanged(aV.FuzzyNumberRadio);};var we=Ss.createElement("label");we.htmlFor="SearchElementTextFuzzyNumberRadio";we.appendChild(Ss.createTextNode(top.STR_NUMBER_OF_LETTERS));aV.FuzzyNumberBox=Ss.createElement("input");aV.FuzzyNumberBox.type="text";aV.FuzzyNumberBox.size=3;aV.FuzzyNumberBox.maxLength=1;aV.FuzzyNumberBox.onkeypress=aV.sf.KeyPressHandler;aV.FuzzyPercentageRadio=Ss.createElement("input");aV.FuzzyPercentageRadio.type="radio";aV.FuzzyPercentageRadio.name="FuzzyType";aV.FuzzyPercentageRadio.id="SearchElementTextFuzzyPercentageRadio";aV.FuzzyPercentageRadio.onclick=function(){aV.FuzzyRadioChanged(aV.FuzzyPercentageRadio);};var GO=Ss.createElement("label");GO.htmlFor="SearchElementTextFuzzyPercentageRadio";GO.appendChild(Ss.createTextNode(top.STR_PERCENTAGE_OF_WORD+":"));aV.FuzzyPercentageBox=Ss.createElement("input");aV.FuzzyPercentageBox.type="text";aV.FuzzyPercentageBox.maxLength=2;aV.FuzzyPercentageBox.size=3;aV.FuzzyPercentageBox.onkeypress=aV.sf.KeyPressHandler;aV.FuzzyCriteriaDiv.appendChild(Ss.createTextNode(top.STR_CRITERIA));aV.FuzzyCriteriaDiv.appendChild(Ss.createElement("br"));var ei=aV.FuzzyCriteriaDiv.appendChild(Ss.createElement("div"));var Qe=ei.appendChild(Ss.createElement("span"));Qe.style.width="12.5em";Qe.appendChild(aV.FuzzyNumberRadio);Qe.appendChild(we);var CG=ei.appendChild(Ss.createElement("span"));CG.appendChild(aV.FuzzyNumberBox);var GP=aV.FuzzyCriteriaDiv.appendChild(Ss.createElement("div"));var RKs=GP.appendChild(Ss.createElement("span"));RKs.style.width="12.5em";RKs.appendChild(aV.FuzzyPercentageRadio);RKs.appendChild(GO);var lC=GP.appendChild(Ss.createElement("span"));lC.appendChild(aV.FuzzyPercentageBox);aV.CriteriaDiv.insertBefore(Cr,aV.CriteriaDiv.childNodes[0]);aV.CriteriaDiv.appendChild(aV.BasicUISpan);aV.CriteriaDiv.appendChild(aV.AdvancedUISpan);aV.CriteriaDiv.appendChild(K1);aV.CriteriaDiv.appendChild(aV.FuzzyCriteriaDiv);aV.BasicTabLink.onclick();aV.RadioChanged(aV.PhraseRadio);aV.FuzzyRadioChanged(aV.FuzzyNumberRadio);aV.FuzzyChanged();};SearchElementText.prototype.RadioChanged=function(EW){this.PhraseRadio.checked=false;this.AndRadio.checked=false;this.OrRadio.checked=false;this.NotRadio.checked=false;this.WithinRadio.checked=false;EW.checked=true;if(this.PhraseRadio.checked)this.Phrase2Div.style.display="none";else this.Phrase2Div.style.display="block";if(this.WithinRadio.checked)this.WithinDiv.style.display="block";else this.WithinDiv.style.display="none";};SearchElementText.prototype.FuzzyChanged=function(){if(this.FuzzyBox.checked)this.FuzzyCriteriaDiv.style.display="block";else this.FuzzyCriteriaDiv.style.display="none";};SearchElementText.prototype.FuzzyRadioChanged=function(EW){this.FuzzyNumberRadio.checked=false;this.FuzzyPercentageRadio.checked=false;EW.checked=true;};SearchElementText.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="";if(this.BasicUISpan.style.display=="inline"){if(this.SearchPhrase1Box.value.length>0||this.SearchPhrase2Box.value.length>0){var qW="\""+top.escapeQuotes(this.SearchPhrase1Box.value)+"\"";var FG="\""+top.escapeQuotes(this.SearchPhrase2Box.value)+"\"";if(this.PhraseRadio.checked||this.SearchPhrase2Box.value.length==0)Wo3=qW;else if(this.SearchPhrase1Box.value.length==0)Wo3=FG;else if(this.AndRadio.checked)Wo3=qW+" & "+FG;else if(this.OrRadio.checked)Wo3=qW+" | "+FG;else if(this.NotRadio.checked)Wo3=qW+" - "+FG;else{var cz=parseInt(this.WithinBox.value);if(!cz)cz=10;if(cz<0)cz=0;this.WithinBox.value=cz;Wo3=qW+" ^"+(parseInt(this.WithinSelect.value)*cz)+" "+FG;}}}else Wo3=this.AdvancedBox.value;return Wo3;};SearchElementText.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("TextSearch");if(this.BasicUISpan.style.display=="inline"){var N7=c2.ownerDocument.createAttribute("Phrase1");N7.value=this.SearchPhrase1Box.value;pM.attributes.setNamedItem(N7);var X5=c2.ownerDocument.createAttribute("BooleanType");if(this.PhraseRadio.checked)X5.value="Phrase";else if(this.AndRadio.checked)X5.value="And";else if(this.OrRadio.checked)X5.value="Or";else if(this.NotRadio.checked)X5.value="Not";else if(this.WithinRadio.checked)X5.value="Within";pM.attributes.setNamedItem(X5);var mf_=c2.ownerDocument.createAttribute("WithinCount");mf_.value=this.WithinBox.value;pM.attributes.setNamedItem(mf_);var I8=c2.ownerDocument.createAttribute("WithinUnits");I8.value=this.WithinSelect.value;pM.attributes.setNamedItem(I8);var ljR=c2.ownerDocument.createAttribute("Phrase2");ljR.value=this.SearchPhrase2Box.value;pM.attributes.setNamedItem(ljR);}else{var f8g=c2.ownerDocument.createAttribute("AdvancedBox");f8g.value=this.AdvancedBox.value;pM.attributes.setNamedItem(f8g);}if(this.FuzzyBox.checked){if(this.FuzzyNumberRadio.checked){var jY5=c2.ownerDocument.createAttribute("FuzzyNumber");jY5.value=this.FuzzyNumberBox.value;pM.attributes.setNamedItem(jY5);}else{var jY5=c2.ownerDocument.createAttribute("FuzzyPercentage");jY5.value=this.FuzzyPercentageBox.value;pM.attributes.setNamedItem(jY5);}}c2.appendChild(pM);};SearchElementText.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("TextSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);if(Vk.getAttribute("AdvancedBox")){this.AdvancedBox.value=Vk.getAttribute("AdvancedBox");this.AdvancedTabLink.onclick();}else{this.SearchPhrase1Box.value=Vk.getAttribute("Phrase1");this.WithinBox.value=Vk.getAttribute("WithinCount");this.WithinSelect.value=Vk.getAttribute("WithinSelect");this.SearchPhrase2Box.value=Vk.getAttribute("Phrase2");switch(Vk.getAttribute("BooleanType")){case"Phrase":this.RadioChanged(this.PhraseRadio);break;case"And":this.RadioChanged(this.AndRadio);break;case"Or":this.RadioChanged(this.OrRadio);break;case"Not":this.RadioChanged(this.NotRadio);break;case"Within":this.RadioChanged(this.WithinRadio);break;}this.BasicTabLink.onclick();}if(Vk.getAttribute("FuzzyNumber")){this.FuzzyNumberBox.value=Vk.getAttribute("FuzzyNumber");this.FuzzyBox.checked=true;this.FuzzyRadioChanged(this.FuzzyNumberRadio);}else if(Vk.getAttribute("FuzzyPercentage")){this.FuzzyNumberBox.value=Vk.getAttribute("FuzzyPercentage");this.FuzzyBox.checked=true;this.FuzzyRadioChanged(this.FuzzyPercentageRadio);}else this.FuzzyBox.checked=false;this.FuzzyChanged();};SearchElementText.prototype.GetFuzzyPrefix=function(){if(this.IsHidden())return"";var m="";if(this.FuzzyBox.checked){if(this.FuzzyNumberRadio.checked){var xP=0;if(parseInt(this.FuzzyNumberBox.value))xP=parseInt(this.FuzzyNumberBox.value);if(xP<0)xP=0;if(xP>9)xP=9;this.FuzzyNumberBox.value=xP;m="##"+this.FuzzyNumberBox.value;}else{var AL=0;if(parseInt(this.FuzzyPercentageBox.value))AL=parseInt(this.FuzzyPercentageBox.value);if(AL<0)AL=0;this.FuzzyPercentageBox.value=AL;if(this.FuzzyPercentageBox.value.length==1)m="#0"+this.FuzzyPercentageBox.value;else m="#"+this.FuzzyPercentageBox.value;}m+="111";}return m;};SearchElementText.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementText.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementText.prototype.ReleaseDOMElements=function(){if(this.CloseLink)this.CloseLink.onclick=null;if(this.HelpLink)this.HelpLink.onclick=null;if(this.BasicTabLink)this.BasicTabLink.onclick=null;if(this.AdvancedTabLink)this.AdvancedTabLink.onclick=null;if(this.PhraseRadio)this.PhraseRadio.onclick=null;if(this.AndRadio)this.AndRadio.onclick=null;if(this.OrRadio)this.OrRadio.onclick=null;if(this.NotRadio)this.NotRadio.onclick=null;if(this.WithinRadio)this.WithinRadio.onclick=null;if(this.SearchPhrase1Box)this.SearchPhrase1Box.onkeypress=null;if(this.SearchPhrase2Box)this.SearchPhrase2Box.onkeypress=null;if(this.FuzzyNumberRadio)this.FuzzyNumberRadio.onclick=null;if(this.FuzzyBox)this.FuzzyBox.onclick=null;if(this.FuzzyPercentageRadio)this.FuzzyPercentageRadio.onclick=null;if(this.FuzzyPercentageBox)this.FuzzyPercentageBox.onkeypress=null;if(this.FuzzyNumberBox)this.FuzzyNumberBox.onkeypress=null;this.RemoveChildren(this.DisplayDiv);};function SearchElementVerComments(WO){this.sf=WO;}SearchElementVerComments.prototype.Display=SearchElementText.prototype.Display;SearchElementVerComments.prototype.Show=SearchElementText.prototype.Show;SearchElementVerComments.prototype.Hide=SearchElementText.prototype.Hide;SearchElementVerComments.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementVerComments.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementVerComments.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementVerComments.prototype.GetTitleText=function(){return top.STR_VERSION;};SearchElementVerComments.prototype.GetHelpText=function(){return top.STR_HELP_VERSION_COMMENTS;};SearchElementVerComments.prototype.CreateInputs=function(){var qzF=this;var Ss=this.CriteriaDiv.ownerDocument;qzF.LatestVersionCheck=Ss.createElement("input");qzF.LatestVersionCheck.type="checkbox";qzF.LatestVersionCheck.id="SearchElementVersionLVCheck";var zp=Ss.createElement("label");zp.htmlFor="SearchElementVersionLVCheck";zp.appendChild(Ss.createTextNode(top.STR_SEARCH_ONLY_LATEST_VERSIONS));qzF.CommentsSearchCheck=Ss.createElement("input");qzF.CommentsSearchCheck.type="checkbox";qzF.CommentsSearchCheck.id="SearchElementVersionCommentsCheck";var s1=Ss.createElement("label");s1.htmlFor="SearchElementVersionCommentsCheck";s1.appendChild(Ss.createTextNode(top.STR_ENTER_VERSION_COMMENTS));qzF.CommentsBox=Ss.createElement("input");qzF.CommentsBox.type="text";qzF.CommentsBox.style.marginLeft="20px";qzF.CommentsBox.disabled=true;qzF.CommentsBox.onkeypress=qzF.sf.KeyPressHandler;qzF.CommentsSearchCheck.onclick=function(){qzF.CommentsBox.disabled=!this.checked;if(this.checked){qzF.CommentsBox.select();}};qzF.CriteriaDiv.appendChild(qzF.LatestVersionCheck);qzF.CriteriaDiv.appendChild(zp);qzF.CriteriaDiv.appendChild(Ss.createElement("br"));qzF.CriteriaDiv.appendChild(qzF.CommentsSearchCheck);qzF.CriteriaDiv.appendChild(s1);qzF.CriteriaDiv.appendChild(Ss.createElement("br"));qzF.CriteriaDiv.appendChild(qzF.CommentsBox);};SearchElementVerComments.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";if(this.CommentsSearchCheck.checked)return"{LF:vercomment=\""+top.escapeQuotes(top.Trim(this.CommentsBox.value))+"\"}";return"";};SearchElementVerComments.prototype.ReturnOnlyLatestVersions=function(){return this.LatestVersionCheck.checked;};SearchElementVerComments.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("VersionSearch");if(this.LatestVersionCheck.checked){var ZO=c2.ownerDocument.createAttribute("LatestVersion");ZO.value="true";pM.attributes.setNamedItem(ZO);}if(this.CommentsSearchCheck.checked){var z7m=pM.ownerDocument.createElement("Comments");z7m.text=this.CommentsBox.value;pM.appendChild(z7m);}c2.appendChild(pM);};SearchElementVerComments.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("VersionSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);if(Vk.getAttribute("LatestVersion")){this.LatestVersionCheck.checked=true;}var JYs=Vk.getElementsByTagName("Comments");if(JYs.length>0){this.CommentsSearchCheck.checked=true;this.CommentsBox.disabled=false;this.CommentsBox.value=JYs.item(0).text;}};SearchElementVerComments.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementVerComments.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onkeypress=null;v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementVerComments.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementWithinFolder(WO){this.sf=WO;}SearchElementWithinFolder.prototype.Display=SearchElementText.prototype.Display;SearchElementWithinFolder.prototype.Show=SearchElementText.prototype.Show;SearchElementWithinFolder.prototype.Hide=SearchElementText.prototype.Hide;SearchElementWithinFolder.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementWithinFolder.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementWithinFolder.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementWithinFolder.prototype.GetTitleText=function(){return top.STR_WITHIN_FOLDER;};SearchElementWithinFolder.prototype.GetHelpText=function(){return top.STR_HELP_WITHIN_FOLDER;};SearchElementWithinFolder.prototype.CreateInputs=function(){var Yt=this;var Ss=this.CriteriaDiv.ownerDocument;Yt.PathBox=Ss.createElement("input");Yt.PathBox.type="text";Yt.PathBox.onkeypress=Yt.sf.KeyPressHandler;Yt.PathBox.value="\\";Yt.IDBox=Ss.createElement("input");Yt.IDBox.type="hidden";Yt.BrowseButton=Ss.createElement("input");Yt.BrowseButton.type="button";Yt.BrowseButton.value="...";Yt.BrowseButton.onclick=function(){Yt.ShowBrowser();};Yt.RecursiveBox=Ss.createElement("input");Yt.RecursiveBox.type="checkbox";Yt.RecursiveBox.id="SearchElementFolderRecursiveBox";var cq=Ss.createElement("label");cq.htmlFor="SearchElementFolderRecursiveBox";cq.appendChild(Ss.createTextNode(top.STR_SEARCH_SUBFOLDERS));Yt.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_LIMIT_SEARCH_FOLDER));Yt.CriteriaDiv.appendChild(Ss.createElement("br"));Yt.CriteriaDiv.appendChild(Yt.PathBox);Yt.CriteriaDiv.appendChild(Yt.IDBox);Yt.CriteriaDiv.appendChild(Yt.BrowseButton);Yt.CriteriaDiv.appendChild(Ss.createElement("br"));Yt.CriteriaDiv.appendChild(Yt.RecursiveBox);Yt.CriteriaDiv.appendChild(cq);Yt.RecursiveBox.checked=true;};SearchElementWithinFolder.prototype.ShowBrowser=function(){if(!top.VerifyConnection(this.sf.dbid)){return;}var hv=top.lfShowModalDialog(window,'FolderPopupBrowser.asp?dbid='+this.sf.dbid+'&startID='+this.IDBox.value,null,"help:no;scroll:no;status:no");if(hv){this.IDBox.value=hv;var tD=top.GetXMLDocument("Path.asp?id="+hv+"&dbid="+this.sf.dbid);if(tD){var Ue=tD.documentElement;this.PathBox.value=Ue.text;}}};SearchElementWithinFolder.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="";if(this.PathBox.value.length>0){Wo3="{LF:Lookin=\""+top.escapeQuotes(this.PathBox.value)+"\"";if(!this.RecursiveBox.checked)Wo3+=", Subfolders=0";Wo3+="}";}return Wo3;};SearchElementWithinFolder.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("WithinFolderSearch");var Db=c2.ownerDocument.createAttribute("Path");Db.value=this.PathBox.value;pM.attributes.setNamedItem(Db);if(this.RecursiveBox.checked){var QL=c2.ownerDocument.createAttribute("Recursive");QL.value="true";pM.attributes.setNamedItem(QL);}c2.appendChild(pM);};SearchElementWithinFolder.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("WithinFolderSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.PathBox.value=Vk.getAttribute("Path");this.RecursiveBox.checked=Vk.getAttribute("Recursive");};SearchElementWithinFolder.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementWithinFolder.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementWithinFolder.prototype.ReleaseDOMElements=function(){this.PathBox.onkeypress=null;this.BrowseButton.onclick=null;this.RemoveChildren(this.DisplayDiv);};function SearchElementWithinVolume(WO){this.sf=WO;}SearchElementWithinVolume.prototype.Display=SearchElementText.prototype.Display;SearchElementWithinVolume.prototype.Show=SearchElementText.prototype.Show;SearchElementWithinVolume.prototype.Hide=SearchElementText.prototype.Hide;SearchElementWithinVolume.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementWithinVolume.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementWithinVolume.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementWithinVolume.prototype.GetTitleText=function(){return top.STR_WITHIN_VOLUME;};SearchElementWithinVolume.prototype.GetHelpText=function(){return top.STR_HELP_WITHIN_VOLUME;};SearchElementWithinVolume.prototype.CreateInputs=function(){var mY=this;var Ss=this.CriteriaDiv.ownerDocument;mY.VolumeSelect=Ss.createElement("select");mY.VolumeSelect.size=4;mY.VolumeSelect.multiple=true;mY.VolumeSelect.style.width="75%";mY.VolumeSelect.style.margin="4px";for(var ww=0;ww<mY.sf.Volumes.length;++ww){var etN=Ss.createElement("option");etN.text=mY.sf.Volumes[ww].Name;etN.value=mY.sf.Volumes[ww].ID;mY.VolumeSelect.options.add(etN);}mY.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_SELECT_VOLUMES));mY.CriteriaDiv.appendChild(Ss.createElement("br"));mY.CriteriaDiv.appendChild(mY.VolumeSelect);};SearchElementWithinVolume.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="(";var F2=false;var nU=" | ";for(var ww=0;ww<this.VolumeSelect.options.length;++ww){if(this.VolumeSelect.options[ww].selected){F2=true;Wo3+="{LF:VolID="+this.VolumeSelect.options[ww].value+"}"+nU;}}if(F2){return Wo3.substr(0,Wo3.length-nU.length)+")";}else return"";};SearchElementWithinVolume.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("WithinVolumeSearch");for(var ww=0;ww<this.VolumeSelect.options.length;++ww){if(this.VolumeSelect.options[ww].selected){var etN=pM.ownerDocument.createElement("Volume");var GkW=etN.ownerDocument.createAttribute("ID");GkW.value=this.VolumeSelect.options[ww].value;etN.attributes.setNamedItem(GkW);pM.appendChild(etN);}}c2.appendChild(pM);};SearchElementWithinVolume.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("WithinVolumeSearch");if(lr.length==0){this.Hide();return;}this.Show();for(var Je=0;Je<this.VolumeSelect.options.length;++Je)this.VolumeSelect.options[Je].selected=false;var Vk=lr.item(0);var tX=Vk.getElementsByTagName("Volume");for(var ww=0;ww<tX.length;++ww){var etN=tX.item(ww);var SL=etN.getAttribute("ID");for(var nS=0;nS<this.VolumeSelect.options.length;++nS){if(this.VolumeSelect.options[nS].value==SL){this.VolumeSelect.options[nS].selected=true;break;}}}};SearchElementWithinVolume.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementWithinVolume.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementWithinVolume.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};var SEARCH_TYPE_TEXT=0;var SEARCH_TYPE_NAME=1;var SEARCH_TYPE_FIELD=2;var SEARCH_TYPE_WITHIN_FOLDER=3;var SEARCH_TYPE_WITHIN_VOLUME=4;var SEARCH_TYPE_STICKY_NOTE=5;var SEARCH_TYPE_CREATION_DATE=6;var SEARCH_TYPE_MODIFICATION_DATE=7;var SEARCH_TYPE_ELECTRONIC_DOCUMENTS=8;var SEARCH_TYPE_HAS_PAGES=9;var SEARCH_TYPE_RELATIONSHIP=10;var SEARCH_TYPE_TAGS=11;var SEARCH_TYPE_CREATOR=12;var SEARCH_TYPE_VER_COMMENTS=13;var SEARCH_TYPE_CHECKED_OUT=14;var SEARCH_TYPE_SERIES=50;var SEARCH_TYPE_PERMANENT_RECORDS=51;var SEARCH_TYPE_VITAL_RECORDS=52;var SEARCH_TYPE_FROZEN=53;var SEARCH_TYPE_CUTOFF=54;var SEARCH_TYPE_DISPOSITION_TYPE=55;var SEARCH_TYPE_DISPOSITION_ELIGIBILITY=56;var SEARCH_TYPE_CURRENT_LOCATION=57;var SEARCH_TYPE_RETENTION_SCHEDULE=58;var SEARCH_TYPE_CUTOFF_INSTRUCTION=59;var SEARCH_TYPE_DISPOSITION_AUTHORITY=60;var LAST_BASIC_SEARCH_TYPE=SEARCH_TYPE_CHECKED_OUT;var FIRST_RM_SEARCH_TYPE=SEARCH_TYPE_SERIES;function Volume(TZ,a5){this.ID=TZ;this.Name=a5;}function Relationship(TZ,ty,a5){this.ID=TZ;this.Type=ty;this.Name=a5;}function Cycle(Nz,wN){this.Description=Nz;this.Code=wN;}function SearchForm(d,oK,Y,u0,e,p,EQ,SearchResults,T,fu,kQm,Qs,qlw,ZC,Tg,d4,xf,t2,IK,YV){var kUX=this;kUX.bHasRMFeature=d;kUX.bMigrateAllowed=oK;kUX.bSnapshotEnabled=Y;kUX.bViewPropsAllowed=u0;kUX.bExportAllowed=e;kUX.exportAudited=p;kUX.reasonForPDF=EQ;kUX.entriesDeleteable=true;kUX.SearchElements=new Array();kUX.SearchElements[SEARCH_TYPE_TEXT]=new top.SearchElementText(this);kUX.SearchElements[SEARCH_TYPE_NAME]=new top.SearchElementName(this);kUX.SearchElements[SEARCH_TYPE_FIELD]=new top.SearchElementField(this);kUX.SearchElements[SEARCH_TYPE_WITHIN_FOLDER]=new top.SearchElementWithinFolder(this);kUX.SearchElements[SEARCH_TYPE_WITHIN_VOLUME]=new top.SearchElementWithinVolume(this);kUX.SearchElements[SEARCH_TYPE_STICKY_NOTE]=new top.SearchElementStickyNote(this);kUX.SearchElements[SEARCH_TYPE_CREATION_DATE]=new top.SearchElementCreateDate(this);kUX.SearchElements[SEARCH_TYPE_MODIFICATION_DATE]=new top.SearchElementModifyDate(this);kUX.SearchElements[SEARCH_TYPE_ELECTRONIC_DOCUMENTS]=new top.SearchElementExtension(this);kUX.SearchElements[SEARCH_TYPE_HAS_PAGES]=new top.SearchElementHasPages(this);kUX.SearchElements[SEARCH_TYPE_RELATIONSHIP]=new top.SearchElementRelationship(this);kUX.SearchElements[SEARCH_TYPE_TAGS]=new top.SearchElementTags(this);kUX.SearchElements[SEARCH_TYPE_CREATOR]=new top.SearchElementCreator(this);kUX.SearchElements[SEARCH_TYPE_VER_COMMENTS]=new top.SearchElementVerComments(this);kUX.SearchElements[SEARCH_TYPE_CHECKED_OUT]=new top.SearchElementCheckedOut(this);kUX.SearchElements[SEARCH_TYPE_SERIES]=new top.SearchElementSeries(this);kUX.SearchElements[SEARCH_TYPE_PERMANENT_RECORDS]=new top.SearchElementPermanent(this);kUX.SearchElements[SEARCH_TYPE_VITAL_RECORDS]=new top.SearchElementVital(this);kUX.SearchElements[SEARCH_TYPE_FROZEN]=new top.SearchElementFrozen(this);kUX.SearchElements[SEARCH_TYPE_CUTOFF]=new top.SearchElementCutoff(this);kUX.SearchElements[SEARCH_TYPE_DISPOSITION_TYPE]=new top.SearchElementDispositionType(this);kUX.SearchElements[SEARCH_TYPE_DISPOSITION_ELIGIBILITY]=new top.SearchElementDispositionEligibility(this);kUX.SearchElements[SEARCH_TYPE_CURRENT_LOCATION]=new top.SearchElementLocation(this);kUX.SearchElements[SEARCH_TYPE_RETENTION_SCHEDULE]=new top.SearchElementRetentionSchedule(this);kUX.SearchElements[SEARCH_TYPE_CUTOFF_INSTRUCTION]=new top.SearchElementCutoffInstruction(this);kUX.SearchElements[SEARCH_TYPE_DISPOSITION_AUTHORITY]=new top.SearchElementDispositionAuthority(this);kUX.sr=SearchResults;kUX.dbid=T;kUX.Templates=fu;kUX.Volumes=kQm;kUX.Extensions=Qs;kUX.Relationships=qlw;kUX.TagNames=ZC;kUX.Cycles=Tg;kUX.Locations=d4;kUX.RetentionSchedules=xf;kUX.RetentionSchedulesIds=t2;kUX.CutoffInstructions=IK;kUX.CutoffInstructionsIds=YV;kUX.KeyPressHandler=function(){if(kUX.formWin.event.keyCode==13)kUX.Run();};}SearchForm.prototype.SetCustomizeMenus=function(zb,Fm){var kUX=this;kUX.searchSelect=zb;kUX.RMSelect=Fm;zb.onchange=function(){if(kUX.SearchElements[zb.value]){if(kUX.SearchElements[zb.value].IsHidden()){kUX.SearchElements[zb.value].Show();}else{kUX.SearchElements[zb.value].Hide();zb.UnselectItem(zb.value);}kUX.SaveOptions();}zb.value="";};if(Fm){Fm.onchange=function(){if(kUX.SearchElements[Fm.value]){if(kUX.SearchElements[Fm.value].IsHidden()){kUX.SearchElements[Fm.value].Show();}else{kUX.SearchElements[Fm.value].Hide();Fm.UnselectItem(Fm.value);}kUX.SaveOptions();}Fm.value="";};}};SearchForm.prototype.Show=function(yD,zC,bL,dJx,Sb,C2){var kUX=this;kUX.formElement=dJx;kUX.commandInput=Sb;kUX.formWin=yD;kUX.submitButton=bL;bL.onclick=function(){kUX.Run();};dJx.ownerDocument.body.onclick=function(){kUX.killContextMenu();kUX.SearchMenu.HideMenu();};dJx.ownerDocument.body.onmousedown=function(){kUX.sr.KillContextMenu();};for(var ww=0;ww<kUX.SearchElements.length;++ww){kUX.SearchElements[ww].Display(zC);kUX.SearchElements[ww].Hide();if(ww==LAST_BASIC_SEARCH_TYPE){ww=FIRST_RM_SEARCH_TYPE-1;}}for(var ww=0;ww<C2.length;++ww)kUX.SearchElements[C2[ww]].Show();};SearchForm.prototype.Run=function(Wo3){var kUX=this;if(!Wo3){var wNN=kUX.SearchElements[SEARCH_TYPE_TEXT].GetFuzzyPrefix();if(wNN.length>0)wNN+=" ";wNN+="%"+top.DATE_FORMAT;Wo3="";var fV=" & ";var PR=false;for(var ww=0;ww<kUX.SearchElements.length;++ww){var ao=kUX.SearchElements[ww].GetSearchCommand();if(ao.length>0){PR=true;Wo3+=ao+fV;}if(ww==LAST_BASIC_SEARCH_TYPE){ww=FIRST_RM_SEARCH_TYPE-1;}}if(!PR){alert(top.STR_NO_VALID_SEARCH_CRITERIA);return;}Wo3=Wo3.substr(0,Wo3.length-fV.length);kUX.SearchElements[SEARCH_TYPE_TEXT].AdvancedBox.value=Wo3;Wo3=wNN+Wo3;}kUX.searchAnimation.style.display="inline";kUX.commandInput.value=Wo3;kUX.DisableDelete();kUX.DisableRename();kUX.DisableEditFields();var x3=kUX.SearchElements[SEARCH_TYPE_FIELD].GetTemplateID();var m2="callbackfunc"+top.callbackNum++;top[m2]=function(tD){var uSM=new Array();top.ResultsFromXML(tD,uSM,1);var B8=new Array();top.ColumnTypesFromXML(tD,B8);var c=tD.documentElement;var VH=parseInt(c.getAttribute("TotalResults"));var wF=c.getAttribute("Handle");kUX.sr.Initialize();if(uSM.length==0){kUX.DisableExportResults();kUX.searchAnimation.style.display="none";alert(top.STR_NO_ENTRIES_WERE_FOUND);}else{kUX.EnableExportResults();}if(wF&&uSM){kUX.sr.searchHandle=wF;kUX.sr.templateID=x3;kUX.sr.DisplayHeaderRow(B8);kUX.sr.DrawSearchResults(uSM,VH,1);}else{kUX.DisableExportResults();}kUX.searchAnimation.style.display="none";};top.errorCallback=function(){kUX.searchAnimation.style.display="none";};var ju="RunSearch.asp?start=1&count="+kUX.sr.maxRowsToDisplay+"&templateid="+x3+"&callback="+m2+"&dbid="+kUX.dbid;if(kUX.SearchElements[SEARCH_TYPE_VER_COMMENTS].ReturnOnlyLatestVersions())ju+="&omitOldVersions=1";kUX.formElement.action=ju;kUX.formElement.submit();};SearchForm.prototype.GetSearchXML=function(a9B){var tD=new ActiveXObject("MSXML2.FreeThreadedDOMDocument");tD.async=false;var c2=tD.createElement("Query");var eN=tD.createAttribute("title");eN.value=a9B;c2.attributes.setNamedItem(eN);tD.documentElement=c2;for(var ww=0;ww<this.SearchElements.length;++ww){this.SearchElements[ww].AddXMLQuery(c2);if(ww==LAST_BASIC_SEARCH_TYPE){ww=FIRST_RM_SEARCH_TYPE-1;}}return tD.xml;};SearchForm.prototype.ShowSavedSearch=function(G4){for(var ww=0;ww<this.SearchElements.length;++ww){this.SearchElements[ww].ShowSavedQuery(G4);if(this.SearchElements[ww].IsHidden()){if(ww<FIRST_RM_SEARCH_TYPE){this.searchSelect.UnselectItem(ww);}else if(this.RMSelect){this.RMSelect.UnselectItem(ww);}}else{if(ww<FIRST_RM_SEARCH_TYPE){this.searchSelect.SelectItem(ww,true);}else if(this.RMSelect){this.RMSelect.SelectItem(ww,true);}}if(ww==LAST_BASIC_SEARCH_TYPE){ww=FIRST_RM_SEARCH_TYPE-1;}}};SearchForm.prototype.DisallowDeleteEntries=function(){this.entriesDeleteable=false;};SearchForm.prototype.IsDeleteEnabled=function(){return this.entriesDeleteable;};SearchForm.prototype.DeleteEntries=function(){this.sr.DeleteEntries();};SearchForm.prototype.ExportSearchResults=function(){if(!top.VerifyConnection(this.dbid))return;if(this.exportAudited){if(!top.lfShowModalDialog(window,"AuditReasonPopup.asp?event="+this.exportAudited+"&dbid="+this.dbid,null,"dialogHeight:290px;dialogWidth:375px;help:no;scroll:no;status:no"))return;}var fR="ExportBriefcase.asp?dbid="+this.dbid+"&searchhandle="+this.sr.searchHandle;window.open(fR);};SearchForm.prototype.ExportBriefcase=function(){if(!top.VerifyConnection(this.dbid))return;if(this.exportAudited){if(!top.lfShowModalDialog(window,"AuditReasonPopup.asp?event="+this.exportAudited+"&dbid="+this.dbid,null,"help:no;scroll:no;status:no"))return;}var fR="ExportBriefcase.asp?dbid="+this.dbid;var N=new Array();for(var ww=0;ww<this.sr.GetSelectedEntries().length;ww++){N.push(this.sr.GetSelectedEntries()[ww]);}for(var ww=0;ww<N.length;ww++){var Gh=N[ww];if(Gh.toctype=="f"||Gh.toctype=="fs"){if(Gh.toctype=="f"){fR=fR+"&folderid="+Gh.id;}else{fR=fR+"&folderid="+Gh.targetid;}}else{if(Gh.toctype=="d"||Gh.toctype=="e"){fR=fR+"&entryid="+Gh.id;}else{fR=fR+"&entryid="+Gh.targetid;}}}window.open(fR);};SearchForm.prototype.ExportImage=function(){if(!top.VerifyConnection(this.dbid))return;if(this.reasonForPDF){if(!top.lfShowModalDialog(window,"AuditReasonPopup.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no"))return;}var N=new Array();var JU=this.sr.GetSelectedEntries();for(var ww=0;ww<JU.length;ww++){N.push(JU[ww]);}for(var ww=0;ww<N.length;ww++){var Gh=N[ww];if(Gh.toctype!="f"&&Gh.toctype!="fs"){CI='ImageDisplay.asp?pdf=1&scale=10000&pdfendpage=75&pdfstartpage=1&doc='+Gh.targetid+'&dbid='+this.dbid+'&/'+Gh.name+'.pdf';var xp=top.window.open(CI,'','menubar=yes,resizable=yes,scrollbars=yes,status=yes');}}};SearchForm.prototype.setSearchAnimation=function(eV){this.searchAnimation=eV;};SearchForm.prototype.setMenuDiv=function(N0,uz,uc,_){var kUX=this;var Gp=0;kUX.user=_;this.menuDoc=uc;this.menuDoc.body.onclick=function(){kUX.killContextMenu();kUX.SearchMenu.HideMenu();};kUX.killContextMenu=function(){};var X=function(){kUX.killContextMenu();};kUX.SearchMenu=new top.Menustrip(uz,N0,X);var aw=new Array();var nDs=new Array();var DMf=new Array();aw.push(STR_OPEN_PARENT_FOLDER);nDs.push(function(){kUX.sr.GetSelectedEntries()[0].OpenParentFolder();});DMf.push(false);var sIj=aw.length-1;Gp++;kUX.EnableOpenParent=function(){DMf[sIj]=true;};kUX.DisableOpenParent=function(){DMf[sIj]=false;};aw.push(STR_RENAME);nDs.push(function(){kUX.sr.RenameEntry(kUX.dbid)});DMf.push(false);var Dd=aw.length-1;Gp++;kUX.EnableRename=function(){DMf[Dd]=true;};kUX.DisableRename=function(){DMf[Dd]=false;};if(this.entriesDeleteable){aw.push(STR_DELETE);nDs.push(function(){kUX.DeleteEntries();});DMf.push(false);var l2=aw.length-1;Gp++;kUX.EnableDelete=function(){DMf[l2]=true;};kUX.DisableDelete=function(){DMf[l2]=false;};}else{kUX.EnableDelete=function(){};kUX.DisableDelete=function(){};}if(kUX.bViewPropsAllowed){aw.push(STR_PROPERTIES);nDs.push(function(){kUX.sr.ShowProperties()});DMf.push(false);var YL=aw.length-1;Gp++;kUX.EnableProperties=function(){DMf[YL]=true;};kUX.DisableProperties=function(){DMf[YL]=false;};}else{kUX.EnableProperties=function(){};kUX.DisableProperties=function(){};}if(Gp>0){aw.push(null);nDs.push(null);DMf.push(null);Gp=0;}if(kUX.bExportAllowed){var AF=function(){kUX.ExportBriefcase(true);};var ff=function(){kUX.ExportImage();};var Bh=function(){kUX.ExportSearchResults();};var TJ=new top.SubMenu(132);TJ.AddItem(STR_IMAGESDOTS,ff,false,false);TJ.AddItem(STR_BRIEFCASEDOTS,AF,false,false);TJ.AddItem(STR_SEARCH_RESULTSDOTS,Bh,false,false);aw.push(STR_EXPORT);nDs.push(TJ);DMf.push(true);Gp++;kUX.EnableExportImage=function(){TJ.clickables[0]=true;};kUX.DisableExportImage=function(){TJ.clickables[0]=false;};kUX.EnableExportBriefcase=function(){TJ.clickables[1]=true;};kUX.DisableExportBriefcase=function(){TJ.clickables[1]=false;};kUX.EnableExportResults=function(){TJ.clickables[2]=true;};kUX.DisableExportResults=function(){TJ.clickables[2]=false;};}else{kUX.EnableExportImage=function(){};kUX.DisableExportImage=function(){};kUX.EnableExportBriefcase=function(){};kUX.DisableExportBriefcase=function(){};kUX.EnableExportResults=function(){};kUX.DisableExportResults=function(){};}if(Gp>0){aw.push(null);nDs.push(null);DMf.push(null);Gp=0;}aw.push(STR_LOG_OUT);nDs.push(function(){kUX.LogOut();});DMf.push(true);var iX=new top.MenuInfo(STR_FILE,aw,nDs,DMf);this.SearchMenu.AddMenu(iX);var Dj=new Array();var V7=new Array();var JCq=new Array();Dj.push(STR_CUT);V7.push(function(){});JCq.push(false);Dj.push(STR_COPY);V7.push(function(){});JCq.push(false);Dj.push(STR_PASTE);V7.push(function(){});JCq.push(false);Dj.push(STR_PASTE_AS_SHORTCUT);V7.push(function(){});JCq.push(false);var pO=new top.MenuInfo(STR_EDIT,Dj,V7,JCq);this.SearchMenu.AddMenu(pO);var vv=new Array();var COS=new Array();var LB=new Array();vv.push(STR_FIELDS+"...");COS.push(function(){kUX.sr.EditMetadata("showfields")});LB.push(false);var e8=vv.length-1;kUX.EnableEditFields=function(){LB[e8]=true;};kUX.DisableEditFields=function(){LB[e8]=false;};vv.push(STR_TAGS+"...");COS.push(function(){kUX.sr.EditMetadata("showtags")});LB.push(false);var U3=vv.length-1;kUX.EnableEditTags=function(){LB[U3]=true;};kUX.DisableEditTags=function(){LB[U3]=false;};vv.push(STR_LINKS+"...");COS.push(function(){kUX.sr.EditMetadata("showlinks")});LB.push(false);var Dw=vv.length-1;kUX.EnableEditLinks=function(){LB[Dw]=true;};kUX.DisableEditLinks=function(){LB[Dw]=false;};vv.push(STR_VERSIONS+"...");COS.push(function(){kUX.sr.EditMetadata("showversions")});LB.push(false);var NA=vv.length-1;kUX.EnableEditVersions=function(){LB[NA]=true;};kUX.DisableEditVersions=function(){LB[NA]=false;};vv.push(null);COS.push(null);LB.push(null);if(kUX.bMigrateAllowed){vv.push(STR_MIGRATE);COS.push(function(){kUX.sr.ShowMigrateDialog();});LB.push(false);var dJ=vv.length-1;kUX.EnableMigrate=function(){LB[dJ]=true;};kUX.DisableMigrate=function(){LB[dJ]=false;};}else{kUX.EnableMigrate=function(){};kUX.DisableMigrate=function(){};}var jq=function(){kUX.sr.CheckOut();};var m9=function(){kUX.sr.CheckIn();};var DM=function(){kUX.sr.UndoCheckOut();};var U_=function(){kUX.sr.CheckOutDetails();};var Xj=new top.SubMenu(150);Xj.AddItem(STR_CHECK_OUT,jq,true,false);Xj.AddItem(STR_CHECK_IN,m9,true,false);Xj.AddItem(STR_UNDO_CHECK_OUT,DM,true,false);Xj.AddItem(STR_CHECK_OUT_DETAILS,U_,true,false);kUX.EnableCheckOut=function(){Xj.clickables[0]=true;};kUX.DisableCheckOut=function(){Xj.clickables[0]=false;};kUX.EnableCheckIn=function(){Xj.clickables[1]=true;};kUX.DisableCheckIn=function(){Xj.clickables[1]=false;};kUX.EnableUndoCheckOut=function(){Xj.clickables[2]=true;};kUX.DisableUndoCheckOut=function(){Xj.clickables[2]=false;};kUX.EnableCheckOutDetails=function(){Xj.clickables[3]=true;};kUX.DisableCheckOutDetails=function(){Xj.clickables[3]=false;};vv.push(STR_CHECK_IN_CHECK_OUT);COS.push(Xj);LB.push(true);vv.push(null);COS.push(null);LB.push(null);if(kUX.bSnapshotEnabled){vv.push(STR_SNAPSHOT);COS.push(function(){kUX.sr.SnapshotSelectedEntries();});LB.push(false);var z7=vv.length-1;kUX.EnableSnapshot=function(){LB[z7]=true;};kUX.DisableSnapshot=function(){LB[z7]=false;};}else{kUX.EnableSnapshot=function(){};kUX.DisableSnapshot=function(){};}vv.push(STR_EXTRACT_TEXT);COS.push(function(){kUX.sr.ExtractText();});LB.push(false);var A6y=vv.length-1;kUX.EnableTextExtraction=function(){LB[A6y]=true;};kUX.DisableTextExtraction=function(){LB[A6y]=false;};kUX.IsTextExtractionEnabled=function(){return LB[A6y];};var ge=new top.MenuInfo(STR_ACTION,vv,COS,LB,null,this.mainMenuShim);this.SearchMenu.AddMenu(ge);var Pf=new Array();var sp=new Array();var vyx=new Array();Pf.push(STR_EDIT_ACCESS);sp.push(function(){kUX.sr.ShowAccessDialog();});vyx.push(false);var bv=Pf.length-1;kUX.EnableEditAccess=function(){vyx[bv]=true;};kUX.DisableEditAccess=function(){vyx[bv]=false;};Pf.push(STR_PROPAGATE_RIGHTS);sp.push(function(){kUX.sr.PropagateRights();});vyx.push(false);var Gk=Pf.length-1;kUX.EnablePropagateRights=function(){vyx[Gk]=true;};kUX.DisablePropagateRights=function(){vyx[Gk]=false;};Pf.push(null);sp.push(null);vyx.push(null);Pf.push(STR_CHECKED_OUT_DOCS+"...");sp.push(function(){kUX.ShowCheckOutListing();});vyx.push(true);kUX.EnableShowCheckOutListing=function(){vyx[3]=true;};kUX.DisableShowCheckOutListing=function(){vyx[3]=false;};var oN=new top.MenuInfo(STR_TOOLS,Pf,sp,vyx);this.SearchMenu.AddMenu(oN);if(kUX.bHasRMFeature){var xM=new Array();var NY3=new Array();var cy=new Array();xM.push(top.STR_RECORD_SERIES_PROPERTIES+"...");NY3.push(function(){kUX.sr.ShowRSDialog();});cy.push(false);var uk=xM.length-1;kUX.EnableEditRSProps=function(){cy[uk]=true;};kUX.DisableEditRSProps=function(){cy[uk]=false;};xM.push(top.STR_EDIT_RECORD_FOLDER+"...");NY3.push(function(){kUX.sr.ShowRFDialog();});cy.push(false);var lg=xM.length-1;kUX.EnableEditRFProps=function(){cy[lg]=true;};kUX.DisableEditRFProps=function(){cy[lg]=false;};xM.push(null);NY3.push(null);cy.push(null);xM.push(top.STR_ACTIONS+"...");NY3.push(function(){kUX.sr.ShowRecordActionsDialog();});cy.push(false);var Aa=xM.length-1;kUX.EnableRecordActions=function(){cy[Aa]=true;};kUX.DisableRecordActions=function(){cy[Aa]=false;};xM.push(top.STR_FROZEN_STATUS+"...");NY3.push(function(){kUX.sr.ShowFrozenDialog();});cy.push(false);var Oo=xM.length-1;kUX.EnableFreeze=function(){cy[Oo]=true;};kUX.DisableFreeze=function(){cy[Oo]=false;};xM.push(top.STR_SET_REVIEW_DATE+"...");NY3.push(function(){kUX.sr.ShowReviewDateDialog();});cy.push(false);var Uj=xM.length-1;kUX.EnableVitalReview=function(){cy[Uj]=true;};kUX.DisableVitalReview=function(){cy[Uj]=false;};xM.push(null);NY3.push(null);cy.push(null);xM.push(top.STR_PRINT_FILE_PLAN+"...");NY3.push(function(){kUX.sr.GetSelectedEntries()[0].PrintFilePlan(kUX.dbid);});cy.push(false);var rh=xM.length-1;kUX.EnablePrintFilePlan=function(){cy[rh]=true;};kUX.DisablePrintFilePlan=function(){cy[rh]=false;};var B=new top.MenuInfo(STR_RECORDS,xM,NY3,cy);this.SearchMenu.AddMenu(B);}var JN=new Array();var IPV=new Array();var al=new Array();JN.push(STR_CHANGE_PASSWORD+"...");IPV.push(function(){kUX.GetNewPassword();});al.push(true);JN.push(STR_CHOOSE_DISPLAY_COLUMNS+"...");IPV.push(function(){kUX.ShowColumnDialog();});al.push(true);JN.push(STR_CHANGE_IMPORT_OPTIONS+"...");IPV.push(function(){kUX.ShowImportVolumeDialog();});al.push(true);JN.push(STR_CHANGE_EXPORT_OPTIONS+"...");IPV.push(function(){kUX.ShowExportOptionsDialog();});al.push(true);JN.push(STR_CHANGE_DOCUMENT_VIEW+"...");IPV.push(function(){top.autoOpenEdoc=kUX.ShowDocumentViewDialog();});al.push(true);JN.push(STR_ANNOTATIONS+"...");IPV.push(function(){kUX.ShowAnnotationsDialog();});al.push(true);var y_=new top.MenuInfo(STR_SETTINGS,JN,IPV,al);this.SearchMenu.AddMenu(y_);var Vq=new Array();var Hp=new Array();var aD=new Array();Vq.push(STR_WEB_ACCESS_HELP);Hp.push(function(){top.OpenHelpLink("",false);});aD.push(true);if(this.bHasRMFeature){Vq.push(STR_RECORDS_MANAGEMENT_HELP);Hp.push(function(){top.OpenHelpLink("",true);});aD.push(true);}var aE=function(){if(!top.VerifyConnection(kUX.dbid))return;top.lfShowModalDialog(top.window,"AboutPopup.asp?dbid="+kUX.dbid,null,"help:no;scroll:no;status:no");};Vq.push(STR_ABOUT);Hp.push(aE);aD.push(true);var Lz=new top.MenuInfo(STR_HELP+"  ",Vq,Hp,aD);this.SearchMenu.AddMenu(Lz);};SearchForm.prototype.UpdateMenuActivity=function(){this.DisableOpenParent();this.DisableDelete();this.DisableRename();this.DisableExportImage();this.DisableExportBriefcase();this.DisablePropagateRights();this.DisableEditAccess();this.DisableProperties();this.DisableCheckIn();this.DisableUndoCheckOut();this.DisableCheckOut();this.DisableCheckOutDetails();this.DisableEditFields();this.DisableEditTags();this.DisableEditLinks();this.DisableEditVersions();this.DisableSnapshot();this.DisableTextExtraction();this.DisableMigrate();if(this.bHasRMFeature){this.DisableEditRSProps();this.DisableEditRFProps();this.DisableVitalReview();this.DisableFreeze();this.DisableRecordActions();this.DisablePrintFilePlan();}var JU=this.sr.GetSelectedEntries();var Od=JU.length;if(Od>0){if(Od==1){var bq=JU[0];this.EnableEditAccess();this.EnableProperties();if(bq.id!=ROOT_FOLDER_ID){this.EnableRename();this.EnableOpenParent();}if(bq.isFolder()){this.EnablePropagateRights();this.DisableExportImage();}else{this.EnableEditLinks();this.EnableEditVersions();}if(bq.toctype=="e"||bq.toctype=="es"){if(!bq.isCheckedOut()){this.EnableCheckOut();}else{this.EnableCheckOutDetails();if(bq.isPlockOwnedByMe)this.EnableCheckIn();}this.EnableSnapshot();}if(this.bHasRMFeature){if(bq.id==ROOT_FOLDER_ID){this.EnablePrintFilePlan();}if(bq.allowFreeze)this.EnableFreeze();if(bq.isRecordSeries){this.EnableEditRSProps();this.EnableFreeze();this.EnablePrintFilePlan();}if(bq.isRecordFolder){this.EnableEditRFProps();this.EnableRecordActions();this.EnablePrintFilePlan();}if(bq.isVital&&(bq.toctype=="d"||bq.toctype=="e")){this.EnableVitalReview();}}}this.EnableExportBriefcase();this.EnableDelete();this.EnableEditFields();this.EnableEditTags();this.EnableMigrate();this.EnableExportImage();this.EnableTextExtraction();var Z=true;var EOx=true;var O_=true;for(var ww=0;ww<JU.length;++ww){if(JU[ww].toctype!="e"&&JU[ww].toctype!="es"){this.DisableTextExtraction();this.DisableSnapshot();}else{if(JU[ww].isCheckedOut()){this.EnableUndoCheckOut();this.DisableTextExtraction();this.DisableSnapshot();}}if(JU[ww].isFolder()){this.DisableExportImage();}if(JU[ww].toctype==ROOT_FOLDER_ID){this.DisableMigrate();}if(!JU[ww].isVital||(JU[ww].toctype!="d"&&JU[ww].toctype!="e")){Z=false;}if(!JU[ww].allowFreeze){EOx=false;}if(JU[ww].NotReadable)this.DisableFieldsAndTags();}if(this.bHasRMFeature){if(Z)this.EnableVitalReview();if(EOx)this.EnableFreeze();}}};SearchForm.prototype.DisableFieldsAndTags=function(){this.DisableEditFields();this.DisableEditTags();};SearchForm.prototype.GetNewPassword=function(){if(!top.VerifyConnection(this.dbid))return;top.lfShowModalDialog(top.window,"PasswordDialog.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};SearchForm.prototype.ShowColumnDialog=function(){if(!top.VerifyConnection(this.dbid))return;var _w=top.lfShowModalDialog(window,"BrowseColumnsDialog.asp?cookiename=SearchColumns&dbid="+this.dbid,null,"help:no;scroll:no;status:no",1);if(_w)this.sr.Redisplay(true);};SearchForm.prototype.ShowExportOptionsDialog=function(){if(!top.VerifyConnection())return;top.lfShowModalDialog(top.window,"ExportImageOptions.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};SearchForm.prototype.ShowDocumentViewDialog=function(){if(!top.VerifyConnection(this.dbid))return;return top.lfShowModalDialog(top.window,"DocViewSettingsDialog.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};SearchForm.prototype.ShowAnnotationsDialog=function(){if(!top.VerifyConnection(this.dbid))return;return top.lfShowModalDialog(top.window,"AnnotationSettings.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};SearchForm.prototype.ShowImportVolumeDialog=function(){if(!top.VerifyConnection(this.dbid))return;return top.lfShowModalDialog(top.window,"ImportVolumeDialog.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};SearchForm.prototype.ShowCheckOutListing=function(){if(!top.VerifyConnection(this.dbid))return;top.lfShowModalDialog(top.window,"CheckedOutDocsPopup.asp?dbid="+this.dbid,null,"help:no;scroll:no;status:no");};SearchForm.prototype.SaveOptions=function(){var pz=new Array();for(var ww=0;ww<this.SearchElements.length;++ww){if(!this.SearchElements[ww].IsHidden()){pz.push(ww);}else{if(ww<FIRST_RM_SEARCH_TYPE){this.searchSelect.UnselectItem(ww);}else if(this.RMSelect){this.RMSelect.UnselectItem(ww);}}if(ww==LAST_BASIC_SEARCH_TYPE){ww=FIRST_RM_SEARCH_TYPE-1;}}top.GetXMLDocument("SetSearchOptions.asp?options="+pz.join(QP_LIST_DELIMITER)+"&dbid="+this.dbid);};SearchForm.prototype.LogOut=function(){try{var Xv=top.GetCookie("pagesopen");if((Xv!=null)&&(parseInt(Xv,10)>0)&&!confirm(top.STR_PLEASE_CLOSE_ALL))return;if(this.scannerLoaded){top.CloseScanning();}}catch(tp){}top.location="Login.asp?dbid="+this.dbid;};SearchForm.prototype.SetMainFormFrame=function(jQ){this.mainFormFrame=jQ;};SearchForm.prototype.setMainMenuShim=function(lj){this.mainMenuShim=lj;};SearchForm.prototype.setRenameElements=function(zg,RV){this.renameForm=zg;this.renameInput=RV;};SearchForm.prototype.ReleaseDOMElements=function(){if(this.formElement){this.formElement.ownerDocument.body.onclick=null;this.formElement.ownerDocument.body.onmousedown=null;}for(var ww=0;ww<this.SearchElements.length;++ww){if(this.SearchElements[ww]&&this.SearchElements[ww].ReleaseDOMElements)this.SearchElements[ww].ReleaseDOMElements();this.SearchElements[ww]=null;}this.formElement=null;this.commandInput=null;this.formWin=null;this.sr=null;this.dbid=null;this.KeyPressHandle=null;this.SearchMenu.ReleaseDOMElements();this.SearchMenu=null;if(this.submitButton){this.submitButton.onclick=null;this.submitButton=null;}this.renameForm=null;this.renameInput=null;this.KeyPressHandler=null;if(this.menuDoc)this.menuDoc.body.onclick=null;this.searchAnimation=null;};function SearchFormCustomizeMenu(cyQ,fP5,N0,Xt,lj){var Qc=this;this.openButtonDiv=cyQ;this.openLink=fP5;this.menuDiv=N0;this.menuTable=Xt;this.shim=lj;this.currentHoverRow=-1;this.openLink.onkeydown=function(g){g=top.getEvent(g,window.event,false);if(g.keyCode==ENTER_KEY_CODE||event.keyCode==SPACE_BAR_KEY_CODE){if(fP5.onfocus!=null){fP5.onfocus();}g.cancelBubble=true;g.returnValue=false;}};this.menuDiv.onkeydown=function(g){g=top.getEvent(g,window.event,false);var S8=-1;var _z=false;if(g.keyCode==DOWN_ARROW_KEY_CODE){if(Qc.currentHoverRow<Qc.menuTable.rows.length-1){var S8=Qc.currentHoverRow+1;}_z=true;}else if(g.keyCode==UP_ARROW_KEY_CODE){if(Qc.currentHoverRow>0){var S8=Qc.currentHoverRow-1;}_z=true;}else if(g.keyCode==ENTER_KEY_CODE){if(Qc.currentHoverRow>=0){Qc.SelectItem(Qc.idNumbers[Qc.currentHoverRow]);}}if(_z){if(S8>=0){Qc.HighlightRow(S8);}else if(Qc.currentHoverRow==0){Qc.UnhighlightRow(0);}else if(Qc.currentHoverRow==-1){Qc.Hide();Qc.openLink.onfocus=null;Qc.openLink.focus();Qc.openLink.onfocus=function(){Qc.Show();};}g.cancelBubble=true;g.returnValue=false;}};this.Hide();this.rowNumbers=new Array();this.idNumbers=new Array();this.onchange=function(){};this.value="";this.openLink.onfocus=function(){Qc.Show()};}SearchFormCustomizeMenu.prototype.Show=function(){var Qc=this;if(this.currentHoverRow>=0){this.UnhighlightRow(this.currentHoverRow);}this.currentHoverRow=-1;this.openButtonDiv.className="SearchFormCustomizeBtnDown";this.menuDiv.style.visibility="visible";this.menuDiv.focus();this.menuDiv.onblur=function(){if(top.timeoutfunc!=null){top.timeoutfunc();}top.timeoutfunc=function(){Qc.openLink.onfocus=function(){Qc.Show()};};window.setTimeout("if (top.timeoutfunc != null){top.timeoutfunc();} top.timeoutfunc=null;",100);Qc.Hide();Qc.openLink.onfocus=null;};this.openButtonDiv.onmousedown=function(){Qc.Hide()};this.openLink.onfocus=function(){Qc.Hide()};this.shim.style.top=this.menuDiv.style.top;this.shim.style.left=this.menuDiv.style.left;this.shim.style.zIndex=this.menuDiv.style.zIndex-1;this.shim.style.width=this.menuDiv.offsetWidth;this.shim.style.height=this.menuDiv.offsetHeight;this.shim.style.display="block";};SearchFormCustomizeMenu.prototype.Hide=function(){var Qc=this;this.shim.style.display="none";this.openButtonDiv.className="SearchFormCustomizeBtn";this.menuDiv.style.visibility="hidden";this.openButtonDiv.onmousedown=function(){Qc.Show()};this.openLink.onfocus=function(){Qc.Show()};};SearchFormCustomizeMenu.prototype.AddItem=function(name,F){var Qc=this;var l0s=this.menuTable.rows.length;var Ka=this.menuTable.insertRow(l0s);Ka.className="SearchFormCustomizeSelectRow";Ka.onmouseover=function(){Qc.HighlightRow(l0s);};Ka.onmouseout=function(){Qc.UnhighlightRow(l0s);};Ka.onmousedown=function(){Qc.SelectItem(F);};var YA=Ka.insertCell(0);YA.className="SearchFormCustomizeDropDown";var fRh=document.createTextNode(name);YA.appendChild(fRh);this.idNumbers[l0s]=F;this.rowNumbers[F]=l0s;};SearchFormCustomizeMenu.prototype.SelectItem=function(F,Tx){var Qc=this;this.SelectRow(this.menuTable.rows[this.rowNumbers[F]]);if(!Tx){this.value=F;this.onchange();}};SearchFormCustomizeMenu.prototype.UnselectItem=function(F){this.UnselectRow(this.menuTable.rows[this.rowNumbers[F]]);};SearchFormCustomizeMenu.prototype.SelectRow=function(Ka){var FF=Ka.className;var rCh=FF.indexOf(" SearchFormCustomizeSelectRowSelected");if(rCh<0){Ka.className=FF+" SearchFormCustomizeSelectRowSelected";}};SearchFormCustomizeMenu.prototype.UnselectRow=function(Ka){var FF=Ka.className;Ka.className=FF.replace(" SearchFormCustomizeSelectRowSelected","");};SearchFormCustomizeMenu.prototype.HighlightRow=function(Pm){var Ka=this.menuTable.rows[Pm];var FF=Ka.className;var rCh=FF.indexOf(" SearchFormCustomizeSelectRowOver");if(rCh<0){Ka.className=FF+" SearchFormCustomizeSelectRowOver";}if(this.currentHoverRow>=0){this.UnhighlightRow(this.currentHoverRow);}this.currentHoverRow=Pm;};SearchFormCustomizeMenu.prototype.UnhighlightRow=function(Pm){var Ka=this.menuTable.rows[Pm];var FF=Ka.className;Ka.className=FF.replace(" SearchFormCustomizeSelectRowOver","");if(this.currentHoverRow==Pm){this.currentHoverRow=-1;}};SearchFormCustomizeMenu.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchFormCustomizeMenu.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="TR"){v5.onmouseover=null;v5.onmouseout=null;v5.onmousedown=null;}v5.parentNode.removeChild(v5);};SearchFormCustomizeMenu.prototype.ReleaseDOMElements=function(){this.openButtonDiv.onmousedown=null;this.openButtonDiv=null;this.openLink.onfocus=null;this.openLink.onkeydown=null;this.openLink=null;this.menuDiv.onkeydown=null;this.menuDiv=null;if(this.menuTable){this.RemoveChildren(this.menuTable);this.menuTable=null;}this.onchange=null;this.shim=null;};var SEARCH_RESULTS_Y_OFFSET=87;function SearchResultEntry(x_,ZW,name,rI,VH,Pm,O6O,wa,mK,Bw,bd,Jyn,w2,bS,gO,OtI,iP,Ku,er){this.name=name;this.toctype=rI;this.targetid=ZW;this.hitCount=VH;this.id=x_;this.columndata=O6O;this.isOpen=false;this.rowNum=Pm;this.ContextHits=Jyn;this.isRecordSeries=w2;this.isRecordFolder=bS;this.isVital=gO;this.allowFreeze=OtI;this.NotReadable=er;this.pLockOwner=iP;this.IsCheckedOut=iP==""?false:true;this.isPlockOwnedByMe=Ku;this.imgsrc=wa;this.imgalt=mK;this.imgwidth=Bw;this.imgheight=bd;}SearchResultEntry.prototype.setPlusBox=function(rJ){this.m_icon=rJ;var WB=this;this.m_icon.onclick=function(){WB.toggleClick();};};SearchResultEntry.prototype.setIcon=function(rJ){if(this.toctype=="es"){if(this.IsCheckedOut){if(this.isPlockOwnedByMe){rJ.src="images/CheckedOutShortcutSelf.gif";}else{rJ.src="images/CheckedOutShortcutOther.gif";}}else{rJ.src="images/EDocShortcut.gif";}rJ.style.backgroundImage="url("+this.imgsrc+")";}else if(this.toctype=="e"){if(this.IsCheckedOut){if(this.isPlockOwnedByMe){rJ.src="images/CheckedOutSelf.gif";}else{rJ.src="images/CheckedOutOther.gif";}rJ.style.backgroundImage="url("+this.imgsrc+")";}else rJ.src=this.imgsrc;}else rJ.src=this.imgsrc;};SearchResultEntry.prototype.DrawContextHits=function(){var WX=this.displayRow.ownerDocument;for(var ww=1;ww<=this.availableHitCount;ww++){if(this.ContextHits[ww]){if(!this.ContextHits[ww].displayRow){var Ka=WX.createElement("tr");var wW=WX.createElement("td");wW.colSpan=2;Ka.appendChild(wW);var wW3=WX.createElement("td");wW3.colSpan=this.oResults.THead.childNodes[0].childNodes.length;wW3.className="LabelFont";Ka.appendChild(wW3);var Cj8=WX.createElement("nobr");wW3.appendChild(Cj8);var oR=WX.createElement("a");oR.onselectstart=function(){return false;};oR.style.cursor="default";Cj8.appendChild(oR);var e6=STR_PAGE+" "+this.ContextHits[ww].page+":"+this.ContextHits[ww].context;oR.innerHTML=e6;wW3.tabIndex=0;wW3.onkeydown=this.ContextHits[ww].GetKeyPressHandler(this.oResults,Ka);var hTN=this.ContextHits[ww].context;var PJ=hTN.search("<span class=ContextHighlight>");if(PJ!=-1){hTN=hTN.substr(PJ+29);PJ=hTN.search("<");if(PJ!=-1)hTN=hTN.substr(0,hTN.search("<"));}this.ContextHits[ww].setTableRow(Ka,this,ww,escape(hTN));}}}};SearchResultEntry.prototype.toggleClick=function(){var AG=this;this.isOpen=!this.isOpen;if(!this.isOpen){this.oResults.visibleContextRows-=parseInt(this.availableHitCount);this.m_icon.src="images/PlusBox.gif";this.m_icon.alt=STR_EXPAND;for(var ww=1;ww<this.ContextHits.length;ww++){if(this.ContextHits[ww])if(this.ContextHits[ww].displayRow.parentNode)this.ContextHits[ww].displayRow.parentNode.removeChild(this.ContextHits[ww].displayRow);}if(this.oResults.LateLoading){this.oResults.ShowLateLoadedRows();this.oResults.scrollbar.SetScrollHeight(this.oResults.GetScrollHeight());}}else{this.m_icon.src="images/MinusBox.gif";this.m_icon.alt=STR_COLLAPSE;var tD=top.GetXMLDocument("GetAvailableHitCount.asp?id="+this.id+"&handle="+this.oResults.searchHandle+"&dbid="+this.oResults.dbid);if(tD){var s9=tD.documentElement.text;AG.availableHitCount=s9;AG.oResults.visibleContextRows+=parseInt(AG.availableHitCount);AG.LoadAndDisplayContextHits();}}};SearchResultEntry.prototype.LoadAndDisplayContextHits=function(){if(this.availableHitCount>this.ContextHits.length){var ju="RunSearch.asp?start="+this.rowNum+"&count=1&handle="+this.oResults.searchHandle+"&hitlist="+this.rowNum+"&hitstart=1&hitcount="+this.oResults.maxContextRows+"&templateid="+this.oResults.templateID+"&dbid="+this.oResults.dbid+this.oResults.queryExpansion;if(this.oResults.SortColumnID&&this.oResults.SortDir)ju=ju+"&sort="+this.oResults.SortColumnID+"&sortdir="+this.oResults.SortDir;var WB=this;var tD=top.GetXMLDocument(ju);if(tD){var uSM=new Array();top.ResultsFromXML(tD,uSM,this.rowNum);var pH=WB.oResults.myWin.document.body.scrollTop;for(var ww=0;ww<uSM[0].ContextHits.length;++ww){if(uSM[0].ContextHits[ww]&&!WB.ContextHits[ww])WB.ContextHits[ww]=uSM[0].ContextHits[ww];}WB.DrawContextHits();var UK=false;if(uSM[0].hitCount>uSM[0].ContextHits.length-1&&!WB.oResults.LateLoading){WB.oResults.CurrentMajorRow=1;WB.oResults.LateLoading=true;WB.oResults.myWin.document.body.style.overflow="hidden";WB.oResults.DisplayDiv.style.overflowX="auto";WB.oResults.DisplayDiv.style.overflowY="hidden";WB.oResults.majorRowHeight=WB.oResults.TBody.offsetHeight/(WB.oResults.totalRows);WB.oResults.SizeFakeScrollbar();WB.oResults.myWin.document.body.scrollTop=0;UK=true;}WB.DisplayContextRows();if(UK){WB.oResults.scrollbar.SetScrollTop(pH);}}}else{this.DisplayContextRows();}if(this.oResults.LateLoading)this.oResults.scrollbar.SetScrollHeight(this.oResults.GetScrollHeight());};SearchResultEntry.prototype.DisplayContextRows=function(){var i_=this.oResults.TBody.offsetHeight;var lU=0;var iQE=false;for(var ww=1;ww<=this.availableHitCount&&!iQE;ww++){if(!this.ContextHits[ww])iQE=true;else if(this.ContextHits[ww].displayRow){if(this.oResults.ResultCache[this.rowNum+1]&&this.oResults.ResultCache[this.rowNum+1].displayRow.parentNode==this.displayRow.parentNode)this.displayRow.parentNode.insertBefore(this.ContextHits[ww].displayRow,this.oResults.ResultCache[this.rowNum+1].displayRow);else this.displayRow.parentNode.appendChild(this.ContextHits[ww].displayRow);lU++;}}var XM8=this.oResults.TBody.offsetHeight;if(XM8>i_)this.oResults.minorRowHeight=(XM8-i_)/lU;if(this.oResults.LateLoading)this.oResults.scrollbar.SetScrollHeight(this.oResults.GetScrollHeight());};SearchResultEntry.prototype.OpenEntryPages=function(){var RVa=this;var ft="docview.asp?id="+RVa.targetid+"&searchHandle="+RVa.oResults.searchHandle+"&dbid="+RVa.oResults.dbid;top.OpenDocView(top.window,RVa.targetid,ft,"height=570,resizable=yes,scrollbars=no,status=yes,toolbar=no,width=860");};SearchResultEntry.prototype.OpenEntryEdoc=function(){if(!top.VerifyConnection(this.oResults.dbid))return;var RVa=this;if(this.isPlockOwnedByMe){if(!confirm(top.STR_CHECKED_OUT_SELF_DOWNLOAD_CONFIRM))return;}RVa.oResults.myWin.document.getElementById("downloadframe").src="ImageDisplay.asp?doc="+RVa.targetid+"&edoc=1&forcedialog=true&dbid="+RVa.oResults.dbid;};SearchResultEntry.prototype.OpenEntry=function(){if(!top.VerifyConnection(this.oResults.dbid))return;var RVa=this;if(RVa.toctype=="f"||RVa.toctype=="fs"){top.window.open("index.asp?startid="+RVa.id+"&dbid="+RVa.oResults.dbid);}else if((!(top.autoOpenEdoc==false))&&(RVa.toctype=="e"||RVa.toctype=="es")){RVa.OpenEntryEdoc();}else{RVa.OpenEntryPages();}};SearchResultEntry.prototype.OpenParentFolder=function(){if(!top.VerifyConnection(this.oResults.dbid))return;var RVa=this;top.window.open("index.asp?childid="+RVa.id+"&dbid="+RVa.oResults.dbid);};SearchResultEntry.prototype.ShowPropertiesDialog=Folder.prototype.ShowPropertiesDialog;SearchResultEntry.prototype.PrintFilePlan=Folder.prototype.PrintFilePlan;SearchResultEntry.prototype.SetNameDatum=Folder.prototype.SetNameDatum;SearchResultEntry.prototype.isFolder=Folder.prototype.isFolder;SearchResultEntry.prototype.isCheckedOut=Folder.prototype.isCheckedOut;SearchResultEntry.prototype.GetNewName=function(){var AG=this;if(AG.isRecordSeries){AG.browser.controls.ShowRSDialog(AG);return;}if(AG.oResults)AG.oResults.renaming=true;if(AG.NOBRobj)AG.nameDatum.removeChild(AG.NOBRobj);else AG.nameDatum.removeChild(AG.nameLink);var m3=AG.nameDatum.ownerDocument.createElement("input");m3.type="text";m3.className="LabelFont";m3.onblur=function(){if(AG.oResults)AG.oResults.renaming=false;var Ln=m3.value;AG.nameDatum.removeChild(m3);AG.ShowName();if(AG.name!=Ln&&Ln!=""){AG.Rename(Ln,AG.oResults.dbid);}if(AG.focusOnName)AG.nameDatum.focus();};AG.nameDatum.onselectstart=function(){};m3.onmouseup=function(g){g=top.getEvent(g,AG.oResults.myWin.event,false);if(AG.oResults&&!top.getLMB(g))AG.oResults.sf.showBuiltinContext=true;};m3.onkeydown=function(g){g=top.getEvent(g,AG.oResults.myWin.event,false);if(g.keyCode==ENTER_KEY_CODE){top.cancelEvent(g);AG.focusOnName=true;m3.blur();}else return g.keyCode;};AG.nameDatum.appendChild(m3);m3.value=AG.name;m3.size=AG.name.length+3;m3.createTextRange().select();m3.focus();};SearchResultEntry.prototype.Rename=function(Ln,T){var AG=this;if(Ln!=null){var k7="callbackfunc"+top.callbackNum++;top[k7]=function(JY){AG.name=JY;if(AG.NOBRobj)AG.nameDatum.removeChild(AG.NOBRobj);else AG.nameDatum.removeChild(AG.nameLink);AG.ShowName();};AG.oResults.sf.renameInput.value=Ln;AG.oResults.sf.renameForm.action="RenameTOCEntry.asp?type="+AG.toctype+"&id="+AG.id+"&callback="+k7+"&dbid="+T;AG.oResults.sf.renameForm.submit();}};SearchResultEntry.prototype.ShowName=function(){var RVa=this;RVa.NOBRobj=RVa.nameDatum.ownerDocument.createElement("nobr");RVa.nameDatum.appendChild(RVa.NOBRobj);RVa.nameLink=RVa.nameDatum.ownerDocument.createElement("a");RVa.nameLink.style.cursor="default";RVa.nameLink.style.width="100%";RVa.nameLink.style.padding="4px 8px";RVa.nameLink.onselectstart=function(){return false;};RVa.nameLink.tabIndex=0;RVa.NOBRobj.appendChild(RVa.nameLink);var eJU=RVa.nameDatum.ownerDocument.createTextNode(RVa.name);RVa.nameLink.appendChild(eJU);RVa.nameLink.onmouseup=function(g){g=top.getEvent(g,RVa.oResults.myWin.event,false);RVa.oResults.ClickFunc(RVa.displayRow,RVa,g);};var tK=function(){RVa.oResults.OpenEntries();};RVa.nameLink.ondblclick=tK;RVa.nameLink.onkeydown=function(g){g=top.getEvent(g,RVa.oResults.myWin.event,false);if(g.keyCode==ENTER_KEY_CODE){top.cancelEvent(g);tK();}if(g.keyCode==SPACE_BAR_KEY_CODE){top.cancelEvent(g);RVa.oResults.ClickFunc(RVa.displayRow,RVa,g);}if(g.keyCode==DELETE_KEY_CODE&&RVa.oResults.sf.IsDeleteEnabled()){top.cancelEvent(g);RVa.oResults.sf.DeleteEntries();}};};SearchResultEntry.prototype.ShowDropContextMenu=function(g){var j3=top.getOffsetX(g)+top.getFirer(g).getBoundingClientRect().left-top.getFirer(g).offsetLeft;var _P=top.getOffsetY(g)+top.getFirer(g).getBoundingClientRect().top-top.getFirer(g).offsetTop;var gJ=this;gJ.oResults.KillContextMenu();var Wo=new top.ContextMenu(top.document.body,j3+this.oResults.sf.mainFormFrame.width,_P+SEARCH_RESULTS_Y_OFFSET,top,true);var Cs;var DP=false;if(gJ.oResults.GetSelectedEntries().length>1)DP=true;var iQ=function(g){gJ.oResults.KillContextMenu();gJ.oResults.OpenEntries();};var nB=STR_OPEN;var o9Q=function(g){gJ.oResults.KillContextMenu();gJ.oResults.CheckOut();};var IH=function(g){gJ.oResults.KillContextMenu();gJ.oResults.CheckIn();};var X8=function(g){gJ.oResults.KillContextMenu();gJ.oResults.UndoCheckOut();};var IQ=function(g){gJ.oResults.KillContextMenu();gJ.oResults.CheckOutDetails();};var WH=true;var BaB=function(){gJ.oResults.KillContextMenu();gJ.oResults.EditMetadata("showfields");};Fp=false;for(ww=0;(ww<this.oResults.GetSelectedEntries().length)&&(Fp==false);ww++)Fp=this.oResults.GetSelectedEntries()[ww].NotReadable;if(gJ.toctype=="e"||gJ.toctype=="es"){var nb=STR_OPEN_EDOC;nB=STR_OPEN_PAGES;var Wg=function(){gJ.oResults.KillContextMenu();gJ.oResults.OpenElectFiles();};iQ=function(g){gJ.oResults.KillContextMenu();gJ.oResults.OpenEntriesPages();};if(top.autoOpenEdoc){Wo.AddItem(nB,iQ,true);Wo.AddItem(nb,Wg,true,null,false,null,true);}else{Wo.AddItem(nB,iQ,true,null,false,null,true);Wo.AddItem(nb,Wg,true);}Wo.AddItem(STR_FIELDS+"...",BaB,WH&&!Fp);if(gJ.IsCheckedOut){Wo.AddSeparator();if(gJ.isPlockOwnedByMe){Wo.AddItem(STR_CHECK_IN,IH,!DP);}Wo.AddItem(STR_UNDO_CHECK_OUT,X8,true);Wo.AddItem(STR_CHECK_OUT_DETAILS,IQ,!DP);}else{Wo.AddItem(STR_CHECK_OUT,o9Q,!DP);}}else{Wo.AddItem(nB,iQ,true);Wo.AddItem(STR_FIELDS+"...",BaB,WH&&!Fp);}Wo.AddSeparator();var na=(gJ.id!=ROOT_FOLDER_ID);var Rz=function(){gJ.oResults.KillContextMenu();gJ.oResults.sf.DeleteEntries();};var nF=STR_DELETE;if(gJ.oResults.sf.IsDeleteEnabled()){Wo.AddItem(STR_DELETE,Rz,na);}var BC=function(){gJ.oResults.KillContextMenu();gJ.oResults.RenameEntry(gJ.oResults.sf.dbid);};Wo.AddItem(STR_RENAME,BC,!DP);if(gJ.isFolder()&&!DP){if(gJ.oResults.sf.bExportAllowed){var We=function(){gJ.oResults.KillContextMenu();gJ.oResults.sf.ExportBriefcase(true);};Wo.AddItem(STR_EXPORT_BRIEFCASE,We,true);}if(gJ.oResults.sf.bMigrateAllowed){var fi=function(){gJ.oResults.KillContextMenu();gJ.oResults.ShowMigrateDialog();};Wo.AddItem(STR_MIGRATE,fi,true);}}else if(gJ.oResults.sf.IsTextExtractionEnabled()){var bP=function(){gJ.oResults.KillContextMenu();gJ.oResults.ExtractText();};Wo.AddItem(STR_EXTRACT_TEXT,bP,true);}Wo.AddSeparator();var Z0=function(){gJ.oResults.KillContextMenu();gJ.oResults.ShowAccessDialog();};Wo.AddItem(STR_EDIT_ACCESS,Z0,!DP);var Do=function(){gJ.oResults.KillContextMenu();gJ.oResults.ShowProperties();};Wo.AddItem(STR_PROPERTIES,Do,!DP);Wo.AddSeparator();var On=function(){gJ.oResults.KillContextMenu();gJ.OpenParentFolder();};Wo.AddItem(STR_OPEN_PARENT_FOLDER,On,true);gJ.oResults.KillContextMenu=function(){Wo.die();gJ.oResults.KillContextMenu=function(){};};g.cancelBubble=true;};function SearchResults(){var LBH=this;LBH.selectedEntries=new Array();LBH.selectedRows=new Array();LBH.showHits=true;LBH.queryExpansion="";}SearchResults.prototype.ShowHits=function(){this.showHits=true;};SearchResults.prototype.HideHits=function(){this.showHits=false;};SearchResults.prototype.OpenEntries=function(){var JU=this.GetSelectedEntries();var ww;for(ww=0;ww<JU.length;ww++){JU[ww].OpenEntry();}};SearchResults.prototype.OpenElectFiles=function(){var JU=this.GetSelectedEntries();var ww;for(ww=0;ww<JU.length;ww++){if(JU[ww].toctype=="e"||JU[ww].toctype=="es"){if(JU[ww].isPlockOwnedByMe){if(!confirm(top.STR_CHECKED_OUT_SELF_DOWNLOAD_CONFIRM))return;}JU[ww].OpenEntryEdoc();}}};SearchResults.prototype.OpenEntriesPages=function(){var JU=this.GetSelectedEntries();var ww;for(ww=0;ww<JU.length;ww++){if(!JU[ww].isFolder())JU[ww].OpenEntryPages();}};SearchResults.prototype.SetSelectedEntry=function(Ka,RVa){this.SelectNoEntries();this.AddSelectedEntry(Ka,RVa);};SearchResults.prototype.AddSelectedEntry=function(Ka,RVa){var vtB=false;var ww;for(ww=0;ww<this.selectedEntries.length;ww++){if(this.selectedEntries[ww].id==RVa.id)vtB=true;}if(!vtB){Ka.className="SearchResultsTableHighlightBackground";this.selectedEntries.push(RVa);this.selectedRows.push(Ka);}};SearchResults.prototype.UnSelectEntry=function(RVa){var ueE=-1;var ww;for(ww=0;ww<this.selectedEntries.length;ww++){if(this.selectedEntries[ww].id==RVa.id){ueE=ww;break;}}if(ueE>-1){this.selectedRows[ueE].className="";this.selectedEntries.splice(ueE,1);this.selectedRows.splice(ueE,1);}};SearchResults.prototype.SelectNoEntries=function(){while(this.selectedEntries.length){var W_o=this.selectedEntries.pop();var TLO=this.selectedRows.pop();TLO.className="";}if(this.highlightedRow){this.highlightedRow.className="";}};SearchResults.prototype.GetMultiSelectCount=function(){return this.selectedEntries.length;};SearchResults.prototype.GetSelectedEntries=function(){return this.selectedEntries;};SearchResults.prototype.SetSearchForm=function(WO){this.sf=WO;};SearchResults.prototype.SetUIElements=function(ku,nc,GD,T,yL,b5,Et,Cbg,jt){this.THead=ku;this.TBody=nc;this.myWin=GD;this.entries=new Array();this.dbid=T;this.DisplayDiv=Et;var LBH=this;GD.document.onkeydown=function(g){return LBH.KeyPress(g,GD);};GD.onresize=function(){LBH.winHeight=top.getClientHeight(LBH.myWin);if(LBH.LateLoading){LBH.SizeFakeScrollbar();LBH.Resized=true;}};GD.onunload=function(){LBH.ReleaseDOMElements();GD.onunload=null;};LBH.maxRowsToDisplay=Cbg;LBH.maxContextRows=jt;LBH.rowsCurrentlyDisplayed=0;LBH.majorRowHeight=0;LBH.minorRowHeight=0;LBH.totalRows=0;LBH.ResultCache=new Array();LBH.ScrollDiv=yL;LBH.FakeDiv=b5;LBH.DisplayDiv=Et;LBH.scrollPct=0;LBH.winHeight=top.getClientHeight(LBH.myWin);LBH.SortColumnID=0;LBH.SortDir=top.SORT_DIRECTION_ASC;var m2="callbackfunc"+top.callbackNum++;top[m2]=function(IE){LBH.ScrollHandler(IE);};this.scrollbar=new FakeScrollbar(this.ScrollDiv,this.FakeDiv,m2);if(LBH.sf){LBH.myWin.document.body.onclick=function(){LBH.sf.killContextMenu();LBH.sf.SearchMenu.HideMenu();};}LBH.myWin.document.body.onmouseup=function(){LBH.KillContextMenu();return false;};LBH.myWin.document.body.oncontextmenu=function(){return false;};this.DisplayDiv.onmousewheel=function(g){g=top.getEvent(g,GD.event,false);if(LBH.LateLoading)LBH.scrollbar.SetScrollTop(parseInt(LBH.scrollbar.GetScrollTop())-21*(g.wheelDelta/120));};};SearchResults.prototype.Initialize=function(){this.Clear();this.LateLoading=false;this.CurrentMajorRow=1;this.CurrentMinorRow=0;this.ScrollDiv.style.left="0px";this.ScrollDiv.style.width="0px";this.ScrollDiv.style.height="0px";this.ResultCache=new Array();this.rowsCurrentlyDisplayed=0;};SearchResults.prototype.SizeFakeScrollbar=function(){this.ScrollDiv.style.left=this.myWin.document.body.clientWidth-20;this.ScrollDiv.style.width="20px";this.ScrollDiv.style.height=this.myWin.document.body.clientHeight;this.DisplayDiv.style.width=this.myWin.document.body.clientWidth;this.DisplayDiv.style.height=this.myWin.document.body.clientHeight;};SearchResults.prototype.ScrollHandler=function(FW){var DT;if(FW!=0&&!FW)FW=this.scrollPct;if(!this.LateLoading||(!this.Resized&&this.scrollPct==FW))return;this.Resized=false;this.scrollPct=FW;var HGH=0;var YC=0;var ANB=new Array();var hh=new Array();var dX=new Array();var km=this.winHeight-this.THead.offsetHeight;_q=0;if(this.scrollPct==-1){this.DisplayFromBottom=true;for(this.CurrentMajorRow=this.totalRows;this.CurrentMajorRow>1;this.CurrentMajorRow--){if(this.ResultCache[this.CurrentMajorRow]){if(this.ResultCache[this.CurrentMajorRow].isOpen){var LS;var cs=0;for(this.CurrentMinorRow=this.ResultCache[this.CurrentMajorRow].availableHitCount;this.CurrentMinorRow>0;this.CurrentMinorRow--){_q+=this.minorRowHeight;if(!this.ResultCache[this.CurrentMajorRow].ContextHits[this.CurrentMinorRow]){HGH=this.CurrentMajorRow;LS=this.CurrentMinorRow;}if(LS)cs++;if(_q>km)break;}if(LS){ANB.push(this.CurrentMajorRow);hh.push(LS);dX.push(cs);}}}else{HGH=this.CurrentMajorRow;}if(HGH)YC++;_q+=this.majorRowHeight;if(_q>km)break;}}else{this.DisplayFromBottom=false;var mV=this.GetScrollHeight()*this.scrollPct;var bA=0;for(this.CurrentMajorRow=1;this.CurrentMajorRow<=this.totalRows;this.CurrentMajorRow++){this.CurrentMinorRow=0;if(bA>=mV)break;bA+=this.majorRowHeight;if(this.ResultCache[this.CurrentMajorRow]){if(this.ResultCache[this.CurrentMajorRow].isOpen){for(this.CurrentMinorRow=0;this.CurrentMinorRow<=this.ResultCache[this.CurrentMajorRow].availableHitCount;this.CurrentMinorRow++){if(bA>=mV)break;bA+=this.minorRowHeight;}}}if(bA>=mV)break;}if(this.CurrentMinorRow){var LS=0;for(var Je=this.CurrentMinorRow;Je<=this.ResultCache[this.CurrentMajorRow].availableHitCount;++Je){_q+=this.minorRowHeight;if(!this.ResultCache[this.CurrentMajorRow].ContextHits[Je]){if(!LS){LS=Je;HGH=this.CurrentMajorRow;}}if(_q>km)break;}if(LS){ANB.push(this.CurrentMajorRow);hh.push(LS);dX.push(this.maxContextRows);}}for(var ww=this.CurrentMajorRow;ww<=this.totalRows;ww++){_q+=this.majorRowHeight;if(HGH)YC++;if(!this.ResultCache[ww]){if(!HGH){HGH=ww;YC++;}}else{if(this.ResultCache[ww].isOpen){var LS=0;for(var nS=1;nS<this.ResultCache[ww].availableHitCount;++nS){if(_q>km)break;_q+=this.minorRowHeight;if(!this.ResultCache[ww].ContextHits[nS]){if(!LS)LS=nS;if(!HGH){HGH=1;YC++;}}}if(LS){ANB.push(ww);hh.push(LS);dX.push(this.maxContextRows);}}}if(_q>km)break;}}if(!HGH&&ANB.length==0){this.ShowLateLoadedRows();}else{var ju="RunSearch.asp?start="+HGH+"&count="+YC+"&handle="+this.searchHandle+"&templateid="+this.templateID+"&dbid="+this.dbid+this.queryExpansion;if(this.SortColumnID&&this.SortDir)ju=ju+"&sort="+this.SortColumnID+"&sortdir="+this.SortDir;if(ANB.length>0){ju=ju+"&hitlist="+ANB.join(",")+"&hitstart="+hh.join(",")+"&hitcount="+dX.join(",");}var LBH=this;var tD=top.GetXMLDocument(ju);if(tD){var uSM=new Array();top.ResultsFromXML(tD,uSM,HGH);for(var ww=0;ww<uSM.length;ww++){if(!LBH.ResultCache[ww+HGH]){LBH.ResultCache[ww+HGH]=uSM[ww];LBH.drawEntry(uSM[ww],LBH.TBody);}else{for(var nS=0;nS<uSM[ww].ContextHits.length;++nS){if(uSM[ww].ContextHits[nS]&&!LBH.ResultCache[ww+HGH].ContextHits[nS])LBH.ResultCache[ww+HGH].ContextHits[nS]=uSM[ww].ContextHits[nS];}if(LBH.ResultCache[ww+HGH].isOpen)LBH.ResultCache[ww+HGH].DrawContextHits();}}LBH.ShowLateLoadedRows();}}};SearchResults.prototype.TableTooBig=function(){return this.DisplayDiv.scrollHeight>this.myWin.document.body.clientHeight;};SearchResults.prototype.DrawSearchResults=function(uSM,VH,bf){this.totalRows=VH;this.visibleContextRows=0;this.SelectNoEntries();if(this.sf){this.sf.UpdateMenuActivity();}for(var ww=0;ww<uSM.length;ww++){if(!this.ResultCache[ww+bf]){this.ResultCache[ww+bf]=uSM[ww];this.drawEntry(uSM[ww],this.TBody);}}if(uSM.length==VH){this.Clear();this.LateLoading=false;this.DisplayDiv.style.overflowX="visible";this.DisplayDiv.style.overflowY="visible";this.myWin.document.body.style.overflow="auto";for(var ww=1;ww<this.ResultCache.length;ww++)this.TBody.appendChild(this.ResultCache[ww].displayRow);}else{this.LateLoading=true;this.DisplayDiv.style.overflowY="hidden";this.DisplayDiv.style.overflowX="auto";this.myWin.document.body.style.overflow="hidden";this.CurrentMajorRow=bf;this.CurrentMinorRow=0;this.ShowLateLoadedRows();this.scrollbar.SetScrollHeight(this.GetScrollHeight());}};SearchResults.prototype.ShowLateLoadedRows=function(){this.Clear();this.SizeFakeScrollbar();var iQE=false;var ANh;var sv=true;var Nq=this.CurrentMinorRow;for(ANh=0;ANh+this.CurrentMajorRow<=this.ResultCache.length&&!iQE;ANh++){if(this.DisplayFromBottom){var Y7i=this.ResultCache.length-(ANh+1);if(!this.ResultCache[Y7i])iQE=true;else{if(this.ResultCache[Y7i].isOpen){this.ShowLateLoadedContextHits(Y7i,0);sv=false;}if(this.TBody.childNodes.length>0)this.TBody.insertBefore(this.ResultCache[Y7i].displayRow,this.TBody.childNodes[0]);else this.TBody.insertBefore(this.ResultCache[Y7i].displayRow);}}else{var Y7i=this.CurrentMajorRow+ANh;if(!this.ResultCache[Y7i])iQE=true;else{if(Nq>0){this.ShowLateLoadedContextHits(Y7i,Nq);sv=false;}else{this.TBody.appendChild(this.ResultCache[Y7i].displayRow);}}}this.SizeFakeScrollbar();if(sv){var km=this.TBody.offsetHeight;this.majorRowHeight=km/(ANh+1);}if(this.TableTooBig()&&!iQE){if(this.DisplayFromBottom){this.TBody.removeChild(this.TBody.childNodes[0]);this.TBody.removeChild(this.TBody.childNodes[0]);this.majorRowsDisplayed--;}else this.majorRowsDisplayed++;break;}if(!this.DisplayFromBottom&&Nq==0&&this.ResultCache[Y7i]){if(this.ResultCache[Y7i].isOpen){this.ShowLateLoadedContextHits(Y7i,1);sv=false;if(this.TableTooBig())break;}}Nq=0;}this.SizeFakeScrollbar();};SearchResults.prototype.GetScrollHeight=function(){return(this.majorRowHeight*this.totalRows)+(this.minorRowHeight*parseInt(this.visibleContextRows));};SearchResults.prototype.ShowLateLoadedContextHits=function(SsU,Nq){var i_=this.TBody.offsetHeight;var iQE=false;var lU;for(lU=0;lU+Nq<=this.ResultCache[SsU].hitCount&&!iQE;++lU){if(this.DisplayFromBottom){var qT=this.ResultCache[SsU].hitCount-(lU+1);if(!this.ResultCache[SsU].ContextHits[qT])iQE=true;else if(this.TBody.childNodes.length>0)this.TBody.insertBefore(this.ResultCache[SsU].ContextHits[qT].displayRow,this.TBody.childNodes[0]);else this.TBody.insertBefore(this.ResultCache[SsU].ContextHits[qT].displayRow);}else{var qT=Nq+lU;if(!this.ResultCache[SsU].ContextHits[qT])iQE=true;else this.TBody.appendChild(this.ResultCache[SsU].ContextHits[qT].displayRow);}this.SizeFakeScrollbar();if(this.TableTooBig()&&!iQE){if(this.DisplayFromBottom){this.TBody.removeChild(this.TBody.childNodes[0]);this.TBody.removeChild(this.TBody.childNodes[0]);this.majorRowsDisplayed--;}else this.majorRowsDisplayed++;break;}}};SearchResults.prototype.KeyPress=function(g,l){g=top.getEvent(g,l.event,false);if(!this.renaming){if(g.keyCode==DELETE_KEY_CODE){this.DeleteEntries();}if(g.altKey){if(g.keyCode==ENTER_KEY_CODE&&this.GetSelectedEntries().length>0)this.ShowProperties();}if(g.keyCode==F2_KEY_CODE&&this.selectedEntries.length==1){this.RenameEntry(this.dbid);}}return g.keyCode;};SearchResults.prototype.Clear=function(){while(this.TBody.childNodes.length)this.TBody.removeChild(this.TBody.childNodes[0]);};SearchResults.prototype.Redisplay=function(QK){if(!this.searchHandle)return;this.ResultCache=new Array();this.Initialize();var ju="RunSearch.asp?start="+this.CurrentMajorRow+"&count="+this.maxRowsToDisplay+"&handle="+this.searchHandle+"&templateid="+this.templateID+"&dbid="+this.dbid+this.queryExpansion;if(this.SortColumnID&&this.SortDir)ju=ju+"&sort="+this.SortColumnID+"&sortdir="+this.SortDir;if(QK)ju=ju+"&colschanged=yes";var tD=top.GetXMLDocument(ju);if(tD){var uSM=new Array();top.ResultsFromXML(tD,uSM,this.CurrentMajorRow);var B8=new Array();top.ColumnTypesFromXML(tD,B8);var c=tD.documentElement;var VH=parseInt(c.getAttribute("TotalResults"));this.Initialize();this.DisplayHeaderRow(B8);this.DrawSearchResults(uSM,VH,1);}};SearchResults.prototype.CreateSortFunc=function(fG){var LBH=this;return function(){if(LBH.SortColumnID!=fG){LBH.SortColumnID=fG;LBH.SortDir=top.SORT_DIRECTION_ASC;}else if(LBH.SortDir==top.SORT_DIRECTION_ASC)LBH.SortDir=top.SORT_DIRECTION_DESC;else LBH.SortDir=top.SORT_DIRECTION_ASC;LBH.Redisplay();};};SearchResults.prototype.assignHeaderMouseover=function(ft,_oE){ft.onmouseover=function(){_oE.className="LabelFont HeaderStyle HeaderColor";};ft.onmouseout=function(){_oE.className="LabelFont HeaderStyle";};};SearchResults.prototype.DisplayHeaderRow=function(B8){while(this.THead.childNodes.length)this.THead.removeChild(this.THead.childNodes[0]);var jo=0;var WX=this.THead.ownerDocument;var bw=WX.createElement("tr");bw.className="DocBrowseHeaderColor";var zn=WX.createElement("td");bw.appendChild(zn);jo++;var Vm=WX.createElement("td");Vm.align="center";Vm.className="LabelFont HeaderStyle";var VX=WX.createElement("a");VX.style.cursor="default";top.setKeyPressHandler(VX,this.myWin);Vm.appendChild(VX).appendChild(WX.createTextNode(""));bw.appendChild(Vm);var OI=WX.createElement("td");bw.appendChild(OI);var Pj=WX.createElement("td");Pj.className="LabelFont HeaderStyle";Pj.align="left";var eu=WX.createElement("a");eu.style.paddingLeft="8px";eu.style.cursor="default";eu.onclick=this.CreateSortFunc(top.COLUMN_TYPE_DISPLAYNAME);eu.tabIndex=0;this.assignHeaderMouseover(eu,Pj);top.setKeyPressHandler(eu,this.myWin);Pj.appendChild(eu).appendChild(WX.createTextNode(STR_NAME));bw.appendChild(Pj);if(this.showHits){var K_=WX.createElement("td");K_.className="LabelFont HeaderStyle";K_.style.padding="0px 4px";var EOX=WX.createElement("a");EOX.style.cursor="default";EOX.onclick=this.CreateSortFunc(top.COLUMN_TYPE_HITCOUNT);EOX.tabIndex=0;this.assignHeaderMouseover(EOX,K_);top.setKeyPressHandler(EOX,this.myWin);K_.appendChild(EOX).appendChild(WX.createTextNode(STR_HITS));bw.appendChild(K_);}for(var ww=0;ww<B8.length;ww++){var Mt=WX.createElement("td");Mt.align="left";Mt.className="LabelFont HeaderStyle";var xh=WX.createElement("a");Mt.style.padding="0px 4px";xh.style.cursor="default";xh.onclick=this.CreateSortFunc(B8[ww].id);xh.tabIndex=0;this.assignHeaderMouseover(xh,Mt);top.setKeyPressHandler(xh,this.myWin);Mt.appendChild(xh).appendChild(WX.createTextNode(B8[ww].Name));bw.appendChild(Mt);}this.THead.appendChild(bw);};SearchResults.prototype.ClickFunc=function(Ka,RVa,g){if(top.getLMB(g)){if(g.ctrlKey){if(Ka.className=="SearchResultsTableHighlightBackground"){this.UnSelectEntry(RVa);}else{this.AddSelectedEntry(Ka,RVa);}}else{this.SetSelectedEntry(Ka,RVa);}}else{if(Ka.className==""){this.SetSelectedEntry(Ka,RVa);}RVa.ShowDropContextMenu(g);}this.sf.UpdateMenuActivity();};SearchResults.prototype.RenameEntry=function(T){if(this.selectedEntries[0].isRecordSeries){this.ShowRSDialog();}else{this.selectedEntries[0].GetNewName(this.myWin,T);}};SearchResults.prototype.ShowProperties=function(){this.selectedEntries[0].ShowPropertiesDialog(this.myWin,this.dbid);};SearchResults.prototype.DeleteEntries=function(){if(!this.sf.IsDeleteEnabled())return;var LBH=this;var rF;if(this.GetSelectedEntries().length==1)rF=STR_CONFIRM_DELETE_SINGLE+this.GetSelectedEntries()[0].name+"?";else if(this.GetSelectedEntries().length==0)return;else rF=STR_CONFIRM_DELETE_1+this.GetSelectedEntries().length+STR_CONFIRM_DELETE_2;if(confirm(rF)){var Tt=this.GetSelectedEntries();var ww;var T8=false;for(ww=0;ww<Tt.length;ww++){if((Tt[ww].toctype=="e"||Tt[ww].toctype=="es")&&Tt[ww].IsCheckedOut&&!Tt[ww].isPlockOwnedByMe){T8=true;}}if(T8){if(!confirm(STR_CONFIRM_DELETE_CHECKED_OUT))return;}for(ww=0;ww<Tt.length;ww++){var RVa=Tt[ww];top.GetXMLDocument("DeleteTOCEntry.asp?id="+RVa.id+"&type="+RVa.toctype+"&searchhandle="+LBH.searchHandle+"&dbid="+RVa.oResults.dbid);}this.SelectNoEntries();if(LBH.SortDir==top.SORT_DIRECTION_ASC)LBH.SortDir=top.SORT_DIRECTION_DESC;else LBH.SortDir=top.SORT_DIRECTION_ASC;if(!LBH.SortColumnID)LBH.SortColumnID=top.COLUMN_TYPE_HITCOUNT;LBH.CreateSortFunc(LBH.SortColumnID)();}};SearchResults.prototype.EditMetadata=function(FY){if(!top.VerifyConnection(this.dbid))return;var LBH=this;var SH;var JU=LBH.GetSelectedEntries();var Zu="";var rT="";if(JU.length>1)for(ww=0;ww<JU.length;ww++){if(ww>0){Zu+=";";rT+=";";}Zu+=JU[ww].id;rT+=JU[ww].toctype;}else{Zu=JU[0].id;rT=JU[0].toctype;}var s6="FieldPopup.asp?";if(FY){s6=s6+FY+"=1&";}s6=s6+"ids="+Zu+"&types="+rT+"&dbid="+LBH.dbid;var UD=new Object;UD.window=top.window;var GKs=top.lfShowModalDialog(top.window,s6,UD,"help:no;scroll:no;status:no",2);if(!top.VerifyConnection(LBH.dbid))return;if(GKs>0)SH="SavePage.asp";else if(GKs==0)SH="ClosePage.asp";SH+="?ids="+Zu+"&types="+rT+"&closedoc=true"+"&dbid="+LBH.dbid;top.GetXMLDocument(SH);};SearchResults.prototype.ShowAccessDialog=function(){if(!top.VerifyConnection(this.dbid))return;top.lfShowModalDialog(top.window,"AccessPopup.asp?id="+this.selectedEntries[0].id+"&dbid="+this.dbid,null,"help:no;scroll:no;status:no");};SearchResults.prototype.PropagateRights=function(){if(confirm(STR_CONFIRM_PROPAGATE_RIGHTS))top.GetXMLDocument("PropagateRights.asp?id="+this.selectedEntries[0].id+"&dbid="+this.dbid);};SearchResults.prototype.ShowReviewDateDialog=function(){if(!top.VerifyConnection(this.dbid))return;var JU=this.GetSelectedEntries();var Zu="";if(JU.length>1)for(ww=0;ww<JU.length;ww++){if(ww>0){Zu+=";";}Zu+=JU[ww].id;}else{Zu=JU[0].id;}top.lfShowModalDialog(top.window,"ReviewDatePopup.asp?ids="+Zu+"&toctype="+this.selectedEntries[0].toctype+"&dbid="+this.dbid,null,"help:no;scroll:no;status:no");};SearchResults.prototype.ShowFrozenDialog=function(){if(!top.VerifyConnection(this.dbid))return;var LBH=this;var JU=this.GetSelectedEntries();var Zu="";var b4=0;if(JU.length>1){b4=1;for(ww=0;ww<JU.length;ww++){if(ww>0){Zu+=";";}Zu+=JU[ww].id;}}else{Zu=JU[0].id;}if(top.lfShowModalDialog(top.window,"FrozenPopup.asp?ids="+Zu+"&dbid="+this.dbid,null,"help:no;scroll:no;status:no",b4)){}};SearchResults.prototype.ShowRSDialog=function(){if(!top.VerifyConnection(this.dbid))return;var ju="RecordSeriesPopup.asp?dbid="+this.dbid;ju=ju+"&id="+this.selectedEntries[0].id;top.lfShowModalDialog(top.window,ju,null,"help:no;scroll:no;status:no");};SearchResults.prototype.ShowRFDialog=function(){if(!top.VerifyConnection(this.dbid))return;var ju="RecordFolderPopup.asp?id="+this.selectedEntries[0].id+"&dbid="+this.dbid;top.lfShowModalDialog(top.window,ju,null,"help:no;scroll:no;status:no");};SearchResults.prototype.ShowRecordActionsDialog=function(){if(!top.VerifyConnection(this.dbid))return;var LBH=this;var U3g="RecordActionsPopup.asp?id="+this.selectedEntries[0].id+"&dbid="+this.dbid;var ob=top.lfShowModalDialog(top.window,U3g,top.window,"help:no;scroll:no;status:no");if(ob){}};SearchResults.prototype.CheckIn=function(){if(!top.VerifyConnection(this.dbid))return;var LBH=this;var bq=this.selectedEntries[0];var U;if(bq.toctype=="es")U=bq.targetid;else if(bq.toctype=="e")U=bq.id;else return;var tD=top.GetXMLDocument("CheckImportVolume.asp?dbid="+this.dbid);if(tD){var c=tD.documentElement;if(c.getAttribute("Result")<=0){alert(top.STR_INVALID_VOLUME);return;}}if(!top.lfShowModalDialog(top.window,"CheckInDialog.asp?dbid="+this.dbid+"&id="+U,null,"help:no;scroll:no;status:no"))return;if(LBH.SortDir==top.SORT_DIRECTION_ASC)LBH.SortDir=top.SORT_DIRECTION_DESC;else LBH.SortDir=top.SORT_DIRECTION_ASC;if(!LBH.SortColumnID)LBH.SortColumnID=top.COLUMN_TYPE_HITCOUNT;LBH.CreateSortFunc(LBH.SortColumnID)();};SearchResults.prototype.UndoCheckOut=function(){if(!top.VerifyConnection(this.dbid))return;var LBH=this;var Tt=this.selectedEntries;var ju="UndoCheckoutDocument.asp?dbid="+this.dbid;var rF;if(Tt.length==1)rF=STR_CONFIRM_UNDO_CHECKOUT_1+Tt[0].name+"?";else if(Tt.length==0)return;else rF=STR_CONFIRM_UNDO_CHECKOUT_1+STR_CONFIRM_UNDO_CHECKOUT_2;if(confirm(rF)){var Ah=0;var ww;for(ww=0;ww<Tt.length;ww++){var bq=Tt[ww];var U;if(bq.IsCheckedOut){if(bq.toctype=="es")U=bq.targetid;else if(bq.toctype=="e")U=bq.id;ju+="&id="+U;bq.ChangeCheckOut(U,false);}else Ah++;}var tD=top.GetXMLDocument(ju);if(tD){var og=0;var c=tD.documentElement;var za=c.getElementsByTagName("NumUndoCheckouts");if(za.length>0){og=za.item(0).text;}if(og*1+Ah*1!=Tt.length){alert(top.STR_CANNOT_UNDO_CHECKOUT_OTHER);}}}};SearchResultEntry.prototype.ChangeCheckOut=function(U,QU){for(var ww=1;ww<this.oResults.ResultCache.length;ww++){if(this.oResults.ResultCache[ww].id==U){if(QU){this.oResults.ResultCache[ww].displayRow.childNodes[2].childNodes[0].src="images/CheckedOutSelf.gif";this.oResults.ResultCache[ww].displayRow.childNodes[2].childNodes[0].style.backgroundImage="url("+this.oResults.ResultCache[ww].imgsrc+")";this.IsCheckedOut=true;}else{this.oResults.ResultCache[ww].displayRow.childNodes[2].childNodes[0].src="images/Spacer.gif";this.oResults.ResultCache[ww].displayRow.childNodes[2].childNodes[0].style.backgroundImage="url("+this.oResults.ResultCache[ww].imgsrc+")";this.IsCheckedOut=false;}}}};SearchResults.prototype.CheckOut=function(){if(!top.VerifyConnection(this.dbid))return;var LBH=this;var bq=this.selectedEntries[0];var U;if(bq.toctype=="es")U=bq.targetid;else if(bq.toctype=="e")U=bq.id;else return;if(!top.lfShowModalDialog(top.window,"CheckOutDialog.asp?dbid="+this.dbid+"&id="+U,null,"help:no;scroll:no;status:no"))return;top.document.getElementById("downloadframe").src="ImageDisplay.asp?doc="+U+"&forcedialog=1&edoc=1&dbid="+this.dbid;bq.ChangeCheckOut(U,true);};SearchResults.prototype.CheckOutDetails=function(){if(!top.VerifyConnection(this.dbid))return;var bq=this.selectedEntries[0];var U;if(bq.toctype=="es")U=bq.targetid;else if(bq.toctype=="e")U=bq.id;else return;if(!top.lfShowModalDialog(top.window,"CheckOutDetailsPopup.asp?dbid="+this.dbid+"&id="+U,null,"help:no;scroll:no;status:no"))return;};SearchResults.prototype.ShowMigrateDialog=function(){if(!top.VerifyConnection(this.dbid))return;var LBH=this;var lQ=new Array();var yh=new Array();var bO=this.selectedEntries;for(var ww=0;ww<bO.length;ww++){if(bO[ww].toctype=="d"||bO[ww].toctype=="e")yh.push(bO[ww].id);else if(bO[ww].toctype=="f")lQ.push(bO[ww].id);}if(top.lfShowModalDialog(top.window,"MigrateDialog.asp?docids="+yh.join("-")+"&folderids="+lQ.join("-")+"&dbid="+this.dbid,null,"help:no;scroll:no;status:no")){}while(lQ.length)lQ.pop();lQ=null;while(yh.length)yh.pop();yh=null;};SearchResults.prototype.ExtractText=function(){if(!top.VerifyConnection(this.dbid))return;var Py="ExtractTextPopup.asp?dbid="+this.dbid;var CH=new Array();for(var ww=0;ww<this.selectedEntries.length;ww++){CH.push(this.selectedEntries[ww]);}for(var ww=0;ww<CH.length;ww++){var Gh=CH[ww];if(Gh.toctype=="e"){Py=Py+"&id="+Gh.id;}else if(Gh.toctype=="es"){Py=Py+"&id="+Gh.targetid;}}if(top.lfShowModalDialog(top.window,Py,null,"help:no;scroll:no;status:no")){}};SearchResults.prototype.SnapshotSelectedEntries=function(){var A6=new Array();var Kw=this.selectedEntries;for(var ww=0;ww<Kw.length;++ww){A6.push(Kw[ww].id);}if(!confirm(top.STR_CONFIRM_SNAPSHOT))return;if(top.GetXMLDocument("Snapshot.asp?id="+A6.join(",")+"&dbid="+this.dbid))alert(top.STR_SNAPSHOT_INITIATED);};SearchResults.prototype.drawEntry=function(RVa,x9L){RVa.oResults=this;RVa.displayRow=this.TBody.ownerDocument.createElement("tr");RVa.displayRow.onselectstart=function(){return false;};RVa.displayRow.ondragenter=function(){return false;};RVa.displayRow.ondragover=function(){return false;};var tS=this.TBody.ownerDocument.createElement("td");tS.align="center";tS.style.padding="4px";RVa.displayRow.appendChild(tS);if(RVa.hitCount>0){var xwJ=this.TBody.ownerDocument.createElement("a");xwJ.tabIndex=0;var Ttq=this.TBody.ownerDocument.createElement("img");xwJ.onkeydown=function(g){g=top.getEvent(g,QJ.myWin.event,false);if(g.keyCode==ENTER_KEY_CODE){Ttq.click();top.cancelEvent(g);}};Ttq.src="images/PlusBox.gif";Ttq.alt=STR_EXPAND;tS.appendChild(xwJ);xwJ.appendChild(Ttq);RVa.setPlusBox(Ttq);}var dZ=this.TBody.ownerDocument.createElement("td");dZ.align="left";dZ.className="LabelFont MenuTitle";dZ.style.padding="4px";var uy=this.TBody.ownerDocument.createElement("a");uy.style.paddingLeft="4px";uy.style.cursor="default";var yl=this.TBody.ownerDocument.createTextNode(RVa.rowNum);dZ.appendChild(uy).appendChild(yl);RVa.displayRow.appendChild(dZ);var jU=this.TBody.ownerDocument.createElement("td");var funV=this.TBody.ownerDocument.createElement("img");funV.src=RVa.imgsrc;funV.width=RVa.imgwidth;funV.height=RVa.imgheight;funV.alt=RVa.imgalt;RVa.setIcon(funV);funV.onmouseup=function(g){g=top.getEvent(g,RVa.oResults.myWin.event,false);RVa.oResults.ClickFunc(RVa.displayRow,RVa,g);};funV.ondblclick=function(){RVa.nameLink.ondblclick();};jU.appendChild(funV);RVa.displayRow.appendChild(jU);var ze=this.TBody.ownerDocument.createElement("td");ze.align="left";ze.className="LabelFont TOCEntryNameStyle";RVa.displayRow.appendChild(ze);RVa.SetNameDatum(ze);if(this.showHits){RVa.showHits=true;var XU=this.TBody.ownerDocument.createElement("td");XU.className="LabelFont TOCEntryNameStyle";XU.style.padding="4px";var XE=this.TBody.ownerDocument.createElement("a");XE.style.cursor="default";XE.style.paddingLeft="4px";var lG_=this.TBody.ownerDocument.createTextNode(RVa.hitCount);XU.appendChild(XE).appendChild(lG_);RVa.displayRow.appendChild(XU);}this.DisplayEntryFields(RVa);};SearchResults.prototype.DisplayEntryFields=function(RVa){for(var ww=1;ww<RVa.columndata.length;ww++){var xU=RVa.displayRow.ownerDocument.createElement("td");xU.className="LabelFont TOCEntryNameStyle";xU.align="left";xU.style.padding="4px";var Cj8=xU.ownerDocument.createElement("nobr");xU.appendChild(Cj8);var oQ=Cj8.ownerDocument.createElement("a");oQ.style.paddingLeft="4px";oQ.style.cursor="default";var e75=oQ.ownerDocument.createTextNode(RVa.columndata[ww]);oQ.appendChild(e75);Cj8.appendChild(oQ);RVa.displayRow.appendChild(xU);}};SearchResults.prototype.KillContextMenu=function(){};SearchResults.prototype.ReleaseDOMElements=function(){if(this.sf){this.sf.ReleaseDOMElements();this.sf=null;}this.dbid=null;this.myWin.document.onkeydown=null;this.myWin.onresize=null;this.myWin.document.body.onmouseup=null;this.myWin.document.body.oncontextmenu=null;this.myWin.document.body.onclick=null;this.DisplayDiv.onmousewheel=null;this.DisplayDiv=null;this.scrollbar=null;this.THead=null;this.TBody=null;this.myWin=null;};top.ResultsFromXML=function(tD,SP,PW){var c=tD.documentElement;var za=c.getElementsByTagName("Results");if(za.length>0){var vo=za.item(0);var ZY=vo.getElementsByTagName("Entry");for(var ww=0;ww<ZY.length;++ww){var rG=ZY.item(ww);var dp=new Array();top.ColumnDataFromXML(rG,dp);var Jyn=new Array();var w9P=rG.getElementsByTagName("ContextHits");if(w9P.length>0){var Pg=w9P.item(0);var Uv=parseInt(Pg.getAttribute("Start"));var GJ=Pg.getElementsByTagName("Item");for(var nS=0;nS<GJ.length;++nS){var ZM=GJ.item(nS);var I5=new top.ContextHit(parseInt(ZM.getAttribute("PageNumber")),ZM.text,parseInt(ZM.getAttribute("OffsetWithinPage")));Jyn[Uv+nS]=I5;}}var SmT=new top.SearchResultEntry(rG.getAttribute("ID"),rG.getAttribute("LinkTo"),rG.getAttribute("Name"),rG.getAttribute("Type"),parseInt(rG.getAttribute("HitCount")),PW+ww,dp,rG.getAttribute("ImgSrc"),rG.getAttribute("ImgAlt"),rG.getAttribute("ImgWidth"),rG.getAttribute("ImgHeight"),Jyn,rG.getAttribute("IsRecordSeries")!=null,rG.getAttribute("IsRecordFolder")!=null,rG.getAttribute("IsVital")!=null,rG.getAttribute("AllowFreeze")!=null,rG.getAttribute("PLockOwner"),rG.getAttribute("IsPLockOwnedByMe")!=null,rG.getAttribute("IsNotReadable")!=null);SP.push(SmT);}}};top.ColumnTypesFromXML=function(tD,Eb){var c=tD.documentElement;var MYO=c.getElementsByTagName("Columns");if(MYO.length>0){var ox=MYO.item(0);var E3=ox.getElementsByTagName("Item");for(var ww=0;ww<E3.length;++ww){var Tiy=E3.item(ww);var mB=new top.Column(Tiy.getAttribute("Name"),Tiy.getAttribute("ID"));Eb.push(mB);}}};SearchResults.prototype.ReleaseDOMElements=function(){this.myWin.document.onkeydown=null;this.myWin.onresize=null;this.myWin.onunload=null;this.myWin.document.body.onmouseup=null;this.myWin.document.body.oncontextmenu=null;this.DisplayDiv.onmousewheel=null;this.myWin.document.body.onclick=null;this.sf=null;};function StampSelect(dio,T,mga,F8d,IaJ,h1){var T4=this;if(dio&&dio.length>0)T4.SelectedColor=dio;else T4.SelectedColor="000000";T4.NameSelect=mga;T4.fileInput=F8d;T4.uploadForm=h1;IaJ.value=T4.SelectedColor;IaJ.onchange=function(){T4.SelectedColor=IaJ.value;if(T4.fileInput.disabled)T4.NameSelect.focus();else T4.fileInput.focus();top.GetXMLDocument("SetDefaultStampColor.asp?color="+IaJ.value+"&dbid="+T);};};StampSelect.prototype.GetPublicStampID=function(){return this.NameSelect.value;};StampSelect.prototype.GetColor=function(){return this.SelectedColor;};StampSelect.prototype.GetIsPublicStamp=function(){return(!this.NameSelect.disabled);};StampSelect.prototype.CreateStamp=function(n5,et,fb,lje,xv){var k7="callbackfunc"+top.callbackNum++;top[k7]=lje;var lB="?docid="+fb.docid+"&page="+fb.pagenum+"&annotID="+xv+"&left="+et+"&top="+n5+"&color="+this.GetColor()+"&callback="+k7+"&scale="+fb.scale+"&dbid="+fb.dbid;if(this.GetIsPublicStamp()){top.StampPostee.src="AddPublicStamp.asp"+lB+"&publicstampid="+this.GetPublicStampID();}else{this.uploadForm.target="stamppostee";this.uploadForm.action="AddUniqueStamp.asp"+lB;this.uploadForm.submit();}};var STICKY_ICON_HEIGHT=29;var STICKY_ICON_WIDTH=22;var STICKY_TEXT_WIDTH=200;var NUMBER_DIV_WIDTH=10;var NUMBER_DIV_HEIGHT=20;var STICKY_LABEL_HEIGHT=16;var MAX_STICKY_SIZE=4000;function StickyNote(mo,Af,e6,om,F,fb,kz,v0W,tC,O4){var rV=this;rV.controls=fb;rV.id=F;rV.type=ANN_STICKYNOTE;rV.ContextResults=v0W;rV.colorName=tC;rV.colorString=O4;if(!tC){rV.colorName="yellow";}var LJ=rV.controls.annotDiv.ownerDocument.createElement("div");LJ.style.position="absolute";LJ.style.left=mo;LJ.style.top=Af;LJ.style.width=STICKY_ICON_WIDTH;LJ.style.height=STICKY_ICON_HEIGHT;LJ.id=rV.id+"div";LJ.className="LabelFont";if(top.ie){var HX=rV.controls.annotDiv.ownerDocument.createElement("div");HX.style.position="absolute";HX.style.left="0px";HX.style.top="0px";HX.id=rV.id+"icondiv";LJ.appendChild(HX);var Ttq=rV.controls.annotDiv.ownerDocument.createElement("img");Ttq.src="images/sticky-note_"+rV.colorName+".gif";Ttq.alt=STR_STICKY_NOTE;Ttq.id=rV.id+"icon";this.myImage=Ttq;HX.appendChild(Ttq);LJ.appendChild(Ttq);rV.myDiv=LJ;rV.myImage=Ttq;}else{LJ.style.backgroundImage='url(images/sticky-note_'+LJ.colorName+'.gif)';LJ.style.backgroundRepeat="no-repeat";rV.myDiv=LJ;rV.myImage=LJ;}rV.numberDiv=rV.controls.annotDiv.ownerDocument.createElement("div");rV.numberDiv.style.position="absolute";rV.numberDiv.style.left=STICKY_ICON_WIDTH+"px";rV.numberDiv.style.top="10px";rV.numberDiv.style.width=NUMBER_DIV_WIDTH+"px";rV.numberDiv.style.height=NUMBER_DIV_HEIGHT+"px";rV.numberDiv.className="StickyNotePopup";LJ.appendChild(rV.numberDiv);var O7=rV.controls.annotDiv.ownerDocument.createTextNode(om);rV.numberDiv.appendChild(O7);rV.textDiv=rV.controls.annotDiv.ownerDocument.createElement("div");rV.textDiv.style.position="absolute";rV.textDiv.style.left=STICKY_ICON_WIDTH+"px";rV.textDiv.style.top=STICKY_ICON_HEIGHT+"px";rV.textDiv.style.width=STICKY_TEXT_WIDTH+"px";if(e6.length==0)rV.textDiv.style.height="20px";rV.textDiv.style.visibility="hidden";rV.textDiv.className="StickyNotePopup";LJ.appendChild(rV.textDiv);rV.ShowText(e6);LJ.onmouseover=function(){rV.textDiv.style.visibility="visible";};LJ.onmouseout=function(){rV.textDiv.style.visibility="hidden";};LJ.ondblclick=function(){rV.controls.OpenStickyPane();rV.myInfoDiv.focus();if(rV.controls.annotsEditable){rV.myTextbox.style.display="inline";iW.style.display="inline";T2.style.display="none";rV.myTextbox.focus();}};rV.controls.annotDiv.appendChild(LJ);rV.controls.noNoteText.style.visibility="hidden";var t0=rV.controls.stickyDiv.ownerDocument;rV.myInfoDiv=rV.controls.stickyDiv.appendChild(t0.createElement("div"));rV.myInfoDiv.style.padding="8px";rV.myInfoDiv.style.margin="0px 0px 19px 0px";rV.myInfoDiv.style.width="204px";rV.myInfoDiv.style.height="20px";rV.myInfoDiv.className="ModalDialogContent";rV.myInfoDiv.tabIndex=(F*2)-1;rV.myInfoDiv.ClickingLink=false;rV.myInfoDiv.style.cursor="hand";rV.myInfoDiv.appendChild(t0.createTextNode(STR_STICKY_NOTE+" "+om));rV.myInfoDiv.appendChild(t0.createElement("br"));rV.myInfoDiv.appendChild(t0.createElement("br"));var T2=t0.createElement("div");T2.className="StickyLayout";T2.style.marginBottom="0px";T2.id=F+"staticbox";rV.myInfoDiv.appendChild(T2);var iW=t0.createElement("form");iW.method="post";iW.target="stickypostee";iW.id=F+"stickyForm";iW.style.display="none";iW.style.marginBottom="0px";rV.myInfoDiv.appendChild(iW);rV.myTextbox=t0.createElement("textarea");rV.myTextbox.name="text";iW.appendChild(rV.myTextbox);rV.myTextbox.id=F+"textbox";rV.myTextbox.value=e6;rV.myTextbox.rows=4;rV.myTextbox.wrap="soft";rV.myTextbox.style.display="none";rV.myTextbox.style.overflowX="auto";function dMM(){while(T2.childNodes.length>0)T2.removeChild(T2.childNodes[0]);var eFd="http(s)?:(\\/)(\\/)\\S+|www\\S+|ftp:\\S+|ftp\\.\\S+|mailto:\\S+|file:\\S+";if((rV.ContextResults!=null)&&rV.ContextResults.length)eFd+="|"+unescape(rV.ContextResults);var Wg9=new RegExp(eFd,"ig");var Gs=0;var MXJ;while((MXJ=Wg9.exec(rV.myTextbox.value))!=null){var jZ=t0.createElement("label");jZ.innerText=rV.myTextbox.value.substr(Gs,MXJ.index-Gs);T2.appendChild(jZ);if(rV.ContextResults.toUpperCase()!=MXJ[0].toUpperCase()){var jZ=t0.createElement("a");jZ.href=MXJ[0];if(jZ.href.substr(0,3).toUpperCase()=="WWW")jZ.href="http://"+jZ.href;else if(jZ.href.substr(0,4).toUpperCase()=="FTP.")jZ.href="ftp://"+jZ.href;jZ.target="_blank";jZ.innerText=MXJ[0];jZ.onclick=function(){rV.myInfoDiv.ClickingLink=true;};T2.appendChild(jZ);}else{var jZ=t0.createElement("label");jZ.innerText=MXJ[0];jZ.className="ContextHighlight";T2.appendChild(jZ);}Gs=MXJ.index+MXJ[0].length;}var jZ=t0.createElement("label");jZ.innerText=rV.myTextbox.value.substr(Gs);T2.appendChild(jZ);}dMM();rV.myInfoDiv.onfocus=function(){rV.myInfoDiv.onclick();};rV.myInfoDiv.onclick=function(){if(!rV.myInfoDiv.ClickingLink){if(rV.controls.annotsEditable){rV.myTextbox.style.display="inline";iW.style.display="inline";T2.style.display="none";rV.myTextbox.focus();}}rV.myInfoDiv.ClickingLink=false;};rV.myTextbox.onblur=function(){try{if(rV.controls.ImageControls[0].style.display=="inline")rV.controls.ShowImage();else rV.controls.ShowText();dMM();rV.myTextbox.style.display="none";iW.style.display="none";T2.style.display="inline";}catch(tp){}};if(rV.controls.annotsEditable){rV.myTextbox.onchange=function(){rV.controls.SetDirty();var k7="callbackfunc"+top.callbackNum++;top[k7]=function(){rV.controls.releaseSaveBtn();};iW.action="RecordStickyText.asp?docid="+rV.controls.docid+"&page="+rV.controls.pagenum+"&annotid="+rV.id+"&callback="+k7+"&dbid="+rV.controls.dbid;rV.myTextbox.value=rV.myTextbox.value.substr(0,MAX_STICKY_SIZE);rV.controls.lockSaveBtn();iW.submit();rV.ShowText(rV.myTextbox.value);};rV.SetMoveHandler();}if(kz){rV.myInfoDiv.focus();rV.controls.OpenStickyPane();rV.myTextbox.style.display="inline";iW.style.display="inline";T2.style.display="none";rV.myTextbox.focus();}}StickyNote.prototype.setDragHandle=function(g){this.xHandle=top.getOffsetX(g);this.yHandle=top.getOffsetY(g);if(g.srcElement==this.numberDiv){this.xHandle=parseInt(this.xHandle)+parseInt(this.numberDiv.style.left);this.yHandle=parseInt(this.yHandle)+parseInt(this.numberDiv.style.top);}if(g.srcElement==this.textDiv){this.xHandle=parseInt(this.xHandle)+parseInt(this.textDiv.style.left);this.yHandle=parseInt(this.yHandle)+parseInt(this.textDiv.style.top);}};StickyNote.prototype.ShowText=function(e6){while(this.textDiv.childNodes.length>0)this.textDiv.removeChild(this.textDiv.childNodes[0]);var RXy=e6.split("\r\n");var ag=this.textDiv.ownerDocument.createTextNode(RXy[0]);this.textDiv.appendChild(ag);for(var ww=1;ww<RXy.length;ww++){this.textDiv.appendChild(this.textDiv.ownerDocument.createElement("br"));var hP=this.textDiv.ownerDocument.createTextNode(RXy[ww]);this.textDiv.appendChild(hP);}};StickyNote.prototype.SetMoveHandler=Highlight.prototype.SetMoveHandler;StickyNote.prototype.SetHLDivSelected=function(){if(top.ie)this.myImage.src="images/sticky-note_"+this.colorName+"_sel.gif";else this.myDiv.style.backgroundImage="url(images/sticky-note_"+this.colorName+"_sel.gif)";};StickyNote.prototype.SetHLDivNormal=function(){if(top.ie)this.myImage.src="images/sticky-note_"+this.colorName+".gif";else this.myDiv.style.backgroundImage="url(images/sticky-note_"+this.colorName+".gif)";};StickyNote.prototype.DragMe=Highlight.prototype.DragMe;StickyNote.prototype.Move=Highlight.prototype.Move;StickyNote.prototype.SetResizeCursor=function(g){if(this.controls.catchHLResize){top.cancelEvent(g);this.myDiv.style.cursor="move";return false;}};StickyNote.prototype.FinishDrawing=Highlight.prototype.FinishDrawing;StickyNote.prototype.Select=function(){var rV=this;rV.controls.DeselectItem();rV.controls.stickyColorMenu.SelectColor("#"+rV.colorString,rV.colorName);if(rV.controls.currentAnnotationType==ANN_STICKYNOTE){rV.controls.imageDiv.style.cursor="images/StickyNotes_"+rV.controls.stickyColorMenu.GetSelectedValue()+".cur";}rV.controls.stickyColorMenu.OnSelectedColorChanged=function(){var O4=rV.controls.stickyColorMenu.GetSelectedColor().slice(1);if(top.GetXMLDocument("RecordStickyPosition.asp?docid="+rV.controls.docid+"&page="+rV.controls.pagenum+"&annotid="+rV.id+"&left="+parseInt(rV.myDiv.style.left)+"&top="+parseInt(rV.myDiv.style.top)+"&scale="+rV.controls.scale+"&dbid="+rV.controls.dbid+"&color="+O4)){rV.colorName=rV.controls.stickyColorMenu.GetSelectedValue();rV.colorString=O4;rV.myImage.src="images/sticky-note_"+rV.colorName+"_sel.gif";}if(rV.controls.currentAnnotationType==ANN_STICKYNOTE){rV.controls.imageDiv.style.cursor="images/StickyNotes_"+rV.controls.stickyColorMenu.GetSelectedValue()+".cur";}};var o9=function(){if(confirm(top.STR_CONFIRM_DELETE_ANNOT)){rV.Remove();return true;}else return false;};rV.controls.SetDeleteFun(o9);rV.SetHLDivSelected();rV.controls.DeselectItem=function(){rV.SetHLDivNormal();rV.controls.stickyColorMenu.OnSelectedColorChanged=function(){rV.controls.SetAnnotationType(ANN_STICKYNOTE);};};rV.controls.imageDiv.onmousedown=function(g){rV.controls.DeselectItem();rV.controls.DisableDelete();if(rV.controls.AddAnnotFun){g=top.getEvent(g,rV.controls.imageWin.event,false);return rV.controls.AddAnnotFun(g);}};};StickyNote.prototype.RemoveFromDisplay=Highlight.prototype.RemoveFromDisplay;StickyNote.prototype.Remove=Highlight.prototype.Remove;StickyNote.prototype.GenerateRecordFrameSrc=function(){return("RecordStickyPosition.asp?docid="+this.controls.docid+"&page="+this.controls.pagenum+"&annotid="+this.id+"&left="+parseInt(this.myDiv.style.left)+"&top="+parseInt(this.myDiv.style.top)+"&scale="+this.controls.scale+"&dbid="+this.controls.dbid+"&color="+this.colorString);};StickyNote.prototype.GetWidth=function(){return 0;};StickyNote.prototype.GetHeight=function(){return 0;};StickyNote.prototype.ReleaseDOMElements=function(){if(this.myDiv){this.myDiv.onmouseover=null;this.myDiv.onmouseout=null;this.myDiv.ondblclick=null;this.myDiv=null;}if(this.myInfoDiv){this.myInfoDiv.onfocus=null;this.myInfoDiv.onclick=null;this.myInfoDiv=null;}if(this.myTextbox){this.myTextbox.onblur=null;this.myTextbox.onchange=null;this.myTextbox=null;}this.myImage=null;this.numberDiv=null;this.textDiv=null;};function Tag(F,name,Ea,rK,fb,uK,msN,GR){var i6=this;i6.controls=fb;i6.id=F;i6.active=Ea;i6.secure=rK;i6.multivalued=msN;i6.newdoc=GR;var OF=i6.controls.tagTable.childNodes[0].appendChild(i6.controls.tagTable.ownerDocument.createElement("tr"));i6.myRow=OF;OF.title=uK;var yR=i6.myRow.appendChild(OF.ownerDocument.createElement("td"));i6.checkCell=yR;yR.width="5%";yR.align="center";var lS=i6.myRow.appendChild(OF.ownerDocument.createElement("td"));i6.secureCell=lS;lS.width="5%";var ze=i6.myRow.appendChild(OF.ownerDocument.createElement("td"));i6.nameCell=ze;if(!i6.newdoc){i6.myRow.onclick=function(){i6.Select();};}yR.className="VersionTableCell";lS.className="VersionTableCell";ze.className="VersionTableCell";i6.chkBox=yR.ownerDocument.createElement("input");i6.chkBox.type="checkbox";yR.appendChild(i6.chkBox);i6.chkBox.checked=Ea;i6.chkBox.indeterminate=msN;i6.chkBox.disabled=(!i6.controls.tagsEditable&&i6.chkBox.checked)||i6.controls.checkedOutOther;var cS=lS.ownerDocument.createElement("img");if(rK)cS.src="images/iTagSecurity.gif";else cS.src="images/iTagInfo.gif";lS.appendChild(cS);ze.appendChild(ze.ownerDocument.createTextNode(name));if(i6.newdoc){i6.commentsRow=i6.controls.tagTable.childNodes[0].appendChild(i6.controls.tagTable.ownerDocument.createElement("tr"));if(Ea)i6.commentsRow.style.display="table-row";else i6.commentsRow.style.display="none";var oj=i6.commentsRow.appendChild(i6.commentsRow.ownerDocument.createElement("td"));oj.colSpan=3;oj.className="CommentsRow";var aV4=oj.appendChild(i6.commentsRow.ownerDocument.createElement("div"));aV4.style.display="inline";aV4.style.width="50px";var FIn=oj.appendChild(i6.commentsRow.ownerDocument.createElement("div"));FIn.style.display="inline";FIn.style.margin="0px 5px";FIn.style.height="18px";FIn.style.verticalAlign="middle";FIn.appendChild(i6.commentsRow.ownerDocument.createTextNode(top.STR_COMMENTS+":"));i6.commentsInput=oj.appendChild(i6.commentsRow.ownerDocument.createElement("input"));i6.commentsInput.name="tag"+i6.id+"comments";i6.commentsInput.id="tag"+i6.id+"comments";i6.commentsInput.style.width="60%";i6.commentsInput.disabled=!Ea;i6.controls.tagsSelectedInput.value=";";}if(GR){i6.chkBox.onclick=function(){i6.commentsInput.disabled=!this.checked;if(this.checked){i6.commentsRow.style.display="block";this.blur();i6.commentsInput.select();yeR=i6.controls.tagsSelectedInput.value;i6.controls.tagsSelectedInput.value+=i6.id+";";}else{i6.commentsRow.style.display="none";i6.controls.tagsSelectedInput.value=yeR.replace(";"+i6.id+";",";");}};}else{i6.chkBox.onclick=function(){var ju="DocAddTag.asp?id="+i6.controls.docid+"&tagid="+i6.id+"&dbid="+i6.controls.dbid;if(i6.controls.toctypes)ju+="&toctypes="+i6.controls.toctypes;if(i6.chkBox.checked)ju+="&active=yes";if(top.GetXMLDocument(ju))i6.controls.SetDirty();};}}Tag.prototype.Select=function(){var Vy=this;Vy.controls.DeselectItem();if(Vy.controls.tagDetailButton){Vy.controls.tagDetailButton.onclick=function(){if(!top.VerifyConnection(Vy.controls.dbid))return;var ju="DetailedTagDialog.asp?dbid="+Vy.controls.dbid+"&docid="+Vy.controls.docid+"&SelectedID="+Vy.docID+"&tag="+Vy.id;if(!Vy.chkBox.disabled)ju+="&editable=yes";if(top.lfShowModalDialog(Vy.controls.pageToolsWin,ju,null,"help:no;scroll:no;status:no"))Vy.controls.SetDirty();};Vy.controls.tagDetailButton.disabled=!Vy.chkBox.checked;}Vy.ShowSelected();Vy.controls.DeselectItem=function(){Vy.ShowDeselected();};};Tag.prototype.ShowSelected=function(){this.checkCell.className="VersionTableCell UserRowHighlight";this.secureCell.className="VersionTableCell UserRowHighlight";this.nameCell.className="VersionTableCell UserRowHighlight";};Tag.prototype.ShowDeselected=function(){this.checkCell.className="VersionTableCell";this.secureCell.className="VersionTableCell";this.nameCell.className="VersionTableCell";};Tag.prototype.ReleaseDOMElements=function(){if(this.myRow)this.myRow.onclick=null;if(this.chkBox)this.chkBox.onclick=null;};function Template(F,name,nW){this.m_id=F;this.m_fields=nW;this.m_name=name;}Template.prototype.getName=function(){return this.m_name;};Template.prototype.getID=function(){return this.m_id;};Template.prototype.getFields=function(){return this.m_fields;};var BREAK_STRING='\r\n';var HIGHLIGHTED_TEXT_CLASS="HighlightedText";var SELHIGHLIGHTED_TEXT_CLASS="SelHighlightedText";var NORMAL_TEXT_CLASS="UnhighlightedText";var REDACTED_TEXT_CLASS="RedactedText";var SELREDACTED_TEXT_CLASS="SelRedactedText";var WHITE_REDACTION_BACKCOLOR="C0C0C0";var WHITE_REDACTION_FORECOLOR="404040";var BLACK_REDACTION_BACKCOLOR="000000";var BLACK_REDACTION_FORECOLOR="C0C0C0";var SPAN_NODE_NAME="SPAN";function TextHighlight(PW,IJ,rI,F,fb,f6Z){var y8=this;y8.id=F;y8.type=rI;y8.startChar=PW;y8.endChar=IJ;y8.color=f6Z;this.controls=fb;if(this.type==ANN_HIGHLIGHTTEXT){this.myHLClass=HIGHLIGHTED_TEXT_CLASS;}if(this.type==ANN_BLACKOUTTEXT){this.myHLClass=REDACTED_TEXT_CLASS;}y8.mySpanNodes=Array();}TextHighlight.prototype.splitNode=function(ARL,Yx,Lg){var fRh=Lg.childNodes.item(ARL).childNodes.item(0);if(Yx>0&&Yx<fRh.data.length){var aWd;var pRW;aWd=fRh.splitText(Yx);aWd.parentNode.removeChild(aWd);pRW=Lg.ownerDocument.createElement(SPAN_NODE_NAME);if(this.controls.CurrentTextHighlights){for(var ww=0;ww<this.controls.CurrentTextHighlights.length;ww++){if(this.controls.CurrentTextHighlights[ww].mySpanNodes){for(var nS=0;nS<this.controls.CurrentTextHighlights[ww].mySpanNodes.length;nS++){var zD=fRh.parentNode;var UJ=this.controls.CurrentTextHighlights[ww].mySpanNodes[nS];if(zD==UJ){this.controls.CurrentTextHighlights[ww].mySpanNodes.push(pRW);}}}}}pRW.className=Lg.childNodes[ARL].className;pRW.onclick=Lg.childNodes[ARL].onclick;if(ARL==Lg.childNodes.length-1)Lg.appendChild(pRW);else Lg.insertBefore(pRW,Lg.childNodes.item(ARL+1));pRW.appendChild(aWd);return true;}return false;};top.MakeWordID=function(ew,gC,Rk){var L4=new Array();L4.push(ew);L4.push(gC);L4.push(Rk);return L4.join("x");};top.GetWordIndexFromWordID=function(khW){return khW.split("x")[0];};top.GetHighlightIDFromWordID=function(khW){return khW.split("x")[1];};top.GetBlackoutIDFromWordID=function(khW){return khW.split("x")[2];};TextHighlight.prototype.ShowHighlight=function(Lg,_D,y_i,vI){if(!Lg)Lg=this.controls.textDiv;if(!y_i||!vI){y_i=0;vI=0;}var Xr;var uS;var Yh;var y8=this;var ww;var OW;while(y_i<Lg.childNodes.length){if(Lg.childNodes.item(y_i).nodeName==SPAN_NODE_NAME){OW=Lg.childNodes.item(y_i).childNodes.item(0);if(vI+OW.length>this.startChar){uS=this.startChar-vI;break;}vI+=OW.length;}else vI+=BREAK_STRING.length;y_i++;}if(this.splitNode(y_i,uS,Lg)){y_i++;}y8.startNodeIndex=y_i;vI=this.startChar;for(ww=y_i;ww<Lg.childNodes.length;ww++){if(Lg.childNodes.item(ww).nodeName==SPAN_NODE_NAME){OW=Lg.childNodes.item(ww).childNodes.item(0);Xr=ww;Yh=OW.length;if(vI+OW.length>=this.endChar){Xr=ww;Yh=this.endChar-vI;break;}vI+=OW.length;}else vI+=BREAK_STRING.length;}if(Yh+1>0)this.splitNode(Xr,Yh+1,Lg);else Xr--;for(ww=y_i;ww<=Xr;ww++){var kMYK=Lg.childNodes.item(ww);if(kMYK.nodeName==SPAN_NODE_NAME){var ew=top.GetWordIndexFromWordID(kMYK.id);var gC=top.GetHighlightIDFromWordID(kMYK.id);var UL=top.GetHighlightIDFromWordID(kMYK.id);if(this.type==ANN_HIGHLIGHTTEXT)kMYK.id=top.MakeWordID(ew,this.id,UL);else kMYK.id=top.MakeWordID(ew,gC,this.id);y8.mySpanNodes.push(kMYK);}var Iap;if(y8.controls.annotsEditable&&!_D)Iap=function(){y8.Select();};else Iap=function(){};}y8.UpdateNodes(this.myHLClass,Iap,NORMAL_TEXT_CLASS,this.color);};TextHighlight.prototype.Select=function(){var y8=this;y8.controls.DeselectItem();if(this.type==ANN_HIGHLIGHTTEXT){y8.controls.highlightColorMenu.SelectColor("#"+y8.color,y8.color);y8.controls.highlightColorMenu.OnSelectedColorChanged=function(){y8.color=y8.controls.highlightColorMenu.GetSelectedValue();var p44="CreateTextAnnot.asp?docid="+y8.controls.docid+"&page="+y8.controls.pagenum+"&annotID="+y8.id+"&start="+y8.startChar+"&end="+y8.endChar+"&type="+y8.type+"&dbid="+y8.controls.dbid+"&color="+y8.color;if(top.GetXMLDocument(p44)){y8.UpdateNodes(null,null,null,y8.color);}};y8.controls.DeselectItem=function(){y8.SetHLDivNormal();y8.controls.highlightColorMenu.OnSelectedColorChanged=function(){y8.controls.SetAnnotationType(ANN_HIGHLIGHT);};};}else{y8.controls.redactionColorMenu.SelectColor("#"+y8.color,y8.color);y8.controls.redactionColorMenu.OnSelectedColorChanged=function(){y8.color=y8.controls.redactionColorMenu.GetSelectedValue();var p44="CreateTextAnnot.asp?docid="+y8.controls.docid+"&page="+y8.controls.pagenum+"&annotID="+y8.id+"&start="+y8.startChar+"&end="+y8.endChar+"&type="+y8.type+"&dbid="+y8.controls.dbid+"&color="+y8.color;if(top.GetXMLDocument(p44)){y8.UpdateNodes(null,null,null,y8.color);}};y8.controls.DeselectItem=function(){y8.SetHLDivNormal();y8.controls.redactionColorMenu.OnSelectedColorChanged=function(){y8.controls.SetAnnotationType(ANN_BLACKOUTIMAGE);};};}var o9=function(){if(confirm(top.STR_CONFIRM_DELETE_ANNOT)){y8.Remove();return true;}else return false;};y8.controls.SetDeleteFun(o9);y8.SetHLDivSelected();y8.controls.textDiv.onmousedown=function(g){y8.controls.DeselectItem();y8.controls.DisableDelete();if(y8.controls.AddAnnotFun){g=top.getEvent(g,y8.controls.imageWin.event,false);return y8.controls.AddAnnotFun(g);}};};TextHighlight.prototype.SetHLDivSelected=function(){var y8=this;var rA2;if(y8.type==ANN_HIGHLIGHTTEXT){rA2=SELHIGHLIGHTED_TEXT_CLASS;h2=HIGHLIGHTED_TEXT_CLASS;}else{rA2=SELREDACTED_TEXT_CLASS;h2=REDACTED_TEXT_CLASS;}y8.UpdateNodes(rA2,null,h2);};TextHighlight.prototype.SetHLDivNormal=function(){var y8=this;var rA2;if(y8.type==ANN_HIGHLIGHTTEXT){rA2=HIGHLIGHTED_TEXT_CLASS;h2=SELHIGHLIGHTED_TEXT_CLASS;}else{rA2=REDACTED_TEXT_CLASS;h2=SELREDACTED_TEXT_CLASS;}y8.UpdateNodes(rA2,null,h2,null);};TextHighlight.prototype.UpdateNodes=function(sJh,Iap,sCS,f6Z){var nS;for(nS=0;nS<this.mySpanNodes.length;nS++){if(sJh){var GkS=this.mySpanNodes[nS].className;var mr=GkS.indexOf(" "+sCS);if(mr!=-1){GkS=GkS.substring(0,mr)+GkS.substring(mr+sCS.length+1,GkS.length);}var HD=GkS.indexOf(" "+sJh);if(HD==-1)GkS+=" "+sJh;this.mySpanNodes[nS].className=GkS;}if(Iap!=null)this.mySpanNodes[nS].onclick=Iap;if(f6Z){if(this.type==ANN_HIGHLIGHTTEXT){this.mySpanNodes[nS].style.backgroundColor="#"+f6Z;var Nj=parseInt(f6Z,16);var TA=Nj%256;Nj=(Nj-TA)/256;var Is=Nj%256;Nj=(Nj-Is)/256;var OUZ=Nj;var aA=(Math.max(OUZ,Math.max(Is,TA))+Math.min(OUZ,Math.min(Is,TA)))/2;this.mySpanNodes[nS].style.color=(aA<120)?"white":"black";}else{if(f6Z=="FFFFFF"){this.mySpanNodes[nS].style.backgroundColor="#"+WHITE_REDACTION_BACKCOLOR;this.mySpanNodes[nS].style.color="#"+WHITE_REDACTION_FORECOLOR;}else{this.mySpanNodes[nS].style.backgroundColor="#"+BLACK_REDACTION_BACKCOLOR;this.mySpanNodes[nS].style.color="#"+BLACK_REDACTION_FORECOLOR;}}}}};TextHighlight.prototype.Remove=Highlight.prototype.Remove;TextHighlight.prototype.RemoveFromDisplay=Highlight.prototype.RemoveFromDisplay;TextHighlight.prototype.ReleaseDOMElements=function(){for(nS=0;nS<this.mySpanNodes.length;nS++){this.mySpanNodes[nS].onclick=null;}this.controls.textDiv.onmousedown=null;};var THUMB_COUNT=5;function Thumbnail(Ry,l,ri){var D=Ry.ownerDocument;var VO=this;VO.myWin=l;this.tdobj=ri;this.MyDiv=D.createElement("div");this.MyDiv.className="ThumbDisplayDiv";this.MyDiv.align="center";Ry.appendChild(this.MyDiv);this.MyLink=D.createElement("a");this.MyLink.tabIndex=0;top.setKeyPressHandler(this.MyLink,l);this.MyImg=D.createElement("img");this.MyLink.appendChild(this.MyImg);this.MyDiv.appendChild(this.MyLink);this.MyDiv.appendChild(D.createElement("br"));this.MyIndex=D.createTextNode("");var Au=D.createElement("span");Au.className="LabelFont";this.MyDiv.appendChild(Au).appendChild(this.MyIndex);VO.PageNumber=0;this.MyLink.ondblclick=function(){ri.controls.ChangePage(VO.PageNumber);};l.onunload=function(){ThumbDisplay.prototype.ReleaseDOMElements();l.onunload=null;};this.MyLink.onmousedown=function(g){if(VO.PageNumber==0)return;g=top.getEvent(g,ri.thumbWin.event,false);if(!g.ctrlKey&&!VO.IsSelected())VO.Select(true,false);VO.bAboutToDrag=ri.pagesMoveable;VO.lastXClick=g.offsetX;VO.lastYClick=g.offsetY;};this.MyLink.onmouseup=function(g){if(VO.PageNumber==0)return;VO.bAboutToDrag=false;g=top.getEvent(g,ri.thumbWin.event,false);if(g.ctrlKey)VO.Select(false,true);else if(VO.IsSelected())VO.Select(true,false);};this.MyLink.onmousemove=function(g){if(VO.PageNumber==0)return;g=top.getEvent(g,ri.thumbWin.event,false);if(VO.bAboutToDrag&&((Math.abs(VO.lastXClick-g.offsetX)>top.DRAG_START_TOLERANCE)||(Math.abs(VO.lastYClick-g.offsetY)>top.DRAG_START_TOLERANCE))){VO.bInitiateDrag=true;VO.bAboutToDrag=false;VO.Select(false,false);g.srcElement.dragDrop();}};if(ri.pagesMoveable){this.MyLink.ondragstart=function(g){g=top.getEvent(g,ri.thumbWin.event,false);if(!VO.bInitiateDrag){top.cancelEvent(g);return;}VO.bInitiateDrag=false;var b=top.JSTHUMBNAIL_DATA_FORMAT+ri.controls.dbname;b+=top.DRAG_DATA_DELIMITER+ri.controls.servername;b+=top.DRAG_DATA_DELIMITER+ri.controls.dochandle;var OP=ri.GetSelectedPages();for(var ww=0;ww<OP.length;++ww){b+=top.DRAG_DATA_DELIMITER+OP[ww];}g.dataTransfer.setData("Text",b);g.dataTransfer.effectAllowed="move";};this.MyLink.ondragend=function(){var tD=top.GetXMLDocument("GetPageCount.asp?id="+ri.controls.docid+"&dbid="+ri.controls.dbid);if(tD){var OT=tD.documentElement.getAttribute("PageCount");if(parseInt(OT)!=ri.controls.pagecount){ri.controls.CorrectPageNum(ri.controls.pagenum,OT);ri.SetSelectedPages(new Array());ri.DisplayThumbSet(true);ri.controls.ChangePage(ri.controls.pagenum);ri.controls.Refresh();if(ri.UploadControl)ri.UploadControl.Redisplay();}}};this.MyDiv.ondragenter=function(g){g=top.getEvent(g,ri.thumbWin.event,false);var iv=g.dataTransfer.getData("Text");var LT=top.DragDataType(iv,ri.controls,ri.thumbWin);if(LT==DRAG_FORMAT_THUMBNAILS){top.cancelEvent(g);if(VO.PageNumber>0){ri.HideValidTarget();ri.ShowValidTarget(VO.GetTargetPage(g),VO);}g.dataTransfer.dropEffect="move";return false;}};this.MyDiv.ondragleave=function(g){g=top.getEvent(g,ri.thumbWin.event,true);ri.HideValidTarget();};this.MyDiv.ondragover=function(g){g=top.getEvent(g,ri.thumbWin.event,true);if(VO.PageNumber>0){ri.HideValidTarget();ri.ShowValidTarget(VO.GetTargetPage(g),VO);}g.dataTransfer.dropEffect="move";return false;};this.MyDiv.ondrop=function(g){g=top.getEvent(g,ri.thumbWin.event,true);ri.HideValidTarget();var b=g.dataTransfer.getData("Text");var LT=top.DragDataType(b,ri.controls,ri.thumbWin);if(LT==DRAG_FORMAT_THUMBNAILS){ri.MovePage(top.ThumbnailPages(b,ri.controls,ri.thumbWin),top.ThumbnailEntryHandle(b,ri.controls,ri.thumbWin),VO.GetTargetPage(g),ri.controls.dochandle);}};}}Thumbnail.prototype.GetTargetPage=function(g){if(this.tdobj.GetThumbCount()==THUMB_COUNT){if(g.offsetY>this.MyImg.offsetHeight/2)return this.PageNumber+1;else return this.PageNumber;}else{if(g.offsetX>this.MyImg.offsetWidth/2)return this.PageNumber+1;else return this.PageNumber;}};Thumbnail.prototype.Remove=function(){this.MyDiv.parentNode.removeChild(this.MyDiv);};Thumbnail.prototype.IsSelected=function(){var jI=this.tdobj.GetSelectedPages();var n1=false;for(var nS=0;nS<jI.length;++nS){if(jI[nS]==this.PageNumber)return true;}return false;};Thumbnail.prototype.Select=function(NF,AY){var jI;if(NF){jI=new Array();jI.push(this.PageNumber);}else{var jI=this.tdobj.GetSelectedPages();var n1=false;for(var nS=0;nS<jI.length;++nS){if(jI[nS]==this.PageNumber){n1=true;if(AY)jI.splice(nS,1);break;}}if(!n1)jI.push(this.PageNumber);}this.tdobj.OnSelect();this.tdobj.SetSelectedPages(jI);this.tdobj.DisplayThumbSet();};Thumbnail.prototype.ReleaseDOMElements=function(){if(this.MyLink){top.clearKeyPressHandler(this.MyLink);this.MyLink.ondblclick=null;this.MyLink.onmousedown=null;this.MyLink.onmouseup=null;this.MyLink.onmousemove=null;this.MyLink.ondragstart=null;this.MyLink.ondragend=null;this.MyDiv.ondragenter=null;this.MyDiv.ondragleave=null;this.MyDiv.ondragover=null;this.MyDiv.ondrop=null;this.MyLink=null;}};function ThumbDisplay(Hm,gq,L6A){var ri=this;ri.controls=top[Hm];ri.controls.SetThumbDisplay(this);ri.firstThumbIndex=1;ri.thumbWin=gq;gq.document.onkeydown=function(g){g=top.getEvent(g,gq.event,false);if(g.keyCode==DELETE_KEY_CODE){ri.controls.DeleteFun();}};gq.onresize=function(){ri.CalculateThumbCount();};ri.DHTMLThumbs=new Array();ri.ActiveXThumbCount=0;ri.SelectedDHTMLPages=new Array();this.pagesMoveable=L6A;}ThumbDisplay.prototype.DisallowMovePages=function(){this.pagesMoveable=false;};ThumbDisplay.prototype.GetThumbCount=function(){if(this.UsingActiveX())return this.ActiveXThumbCount;else return this.DHTMLThumbs.length;};ThumbDisplay.prototype.SetAlternateThumbDisplay=function(xS){var ri=this;ri.displayNode=xS;ri.CalculateThumbCount();};ThumbDisplay.prototype.CalculateThumbCount=function(){var te=THUMB_COUNT*Math.max(1,Math.floor(this.displayNode.offsetWidth/143));var e7D=false;if(te>this.DHTMLThumbs.length){e7D=true;for(var ww=this.DHTMLThumbs.length;ww<te;++ww){this.DHTMLThumbs.push(new Thumbnail(this.displayNode,this.thumbWin,this));}}while(te<this.DHTMLThumbs.length){this.DHTMLThumbs.pop().Remove();}if(e7D)this.DisplayThumbSet();else this.UpdateThumbCount();};ThumbDisplay.prototype.SetUploadControl=function(Jl,iU){var ri=this;this.UploadControl=Jl;var QUr=this.thumbWin.top.location.href;QUr=QUr.substr(0,QUr.lastIndexOf("/"));this.UploadControl.Url=QUr+"/InsertPage.asp";this.UploadControl.SessionID=iU;this.UploadControl.DocHandle=this.controls.dochandle;this.UploadControl.DbID=this.controls.dbid;this.UploadControl.imageURL=QUr+"/ThumbDisplay.asp?id="+this.controls.docid+"&format=dib&dbid="+this.controls.dbid+"&page=%d";this.UploadControl.tabIndex=0;this.UploadControl.onkeydown=function(g){g=top.getEvent(g,ri.thumbWin.event,false);if(g.keyCode==top.TAB_KEY_CODE){var AfL=ri.GetSelectedPages();var Jo=new Array();var XN=Math.min(ri.controls.pagecount,ri.firstThumbIndex+ri.GetThumbCount()-1);if(AfL.length>0){var jl=parseInt(AfL[0]);if(!g.shiftKey&&jl<XN)Jo[0]=jl+1;else if(g.shiftKey&&jl>ri.firstThumbIndex)Jo[0]=jl-1;}else if(g.shiftKey)Jo[0]=XN;else Jo[0]=ri.firstThumbIndex;if(Jo.length>0){top.cancelEvent(g);ri.SetSelectedPages(Jo);}}if(g.keyCode==top.ENTER_KEY_CODE){var AfL=ri.GetSelectedPages();ri.controls.ChangePage(AfL[0]);}};this.UploadControl.PageNumber=this.firstThumbIndex;this.UploadControl.PageCount=this.controls.pagecount;this.UploadControl.DocID=this.controls.dochandle;};ThumbDisplay.prototype.PrevSetAvailable=function(){return(this.firstThumbIndex>1);};ThumbDisplay.prototype.NextSetAvailable=function(){return(this.firstThumbIndex<this.controls.pagecount-(this.GetThumbCount()-1));};ThumbDisplay.prototype.SetPrevAndNextIcons=function(co,Ga){var ri=this;ri.prevIcon=co;ri.prevIcon.tabIndex=0;ri.nextIcon=Ga;ri.nextIcon.tabIndex=0;ri.prevIcon.onclick=function(){if(ri.PrevSetAvailable()){ri.firstThumbIndex=Math.max(ri.firstThumbIndex-(ri.GetThumbCount()*(THUMB_COUNT-1)/THUMB_COUNT),1);ri.DisplayThumbSet();}};ri.nextIcon.onclick=function(){if(ri.NextSetAvailable()){ri.firstThumbIndex=Math.min(ri.firstThumbIndex+(ri.GetThumbCount()*(THUMB_COUNT-1)/THUMB_COUNT),ri.controls.pagecount-(ri.GetThumbCount()-1));ri.DisplayThumbSet();}};top.setKeyPressHandler(ri.prevIcon,ri.thumbWin);top.setKeyPressHandler(ri.nextIcon,ri.thumbWin);ri.pageNumText=ri.nextIcon.ownerDocument.createTextNode("");ri.nextIcon.parentNode.insertBefore(ri.pageNumText,ri.nextIcon);};ThumbDisplay.prototype.SetPageInput=function(T5,rm){var ri=this;ri.pageInput=T5;ri.pageGoBtn=rm;var bOo=function(){var hU=parseInt(T5.value);if(hU&&hU>0&&hU<=ri.controls.pagecount){ri.firstThumbIndex=Math.max(1,Math.min(hU,ri.controls.pagecount-(ri.GetThumbCount()-1)));ri.DisplayThumbSet();}};T5.onkeypress=function(g){g=top.getEvent(g,ri.thumbWin.event,false);if(g.keyCode==ENTER_KEY_CODE)bOo();};rm.onclick=function(){bOo();};};ThumbDisplay.prototype.UpdateThumbCount=function(Ls){if(Ls)this.ActiveXThumbCount=Ls;if(this.PrevSetAvailable())this.controls.setImgSwap(this.prevIcon.childNodes[0],"images/Thumbnails_LeftArrow.gif","images/Thumbnails_LeftArrow_over.gif");else this.controls.setImgSwap(this.prevIcon.childNodes[0],"images/Thumbnails_LeftArrow_disabled.gif","images/Thumbnails_LeftArrow_disabled.gif");if(this.NextSetAvailable())this.controls.setImgSwap(this.nextIcon.childNodes[0],"images/Thumbnails_RightArrow.gif","images/Thumbnails_RightArrow_over.gif");else this.controls.setImgSwap(this.nextIcon.childNodes[0],"images/Thumbnails_RightArrow_disabled.gif","images/Thumbnails_RightArrow_disabled.gif");this.DisplayPageRange();};ThumbDisplay.prototype.DisplayPageRange=function(){var XN=Math.min(this.controls.pagecount,this.firstThumbIndex+this.GetThumbCount()-1);this.pageNumText.data=" "+this.firstThumbIndex+" - "+(XN)+" "+STR_OF+" "+this.controls.pagecount+" ";};ThumbDisplay.prototype.DisplayThumbSet=function(Dz){var ri=this;if(this.UploadControl){this.UploadControl.PageNumber=this.firstThumbIndex;this.UploadControl.PageCount=this.controls.pagecount;this.UploadControl.DocID=this.controls.dochandle;if(Dz)this.UploadControl.Redisplay();}var jI=this.GetSelectedPages();for(var ww=0;ww<this.GetThumbCount();ww++){if(this.firstThumbIndex+ww<=this.controls.pagecount){var wa=this.thumbWin.location.href.substr(0,this.thumbWin.location.href.lastIndexOf("/"))+"/ThumbDisplay.asp?id="+this.controls.docid+"&page="+(this.firstThumbIndex+ww)+"&dbid="+this.controls.dbid;if(this.DHTMLThumbs[ww].MyImg.src!=wa||Dz)this.DHTMLThumbs[ww].MyImg.src=wa;this.DHTMLThumbs[ww].PageNumber=this.firstThumbIndex+ww;this.DHTMLThumbs[ww].MyImg.alt=STR_JUMP+" "+(this.firstThumbIndex+ww);this.DHTMLThumbs[ww].MyIndex.data=this.firstThumbIndex+ww;this.DHTMLThumbs[ww].MyLink.style.visibility="visible";var cg=false;for(var nS=0;nS<jI.length;++nS){if(jI[nS]==this.firstThumbIndex+ww)cg=true;}if(cg)this.DHTMLThumbs[ww].MyImg.className="ThumbDisplayImage SelectedThumb";else this.DHTMLThumbs[ww].MyImg.className="ThumbDisplayImage";}else{this.DHTMLThumbs[ww].MyLink.style.visibility="hidden";this.DHTMLThumbs[ww].MyIndex.data="";}}this.UpdateThumbCount();};ThumbDisplay.prototype.RefreshDisplay=function(NnY,GF,LI){var ri=this;var c4=this.controls.pagenum;var TW;var pU=new Array();var elF=false;NnY=parseInt(NnY);if(GF!=null){if(GF.length==null){GF=new VBArray(GF);GF=GF.toArray();}var amn=NnY;for(var ww=0;ww<GF.length;++ww){if(GF[ww]<NnY)--amn;}for(var ww=0;ww<GF.length;ww++){if(NnY)pU.push(amn+ww);if(c4==parseInt(GF[ww])){if(NnY)TW=amn+ww;else elF=true;}}if(!TW){TW=c4;for(var nS=0;nS<GF.length;nS++){if(NnY){if(parseInt(GF[nS])>c4&&NnY<=c4)TW++;else if(NnY>c4&&parseInt(GF[nS])<c4)TW--;}else if(parseInt(GF[nS])<c4)TW--;}}}else{pU.push(NnY);GF=new Array();if(NnY<=c4)TW=c4+parseInt(LI);else if(c4==0){elF=true;TW=1;}else TW=c4;}var tD=top.GetXMLDocument("GetPageCount.asp?id="+this.controls.docid+"&dbid="+this.controls.dbid);if(tD){var OT=tD.documentElement.getAttribute("PageCount");ri.controls.CorrectPageNum(TW,OT);ri.SetSelectedPages(pU);if(LI>0&&NnY>=ri.firstThumbIndex+ri.GetThumbCount())ri.firstThumbIndex++;ri.DisplayThumbSet(true);ri.controls.releaseSaveBtn();if(elF){ri.controls.ChangePage(ri.controls.pagenum);ri.controls.Refresh();}}};ThumbDisplay.prototype.StartLoading=function(){this.controls.lockSaveBtn();};ThumbDisplay.prototype.Disable=function(){if(this.UploadControl)this.UploadControl.Locked=true;};ThumbDisplay.prototype.Enable=function(){if(this.UploadControl)this.UploadControl.Locked=false;};ThumbDisplay.prototype.SetSelectedPages=function(AfL){if(this.UploadControl){var bA7=new ActiveXObject("Scripting.Dictionary");for(var ww=0;ww<AfL.length;ww++)bA7.item(ww)=AfL[ww];this.UploadControl.SelectedPages=bA7.items();}this.SelectedDHTMLPages=AfL;};ThumbDisplay.prototype.UsingActiveX=function(){return this.displayNode.style.display=="none";};ThumbDisplay.prototype.GetSelectedPages=function(){if(this.UsingActiveX()){var iD=new VBArray(this.UploadControl.SelectedPages);return iD.toArray();}else return this.SelectedDHTMLPages;};ThumbDisplay.prototype.DeleteSelectedPages=function(){var ri=this;var OP=this.GetSelectedPages();ri.StartLoading();top.GetXMLDocument("DeletePages.asp?docid="+ri.controls.docid+"&pagenums="+OP.join(",")+"&dbid="+this.controls.dbid);if(ri.UploadControl)ri.UploadControl.Redisplay();ri.RefreshDisplay(0,OP,0);ri.controls.Refresh();};ThumbDisplay.prototype.OnSelect=function(){var ri=this;ri.controls.DeselectItem();var o9=function(){if(ri.controls.pagedeletable&&confirm(top.STR_CONFIRM_DELETE_PAGE)){ri.DeleteSelectedPages();return true;}else return false;};ri.controls.SetDeleteFun(o9);ri.controls.DeselectItem=function(){var Jo=new Array();ri.SetSelectedPages(Jo);ri.DisplayThumbSet();};if(!ri.controls.pagedeletable)ri.controls.DisableDelete();};ThumbDisplay.prototype.MovePage=function(E9,aQ,AK,WWE){var ri=this;ri.StartLoading();top.GetXMLDocument("MovePage.asp?srchandle="+aQ+"&srcpage="+E9.join(",")+"&desthandle="+WWE+"&destPage="+AK+"&dbid="+this.controls.dbid);if(ri.UploadControl)ri.UploadControl.Redisplay();var GF=null;if(aQ==ri.controls.dochandle)GF=E9;ri.RefreshDisplay(AK,GF,E9.length);ri.controls.Refresh();};ThumbDisplay.prototype.ShowValidTarget=function(wB,u2){var q7q="black 2px solid";if(wB==this.firstThumbIndex){if(this.DHTMLThumbs.length==THUMB_COUNT)this.DHTMLThumbs[0].MyDiv.style.borderTop=q7q;else this.DHTMLThumbs[0].MyDiv.style.borderLeft=q7q;}else if(wB==this.firstThumbIndex+this.DHTMLThumbs.length){if(this.DHTMLThumbs.length==THUMB_COUNT)this.DHTMLThumbs[this.DHTMLThumbs.length-1].MyDiv.style.borderBottom=q7q;else this.DHTMLThumbs[this.DHTMLThumbs.length-1].MyDiv.style.borderRight=q7q;}else if(wB==this.controls.pagecount+1){if(this.DHTMLThumbs.length==THUMB_COUNT)this.DHTMLThumbs[wB-this.firstThumbIndex].MyDiv.style.borderTop=q7q;else this.DHTMLThumbs[wB-this.firstThumbIndex].MyDiv.style.borderLeft=q7q;}else{var Hh=this.DHTMLThumbs[wB-this.firstThumbIndex-1];var tDM=this.DHTMLThumbs[wB-this.firstThumbIndex];if(this.DHTMLThumbs.length==THUMB_COUNT)Hh.MyDiv.style.borderBottom=q7q;else{if(Hh.MyDiv.offsetTop==tDM.MyDiv.offsetTop)Hh.MyDiv.style.borderRight=q7q;else{if(Hh.PageNumber==u2.PageNumber)Hh.MyDiv.style.borderRight=q7q;else tDM.MyDiv.style.borderLeft=q7q;}}}};ThumbDisplay.prototype.HideValidTarget=function(){for(var ww=0;ww<this.DHTMLThumbs.length;++ww){this.DHTMLThumbs[ww].MyDiv.style.borderTop="";this.DHTMLThumbs[ww].MyDiv.style.borderLeft="";this.DHTMLThumbs[ww].MyDiv.style.borderBottom="";this.DHTMLThumbs[ww].MyDiv.style.borderRight="";}};ThumbDisplay.prototype.ReleaseDOMElements=function(){var VO=this;VO.displayNode=null;if(VO.prevIcon){this.controls.clearImgSwap(VO.prevIcon.childNodes[0]);top.clearKeyPressHandler(VO.prevIcon);VO.prevIcon.onclick=null;VO.prevIcon=null;}if(VO.nextIcon){this.controls.clearImgSwap(VO.nextIcon.childNodes[0],"");top.clearKeyPressHandler(VO.nextIcon);VO.nextIcon.onclick=null;VO.nextIcon=null;}if(VO.pageInput){VO.pageInput.onkeypress=null;VO.pageInput=null;}if(VO.pageGoBtn){VO.pageGoBtn.onclick=null;VO.pageGoBtn=null;}VO.displayNode=null;VO.MyDiv=null;VO.MyLink=null;VO.MyImg=null;VO.MyDiv=null;VO.MyIndex=null;VO.ActiveXThumbCount=null;if(VO.DHTMLThumbs){for(var ww=0;ww<VO.DHTMLThumbs.length;ww++){VO.DHTMLThumbs[ww].ReleaseDOMElements();}VO.DHTMLThumbs=null;}if(VO.MyLink){VO.MyLink.ondblclick=null;VO.MyLink.onmousedown=null;VO.MyLink.onmouseup=null;VO.MyLink.onmousemove=null;VO.MyLink.ondragstart=null;VO.MyLink.ondragend=null;VO.MyLink.ondragenter=null;VO.MyLink.ondragleave=null;VO.MyLink.ondragover=null;VO.MyLink.ondrop=null;}};var TOOLBAR_CUT=0;var TOOLBAR_COPY=1;var TOOLBAR_PASTE=2;var TOOLBAR_NEW_FOLDER=3;var TOOLBAR_FIELDS=4;var TOOLBAR_EXTRACT_TEXT=5;function ToolbarButton(Dt,F2o,Gm,pY,Lzr){this.normalImgSrc=Dt;this.overImgSrc=F2o;this.disabledImgSrc=Gm;this.altString=pY;this.clickFunc=Lzr;}ToolbarButton.prototype.addToDiv=function(pot){this.buttonImg=top.document.createElement("img");this.buttonImg.className="BrowseToolbarIcon";this.buttonImg.alt=this.altString;this.buttonLink=top.document.createElement("a");this.buttonLink.tabIndex=0;this.buttonLink.onclick=this.clickFunc;if(top.setKeyPressHandler){top.setKeyPressHandler(this.buttonLink,window);}this.buttonLink.appendChild(this.buttonImg);pot.appendChild(this.buttonLink);this.buttonImg.src=this.disabledImgSrc;};ToolbarButton.prototype.Enable=function(){var _Pt=this;this.buttonImg.src=this.normalImgSrc;this.buttonImg.onmouseout=function(){this.src=_Pt.normalImgSrc;};this.buttonImg.onmouseover=function(){this.src=_Pt.overImgSrc;};this.buttonLink.onclick=this.clickFunc;};ToolbarButton.prototype.Disable=function(){var _Pt=this;this.buttonImg.src=this.disabledImgSrc;this.buttonImg.onmouseout=null;this.buttonImg.onmouseover=null;this.buttonLink.onclick=null;};ToolbarButton.prototype.ReleaseDOMElements=function(){this.clickFunc=null;this.buttonImg=null;this.buttonLink=null;};function Toolbar(Nlz,fb){this.toolbarDiv=Nlz;this.controls=fb;this.buttons=new Array();this.bCopyPasteAllowed=false;this.bLinkPasteAllowed=false;}Toolbar.prototype.Initialize=function(){var ewy=this;var bd2=function(){ewy.controls.CutFunc();return false;};this.buttons[TOOLBAR_CUT]=new ToolbarButton("images/tb_cut.gif","images/tb_cutOver.gif","images/tb_cutDisabled.gif",top.STR_CUT,bd2);this.buttons[TOOLBAR_CUT].addToDiv(this.toolbarDiv);this.DisableCut=function(){ewy.buttons[TOOLBAR_CUT].Disable();};this.EnableCut=function(){ewy.buttons[TOOLBAR_CUT].Enable();};var FH=function(){ewy.controls.CopyFunc();return false;};this.buttons[TOOLBAR_COPY]=new ToolbarButton("images/tb_copy.gif","images/tb_copyOver.gif","images/tb_copyDisabled.gif",top.STR_COPY,FH);this.buttons[TOOLBAR_COPY].addToDiv(this.toolbarDiv);this.DisableCopy=function(){ewy.buttons[TOOLBAR_COPY].Disable();};this.EnableCopy=function(){ewy.buttons[TOOLBAR_COPY].Enable();};var iS=function(){if(ewy.bCopyPasteAllowed)ewy.controls.CopyPasteFunc();else ewy.controls.LinkPasteFunc();return false;};this.buttons[TOOLBAR_PASTE]=new ToolbarButton("images/tb_paste.gif","images/tb_pasteOver.gif","images/tb_pasteDisabled.gif",top.STR_PASTE,iS);this.buttons[TOOLBAR_PASTE].addToDiv(this.toolbarDiv);this.DisableCopyPaste=function(){ewy.bCopyPasteAllowed=false;if(!(ewy.bCopyPasteAllowed||ewy.bLinkPasteAllowed))this.buttons[TOOLBAR_PASTE].Disable();};this.EnableCopyPaste=function(){ewy.bCopyPasteAllowed=true;if(ewy.bCopyPasteAllowed||ewy.bLinkPasteAllowed)this.buttons[TOOLBAR_PASTE].Enable();};this.DisableLinkPaste=function(){ewy.bLinkPasteAllowed=false;if(!(ewy.bCopyPasteAllowed||ewy.bLinkPasteAllowed))this.buttons[TOOLBAR_PASTE].Disable();};this.EnableLinkPaste=function(){ewy.bLinkPasteAllowed=true;if(ewy.bCopyPasteAllowed||ewy.bLinkPasteAllowed)this.buttons[TOOLBAR_PASTE].Enable();};var Mmp=function(){ewy.controls.AddSubfolder();return false;};this.buttons[TOOLBAR_NEW_FOLDER]=new ToolbarButton("images/tb_newFolder.gif","images/tb_newFolderOver.gif","images/tb_newFolderDisabled.gif",top.STR_NEW_FOLDER,Mmp);this.buttons[TOOLBAR_NEW_FOLDER].addToDiv(this.toolbarDiv);this.DisableNewFolder=function(){ewy.buttons[TOOLBAR_NEW_FOLDER].Disable();};this.EnableNewFolder=function(){ewy.buttons[TOOLBAR_NEW_FOLDER].Enable();};this.EnableNewFolder();var B_=function(){ewy.controls.GetSelectedEntries()[0].ShowMetadataDialog("showfields");return false;};this.buttons[TOOLBAR_FIELDS]=new ToolbarButton("images/tb_fields.gif","images/tb_fieldsOver.gif","images/tb_fieldsDisabled.gif",top.STR_FIELDS,B_);this.buttons[TOOLBAR_FIELDS].addToDiv(this.toolbarDiv);this.DisableFields=function(){ewy.buttons[TOOLBAR_FIELDS].Disable();};this.EnableFields=function(){ewy.buttons[TOOLBAR_FIELDS].Enable();};var iO=function(){ewy.controls.ExtractText();};this.buttons[TOOLBAR_EXTRACT_TEXT]=new ToolbarButton("images/ViewText.gif","images/ViewText_over.gif","images/ViewText_disabled.gif",top.STR_EXTRACT_TEXT,iO);this.buttons[TOOLBAR_EXTRACT_TEXT].addToDiv(this.toolbarDiv);this.DisableTextExtraction=function(){ewy.buttons[TOOLBAR_EXTRACT_TEXT].Disable();};this.EnableTextExtraction=function(){ewy.buttons[TOOLBAR_EXTRACT_TEXT].Enable();};};Toolbar.prototype.ReleaseDOMElements=function(){var ww;for(ww=0;ww<this.buttons.length;ww++){this.buttons[ww].ReleaseDOMElements();this.buttons[ww]=null;}this.toolbarDiv=null;this.controls=null;this.DisableCut=null;this.EnableCut=null;this.DisableCopy=null;this.EnableCopy=null;this.DisableCopyPaste=null;this.EnableCopyPaste=null;this.DisableLinkPaste=null;this.EnableLinkPaste=null;this.DisableNewFolder=null;this.EnableNewFolder=null;this.DisableFields=null;this.EnableFields=null;};function Trustee(nc,Q,F,name,Iap){Lx=this;this.id=F;this.name=name;this.isUser=Q;this.myRow=nc.ownerDocument.createElement("tr");this.myRow.onclick=this.GetClickFunc(Iap);Qa=nc.ownerDocument.createElement("td");Qa.width="70%";var dm=nc.ownerDocument.createElement("img");if(Q)dm.src="images/Users.gif";else dm.src="images/Groups.gif";dm.width=16;dm.height=16;Qa.appendChild(dm);Qa.appendChild(nc.ownerDocument.createTextNode(name));this.myRow.appendChild(Qa);nc.appendChild(this.myRow);}Trustee.prototype.GetClickFunc=function(x9){var Lx=this;return function(){x9(Lx);};};Trustee.prototype.ShowHighlighted=function(){if(this.myRow)this.myRow.className="UserRowHighlight";};Trustee.prototype.ShowUnhighlighted=function(){if(this.myRow)this.myRow.className="";};Trustee.prototype.Hide=function(){if(this.myRow)this.myRow.style.display="none";};Trustee.prototype.Show=function(){if(this.myRow)this.myRow.style.display="inline";};function CheckOutList(T,_b,dJx,Sb){var Zt=this;this.dbid=T;this.username=_b;this.formElement=dJx;this.commandInput=Sb;Sb.value="{LF:CheckOutUser=\""+_b+"\"}";this.Columns=new Array();this.results=new SearchResults();this.results.SetSearchForm(null);this.results.HideHits();this.results.ClickFunc=function(Ka,RVa,g){if(top.getLMB(g)){if(g.ctrlKey){if(Ka.className=="SearchResultsTableHighlightBackground"){this.UnSelectEntry(RVa);}else{this.AddSelectedEntry(Ka,RVa);}}else{this.SetSelectedEntry(Ka,RVa);}}Zt.UpdateButtonActivity();};}CheckOutList.prototype.SetButtons=function(hr,SO,FE){var Zt=this;this.checkInBtn=hr;this.undoCheckOutBtn=SO;this.detailsBtn=FE;this.checkInBtn.disabled=true;this.undoCheckOutBtn.disabled=true;this.detailsBtn.disabled=true;this.checkInBtn.onclick=function(){Zt.CheckIn();};this.undoCheckOutBtn.onclick=function(){Zt.UndoCheckOut();};this.detailsBtn.onclick=function(){Zt.ShowDetails();};};CheckOutList.prototype.UpdateButtonActivity=function(){var Od=this.results.GetMultiSelectCount();if(Od==0){this.checkInBtn.disabled=true;this.undoCheckOutBtn.disabled=true;this.detailsBtn.disabled=true;}if(Od==1){this.checkInBtn.disabled=false;this.undoCheckOutBtn.disabled=false;this.detailsBtn.disabled=false;}if(Od>1){this.checkInBtn.disabled=true;this.undoCheckOutBtn.disabled=false;this.detailsBtn.disabled=true;}};CheckOutList.prototype.AddColumn=function(name,F){this.Columns.push(new top.Column(name,F));this.results.queryExpansion+="&colid="+F;};CheckOutList.prototype.Load=function(){var Zt=this;this.checkInBtn.disabled=true;this.undoCheckOutBtn.disabled=true;this.detailsBtn.disabled=true;var m2="callbackfunc"+top.callbackNum++;top[m2]=function(tD){var zu=new Array();top.ResultsFromXML(tD,zu,1);var c=tD.documentElement;var VH=parseInt(c.getAttribute("TotalResults"));var wF=c.getAttribute("Handle");Zt.results.Initialize();if(wF&&zu){Zt.results.templateID=0;Zt.results.searchHandle=wF;Zt.results.DisplayHeaderRow(Zt.Columns);Zt.results.DrawSearchResults(zu,VH,1);}};var ju="RunSearch.asp?start=1&count="+Zt.results.maxRowsToDisplay+"&callback="+m2+"&dbid="+Zt.dbid+Zt.results.queryExpansion;Zt.formElement.action=ju;Zt.formElement.submit();};CheckOutList.prototype.ShowDetails=function(){if(!top.VerifyConnection(this.dbid)){window.returnValue=true;window.close();return;}var bq=this.results.GetSelectedEntries()[0];var U=bq.id;top.lfShowModalDialog(window,"CheckOutDetailsPopup.asp?id="+U+"&dbid="+this.dbid,null,"help:no;scroll:no;status:no");};CheckOutList.prototype.CheckIn=function(){if(!top.VerifyConnection(this.dbid)){window.returnValue=true;window.close();return;}var tD=top.GetXMLDocument("CheckImportVolume.asp?dbid="+this.dbid);if(tD){var c=tD.documentElement;if(c.getAttribute("Result")<=0){alert(top.STR_INVALID_VOLUME);return;}}var bq=this.results.GetSelectedEntries()[0];var U=bq.id;if(!top.lfShowModalDialog(window,"CheckInDialog.asp?dbid="+this.dbid+"&id="+U,null,"help:no;scroll:no;status:no"))return;this.Load();};CheckOutList.prototype.UndoCheckOut=function(){if(!top.VerifyConnection(this.dbid))return;var Tt=this.results.GetSelectedEntries();var ju="UndoCheckoutDocument.asp?dbid="+this.dbid;var rF;if(Tt.length==1)rF=STR_CONFIRM_UNDO_CHECKOUT_1+Tt[0].name+"?";else if(Tt.length==0)return;else rF=STR_CONFIRM_UNDO_CHECKOUT_1+STR_CONFIRM_UNDO_CHECKOUT_2;if(confirm(rF)){var ww;for(ww=0;ww<Tt.length;ww++){var bq=Tt[ww];var U;if(bq.isCheckedOut()){U=bq.id;ju+="&id="+U;}}var tD=top.GetXMLDocument(ju);if(tD){this.Load();}}};function ContextHit(EJw,hTN,p2b){this.page=EJw;this.context=hTN;this.hitoffset=p2b;}ContextHit.prototype.ClickFunc=function(Ka){Ka.className="SearchResultsTableHighlightBackground";};ContextHit.prototype.DblClickFunc=function(PJ,UA){var ft="docview.asp?id="+this.m_entry.targetid+"&searchHandle="+this.m_entry.oResults.searchHandle+"&page="+this.page+"&hitoffset="+this.hitoffset+"&dbid="+this.m_entry.oResults.dbid+"&NumContextClicked="+PJ+"&ContextString="+UA;top.OpenDocView(top.window,this.m_entry.targetid,ft,"height=570,resizable=yes,scrollbars=no,status=yes,toolbar=no,width=860",true);};ContextHit.prototype.setTableRow=function(Ka,RVa,PJ,UA){this.displayRow=Ka;this.m_entry=RVa;var kb=this;Ka.onclick=function(){RVa.oResults.SelectNoEntries();RVa.oResults.highlightedRow=Ka;kb.ClickFunc(Ka);};Ka.ondblclick=function(){kb.DblClickFunc(PJ,UA);};};ContextHit.prototype.GetKeyPressHandler=function(LBH,Ka){var t0s=this;return function(g){g=top.getEvent(g,LBH.myWin.event,false);if(g.keyCode==ENTER_KEY_CODE){top.cancelEvent(g);Ka.ondblclick();}if(g.keyCode==SPACE_BAR_KEY_CODE){top.cancelEvent(g);Ka.onclick();}};};top.COLUMN_TYPE_BASIC=1;top.COLUMN_TYPE_TEMPLATE=2;top.COLUMN_TYPE_RM=3;function Column(a5,F,CY,rI,TG){this.Name=a5;this.id=F;this.StorageArray=CY;this.type=rI;this.isDivider=TG;}Column.prototype.SetRow=function(FFn,SK,Xup){var u4V=this;u4V.Row=FFn;u4V.OnRHS=Xup;FFn.onclick=function(){SK(u4V);};this.ShowUnhighlighted();};Column.prototype.ShowHighlighted=function(){this.Row.className="UserRowHighlight";};Column.prototype.ShowUnhighlighted=function(){if(this.isDivider)this.Row.className="DummyColumn";else this.Row.className="";};function DocBrowser(es,mn,Xs,l,zt,yL,b5,Et,Cbg){var __f=this;__f.myWin=l;__f.myTBody=es;__f.myTHead=mn;__f.selectedEntries=new Array();__f.showDocs=Xs;__f.ListingHandle=0;__f.maxRowsToDisplay=Cbg;__f.rowsCurrentlyDisplayed=0;__f.ScrollDiv=yL;__f.FakeDiv=b5;__f.DisplayDiv=Et;__f.winHeight=top.getClientHeight(l);__f.rowHeight=0;__f.totalRows=0;__f.EntryCache=new Array();__f.SortColumnID=0;__f.SortDir=top.SORT_DIRECTION_ASC;__f.CurrentEntryIndex=1;var m2="callbackfunc"+top.callbackNum++;top[m2]=function(FW){__f.ScrollHandler(FW);};this.scrollbar=new FakeScrollbar(this.ScrollDiv,this.FakeDiv,m2);var io=function(g){if(__f.controls)__f.controls.BrowseMenu.HideMenu();if(__f.controls.lastButtonClicked!=null)__f.controls.lastButtonClicked=null;else{g=top.getEvent(g,__f.myWin.event,false);if(!g.ctrlKey){__f.SelectNoEntries();}if(__f.controls){__f.controls.FocusOnDocBrowser();__f.controls.killContextMenu();}}};zt.onclick=io;zt.onscroll=function(){if(__f.controls)__f.controls.killContextMenu();};zt.onmouseup=function(g){if(!__f.controls.lastButtonClicked){g=top.getEvent(g,__f.myWin.event,false);if(!top.getLMB(g)&&!__f.controls.showBuiltinContext){__f.controls.killContextMenu();__f.lastButtonClicked=g.button;__f.ShowContextMenu(g);}}};zt.oncontextmenu=function(g){if(__f.controls){if(!__f.controls.showBuiltinContext){g=top.getEvent(g,__f.myWin.event,true);if(__f.selectedEntries.length>0){__f.selectedEntries[0].ShowDropContextMenu(g,null,null,true);}else{__f.controls.killContextMenu();__f.lastButtonClicked=g.button;__f.ShowContextMenu(g,true);}}else __f.controls.showBuiltinContext=false;}};es.ownerDocument.onkeydown=function(g){return __f.controls.KeyPress(g,l);};l.onunload=function(){__f.ListingHandle=0;if(__f.selectedEntries!=null){while(__f.selectedEntries.length){__f.selectedEntries.pop();}__f.selectedEntries=null;}__f.myWin=null;__f.FreeHeaderData(__f.myTHead.childNodes[0]);__f.FreeTBodyData(__f.myTBody);if(__f.EntryCache&&(__f.EntryCache.length>0)){while(__f.EntryCache.length){var RVa=__f.EntryCache.pop();if(RVa)RVa.ReleaseDOMElements();}}__f.EntryCache=new Array();__f.myTBody.ownerDocument.onkeydown=null;__f.myTBody=null;__f.myTHead=null;__f.showDocs=null;__f.ListingHandle=null;__f.maxRowsToDisplay=null;__f.rowsCurrentlyDisplayed=null;__f.ScrollDiv=null;__f.FakeDiv=null;__f.DisplayDiv=null;__f.winHeight=null;__f.rowHeight=null;__f.totalRows=null;__f.EntryCache=new Array();__f.SortColumnID=null;__f.SortDir=null;l.onunload=null;l.onresize=null;zt.onscroll=null;zt.onmouseup=null;zt.oncontextmenu=null;zt.onclick=null;Et.onmousewheel=null;};l.onresize=function(){__f.winHeight=top.getClientHeight(__f.myWin);if(__f.LateLoading){__f.SizeFakeScrollbar();__f.Resized=true;}};Et.onmousewheel=function(g){g=top.getEvent(g,l.event,false);if(__f.LateLoading)__f.scrollbar.SetScrollTop(parseInt(__f.scrollbar.GetScrollTop())-21*(g.wheelDelta/120));};Et.onkeydown=function(g){if(__f.LateLoading){g=top.getEvent(g,l.event,false);if(g.keyCode==PGUP_KEY_CODE){var Pm=Math.max(__f.CurrentStartRow-__f.rowsCurrentlyDisplayed+1,0);__f.ScrollToRow(Pm,false);__f.scrollbar.SetScrollTop(parseInt(__f.scrollbar.GetScrollHeight())*Pm/__f.totalRows);}else if(g.keyCode==PGDN_KEY_CODE){var Pm=__f.CurrentStartRow+__f.rowsCurrentlyDisplayed-1;if(Pm>=__f.totalRows-__f.rowsCurrentlyDisplayed+1){__f.ScrollToRow(-1,false);__f.scrollbar.SetScrollTop(parseInt(__f.scrollbar.GetScrollHeight())*(__f.totalRows-__f.rowsCurrentlyDisplayed+1));}else{__f.ScrollToRow(Pm,false);__f.scrollbar.SetScrollTop(parseInt(__f.scrollbar.GetScrollHeight())*Pm/__f.totalRows);}}}};}DocBrowser.prototype.allowsDragging=function(){return true;};DocBrowser.prototype.FoldersOpenInFrame=function(){return false;};DocBrowser.prototype.AllowMultilineName=function(){return false;};DocBrowser.prototype.WaitingForControls=FolderBrowser.prototype.WaitingForControls;DocBrowser.prototype.GetUnhighlightedClass=function(){return"DocBrowseTableColor LabelFont";};DocBrowser.prototype.GetDBID=FolderBrowser.prototype.GetDBID;DocBrowser.prototype.getXWinOffset=function(){return this.controls.GetDocBrowserLeftOffset();};DocBrowser.prototype.getYWinOffset=FolderBrowser.prototype.getYWinOffset;DocBrowser.prototype.SetSelectedEntry=function(RVa){this.SelectNoEntries();this.AddSelectedEntry(RVa);};DocBrowser.prototype.EnsureTabbableRow=function(YR){if(this.selectedEntries.length==0){if(this.LateLoading==true){this.ClearExtraTabbableRow();this.CurrentEntryIndex=this.CurrentStartRow;}else{this.CurrentEntryIndex=1;}if(this.EntryCache.length>=1&&this.EntryCache[this.CurrentEntryIndex].myRow.children.length>1){this.EntryCache[this.CurrentEntryIndex].myRow.children[1].tabIndex=0;}}else if(YR&&this.LateLoading){var ni=false;var nS;for(nS=0;nS<this.selectedEntries.length;nS++){var BZ=this.selectedEntries[nS].ArrayIndex;if(this.CurrentStartRow<BZ&&BZ<this.CurrentStartRow+this.rowsCurrentlyDisplayed-1){ni=true;this.CurrentEntryIndex=BZ;break;}}if(!ni){this.ClearExtraTabbableRow();this.CurrentEntryIndex=this.CurrentStartRow;if(this.EntryCache[this.CurrentEntryIndex].myRow.children.length>1){this.EntryCache[this.CurrentEntryIndex].myRow.children[1].tabIndex=0;}}}};DocBrowser.prototype.ClearExtraTabbableRow=function(){if(this.EntryCache[this.CurrentEntryIndex]&&this.EntryCache[this.CurrentEntryIndex].myRow&&!this.EntryCache[this.CurrentEntryIndex].GetIsSelected()){if(this.EntryCache[this.CurrentEntryIndex].myRow.children.length>1){this.EntryCache[this.CurrentEntryIndex].myRow.children[1].tabIndex=-1;}}};DocBrowser.prototype.BaseAddSelectedEntry=FolderBrowser.prototype.AddSelectedEntry;DocBrowser.prototype.AddSelectedEntry=function(RVa){this.ClearExtraTabbableRow();this.BaseAddSelectedEntry(RVa);this.CurrentEntryIndex=RVa.ArrayIndex;};DocBrowser.prototype.BaseSelectNoEntries=FolderBrowser.prototype.SelectNoEntries;DocBrowser.prototype.SelectNoEntries=function(RVa){this.BaseSelectNoEntries(RVa);this.EnsureTabbableRow();};DocBrowser.prototype.GetSelectedEntries=FolderBrowser.prototype.GetSelectedEntries;DocBrowser.prototype.BaseUnSelectEntry=FolderBrowser.prototype.UnSelectEntry;DocBrowser.prototype.UnSelectEntry=function(RVa){this.BaseUnSelectEntry(RVa);this.EnsureTabbableRow(true);};DocBrowser.prototype.GetFocus=FolderBrowser.prototype.GetFocus;DocBrowser.prototype.LoseFocus=FolderBrowser.prototype.LoseFocus;DocBrowser.prototype.AddEntry=FolderBrowser.prototype.AddEntry;DocBrowser.prototype.SetBrowseControls=function(y){this.controls=y;};DocBrowser.prototype.Clear=function(Y74){while(this.myTBody.childNodes.length>0){this.myTBody.removeChild(this.myTBody.childNodes[0]);}if(Y74){if(!this.IDsOfEntriesToSelect)this.SelectNoEntries();if(this.EntryCache&&(this.EntryCache.length>0)){while(this.EntryCache.length>0){var RVa=this.EntryCache.pop();if(RVa){RVa.ReleaseDOMElements();}}}}};DocBrowser.prototype.Initialize=function(){this.Clear(true);this.currentFolder=null;this.CurrentRow=1;this.ScrollDiv.style.left="0px";this.ScrollDiv.style.width="0px";this.ScrollDiv.style.height="0px";this.EntryCache=new Array();this.rowsCurrentlyDisplayed=0;this.CurrentStartRow=0;};DocBrowser.prototype.FreeHeaderData=function(v5,nK){if(v5){for(var ww=v5.childNodes.length-1;ww>(nK?0:-1);ww--){DocBrowser.prototype.FreeHeaderData(v5.childNodes[ww]);if(v5.tagName=="A"){v5.onclick=null;v5.onmouseover=null;v5.onmouseout=null;v5.onkeydown=null;}}if(!nK)v5.parentNode.removeChild(v5);}};DocBrowser.prototype.FreeTBodyData=function(v5){if(v5!=null){for(var ww=v5.childNodes.length-1;ww>-1;ww--){DocBrowser.prototype.FreeTBodyData(v5.childNodes[ww]);if(v5.tagName=="TD"){v5.onkeypress=null;v5.onselectstart=null;}}v5.parentNode.removeChild(v5);}};DocBrowser.prototype.ClearHeader=function(){while(this.myTHead.childNodes[0].childNodes.length>1)this.myTHead.childNodes[0].removeChild(this.myTHead.childNodes[0].childNodes[1]);};DocBrowser.prototype.TableTooBig=function(){return this.DisplayDiv.scrollHeight>this.myWin.document.body.clientHeight;};DocBrowser.prototype.SizeFakeScrollbar=function(){this.ScrollDiv.style.left=this.myWin.document.body.clientWidth-20;this.ScrollDiv.style.width="20px";this.ScrollDiv.style.height=this.myWin.document.body.clientHeight;this.DisplayDiv.style.width=this.myWin.document.body.clientWidth;this.DisplayDiv.style.height=this.myWin.document.body.clientHeight;};DocBrowser.prototype.ScrollHandler=function(FW){var IE;if(FW==0)IE=1;else if(!FW)IE=0;else if(FW==-1)IE=-1;else IE=Math.floor(this.totalRows*FW+1);this.ScrollToRow(IE,true);};DocBrowser.prototype.ScrollToRow=function(IE,S9){if(!this.LateLoading||(!this.Resized&&(!IE||(IE==this.CurrentRow)||(IE==-1&&this.CurrentRow==this.totalRows-this.rowsCurrentlyDisplayed+1))))return;var DMj=this.rowsCurrentlyDisplayed+1;if(this.Resized){this.Resized=false;var km=this.winHeight-this.myTHead.offsetHeight;DMj=Math.ceil(km/this.rowHeight)+1;if(DMj>this.rowsCurrentlyDisplayed){if(this.totalRows-this.CurrentRow+1<DMj)IE=this.totalRows-DMj+1;else IE=this.CurrentRow;}else return;}if(IE==-1){this.DisplayFromBottom=true;this.CurrentRow=this.totalRows-this.rowsCurrentlyDisplayed+1;}else{this.DisplayFromBottom=false;this.CurrentRow=IE;}this.rowsCurrentlyDisplayed=0;for(var ww=this.CurrentRow;ww<this.CurrentRow+DMj&&ww<=this.totalRows;ww++){if(!this.EntryCache[ww]){if(this.currentFolder){this.currentFolder.ShowContents(this,this.controls.dbid,S9,this.ListingHandle,this.CurrentRow,this.maxRowsToDisplay,this.SortColumnID,this.SortDir);}return;}}this.ShowLateLoadedRows(this.CurrentRow);};DocBrowser.prototype.ChangeCheckOut=function(U){for(var ww=1;ww<this.EntryCache.length;ww++){if(this.EntryCache[ww].id==U){this.EntryCache[ww].pLockOwner=0;this.EntryCache[ww].isPlockOwnedByMe=true;this.EntryCache[ww].displayRow.childNodes[0].childNodes[0].src="images/CheckedOutSelf.gif";this.EntryCache[ww].displayRow.childNodes[0].childNodes[0].style.backgroundImage="url("+this.EntryCache[ww].imgsrc+")";}}};DocBrowser.prototype.drawFolderContents=function(G,t_,vy,bf){var lh=false;var RUA=new Array();this.currentFolder=G;this.totalRows=vy;if(this.IDsOfEntriesToSelect){lh=true;this.PendingIDsToSelect=new Array();while(this.IDsOfEntriesToSelect.length>0){this.PendingIDsToSelect.push(this.IDsOfEntriesToSelect.pop());}this.IDsOfEntriesToSelect=null;}if(this.totalRows==0){this.DisplayNoItems(this.myTBody);return;}for(var ww=0;ww<t_.length;ww++){if(!this.EntryCache[ww+bf]){var RVa=t_[ww];this.EntryCache[ww+bf]=RVa;RVa.ArrayIndex=ww+bf;this.drawEntry(RVa,this.myTBody);if(this.PendingIDsToSelect){for(var nS=0;nS<this.PendingIDsToSelect.length;nS++){if(this.PendingIDsToSelect[nS]==RVa.id){RUA.push(RVa);this.PendingIDsToSelect.splice(nS,1);break;}}}}}if(t_.length==vy){this.Clear();this.LateLoading=false;this.DisplayDiv.style.overflowX="visible";this.DisplayDiv.style.overflowY="visible";this.myWin.document.body.style.overflow="auto";for(var ww=1;ww<this.EntryCache.length;ww++){if(this.EntryCache[ww].displayRow)this.myTBody.appendChild(this.EntryCache[ww].displayRow);}this.EnsureTabbableRow();}else{this.DisplayFromBottom=false;this.LateLoading=true;this.DisplayDiv.style.overflowY="hidden";this.DisplayDiv.style.overflowX="auto";this.myWin.document.body.style.overflow="hidden";this.ShowLateLoadedRows(bf);}for(var ww=0;ww<RUA.length;ww++){this.AddSelectedEntry(RUA[ww]);}if(lh&&this.PendingIDsToSelect){while(this.PendingIDsToSelect&&this.PendingIDsToSelect.length>0){var Hj=this.PendingIDsToSelect.pop();var JC1=this.CurrentStartRow+this.rowsCurrentlyDisplayed-1;var tD=top.GetXMLDocument("GetRowNumberForID.asp?handle="+this.ListingHandle+"&startrow="+JC1+"&id="+Hj);var lD=parseInt(tD.documentElement.text);if(lD>0){this.ScrollToRow(lD,false);this.scrollbar.SetScrollTop(this.scrollbar.GetScrollHeight()*(lD/this.totalRows));this.AddSelectedEntry(this.EntryCache[lD]);this.CurrentEntryIndex=lD;}}}while(RUA.length>0){RUA.pop();}if(this.controls){this.controls.SetMultiSelectCount(this.controls.GetSelectedEntries().length);}};DocBrowser.prototype.ShowLateLoadedRows=function(bf){this.Clear();this.SizeFakeScrollbar();this.CurrentStartRow=bf;var iQE=false;for(this.rowsCurrentlyDisplayed=0;this.rowsCurrentlyDisplayed+bf<this.EntryCache.length&&!iQE;this.rowsCurrentlyDisplayed++){if(this.DisplayFromBottom){var Y7i=this.EntryCache.length-(this.rowsCurrentlyDisplayed+1);if(!this.EntryCache[Y7i])iQE=true;else{if(this.myTBody.childNodes.length>0)this.myTBody.insertBefore(this.EntryCache[Y7i].displayRow,this.myTBody.childNodes[0]);else this.myTBody.insertBefore(this.EntryCache[Y7i].displayRow);}}else{var Y7i=bf+this.rowsCurrentlyDisplayed;if(!this.EntryCache[Y7i])iQE=true;else this.myTBody.appendChild(this.EntryCache[Y7i].displayRow);}if(this.EntryCache[Y7i].displayRow.cells.length>1&&!this.EntryCache[Y7i].GetIsSelected()){this.EntryCache[Y7i].displayRow.cells[1].tabIndex=-1;}this.SizeFakeScrollbar();if(this.TableTooBig()&&!iQE){if(this.DisplayFromBottom){this.myTBody.removeChild(this.myTBody.childNodes[0]);this.myTBody.removeChild(this.myTBody.childNodes[0]);this.rowsCurrentlyDisplayed--;}else this.rowsCurrentlyDisplayed++;break;}}this.SizeFakeScrollbar();if(this.rowsCurrentlyDisplayed){var km=this.myTBody.offsetHeight;this.rowHeight=km/this.rowsCurrentlyDisplayed;if(this.rowHeight)this.scrollbar.SetScrollHeight(this.rowHeight*this.totalRows);}this.EnsureTabbableRow(true);};DocBrowser.prototype.RefreshFolderContents=function(Yz){this.EntryCache=new Array();this.SelectNoEntries();this.IDsOfEntriesToSelect=Yz;if(this.currentFolder){var rA=this.currentFolder;this.currentFolder=null;this.controls.ShowFolderContents(rA);}};DocBrowser.prototype.DisplayNoItems=function(LD){for(ww=0;ww<this.myTHead.childNodes[0].childNodes.length;ww++)this.myTHead.childNodes[0].childNodes[ww].innerText="";var IE=LD.ownerDocument.createElement("tr");var ze=LD.ownerDocument.createElement("td");IE.appendChild(LD.ownerDocument.createElement("td"));IE.appendChild(LD.ownerDocument.createElement("td"));ze.width=500;ze.style.align="center";IE.appendChild(ze);ze.appendChild(LD.ownerDocument.createTextNode(STR_NO_ITEMS_TOSHOW));LD.appendChild(IE);};DocBrowser.prototype.ListGoUp=function(DP){if(this.CurrentEntryIndex>1){var lD=this.CurrentEntryIndex-1;if(this.LateLoading==true){if(this.CurrentStartRow>lD||lD>this.CurrentStartRow+this.rowsCurrentlyDisplayed-1){this.ScrollToRow(lD,false);this.scrollbar.SetScrollTop(this.scrollbar.GetScrollHeight()*(lD/this.totalRows));}}if(DP){this.AddSelectedEntry(this.EntryCache[lD]);}else{this.SetSelectedEntry(this.EntryCache[lD]);}}};DocBrowser.prototype.ListGoDown=function(DP){if(this.CurrentEntryIndex<this.totalRows){var lD=this.CurrentEntryIndex+1;if(this.LateLoading==true){if(this.CurrentStartRow>lD||lD>this.CurrentStartRow+this.rowsCurrentlyDisplayed-1){this.ScrollToRow(lD,false);this.scrollbar.SetScrollTop(this.scrollbar.GetScrollHeight()*(lD/this.totalRows));}}if(DP){this.AddSelectedEntry(this.EntryCache[lD]);}else{this.SetSelectedEntry(this.EntryCache[lD]);}}};DocBrowser.prototype.drawEntry=function(RVa,LD){var __f=this;this.AddEntry(RVa);var IE=LD.ownerDocument.createElement("tr");var tS=LD.ownerDocument.createElement("td");tS.align="center";tS.width="32";tS.style.position="relative";tS.id=RVa.id+"docicon";IE.appendChild(tS);var Ttq=LD.ownerDocument.createElement("img");tS.appendChild(Ttq);RVa.SetIcon(Ttq);var ze=LD.ownerDocument.createElement("td");ze.style.position="relative";ze.id=RVa.id+"docdatum";IE.appendChild(ze);RVa.SetNameDatum(ze);RVa.myRow=IE;RVa.displayRow=IE;RVa.UnHighlightNode();ze.tabIndex=-1;ze.onkeydown=function(g){if(!__f.controls.renaming){g=top.getEvent(g,__f.myWin.event,false);if(g.keyCode==UP_ARROW_KEY_CODE){__f.ListGoUp(g.ctrlKey||g.shiftKey);top.cancelEvent(g);}else if(g.keyCode==DOWN_ARROW_KEY_CODE){__f.ListGoDown(g.ctrlKey||g.shiftKey);top.cancelEvent(g);}}};ze.onkeypress=function(g){if(!__f.controls.renaming){g=top.getEvent(g,__f.myWin.event,false);if(g.keyCode==SPACE_BAR_KEY_CODE){top.cancelEvent(g);Ttq.onmousedown();}else if(g.keyCode==ENTER_KEY_CODE){top.cancelEvent(g);__f.controls.OpenTOCEntries();}}};__f.DisplayEntryFields(RVa);};DocBrowser.prototype.DisplayEntryFields=function(RVa){for(var ww=1;ww<RVa.columndata.length;ww++){var xU=RVa.myRow.ownerDocument.createElement("td");var Cj8=xU.ownerDocument.createElement("nobr");xU.appendChild(Cj8);var oQ=RVa.myRow.ownerDocument.createElement("a");oQ.style.cursor="default";oQ.className="TOCEntryNameStyle LabelFont";var e75=RVa.myRow.ownerDocument.createTextNode(RVa.columndata[ww]);oQ.appendChild(e75);Cj8.appendChild(oQ);RVa.myRow.appendChild(xU);}};DocBrowser.prototype.RequestFocus=function(){this.controls.FocusOnDocBrowser();};DocBrowser.prototype.GetFocus=FolderBrowser.prototype.GetFocus;DocBrowser.prototype.ShowContextMenu=function(g,KI){var __f=this;__f.controls.BrowseMenu.HideMenu();var j3=0;var _P=0;if(!KI){j3=top.getOffsetX(g)+top.getFirer(g).getBoundingClientRect().left;_P=top.getOffsetY(g)+top.getFirer(g).getBoundingClientRect().top;}var Wo=new top.ContextMenu(top.document.body,j3+this.getXWinOffset(),_P+this.getYWinOffset(),top,true);var D0=function(){__f.controls.killContextMenu();__f.controls.CopyPasteFunc();};var cP=function(){__f.controls.killContextMenu();__f.controls.LinkPasteFunc();};var AO=function(){__f.controls.killContextMenu();__f.controls.AddSubfolder();};var ml=function(){__f.controls.killContextMenu();__f.controls.ShowCreateDocDialog();};Wo.AddItem(STR_PASTE,D0,__f.controls.IsCopyPasteAllowed());Wo.AddItem(STR_PASTE_AS_SHORTCUT,cP,__f.controls.IsLinkPasteAllowed());var wH=new top.SubMenu(75);wH.AddItem(STR_FOLDER,AO,__f.currentFolder,false);wH.AddItem(STR_DOCUMENT,ml,(__f.currentFolder&&!__f.currentFolder.isRecordSeries),false);Wo.AddSubMenu(STR_NEW,wH,true);if(Wo.optionCells[0]){Wo.optionCells[0].focus();}else{Wo.focus();}__f.controls.killContextMenu=function(){Wo.die();__f.controls.killContextMenu=function(){};};};DocBrowser.prototype.GetReorderEntriesFunc=function(fG){var __f=this;return function(){if(__f.SortColumnID!=fG){__f.SortColumnID=fG;__f.SortDir=top.SORT_DIRECTION_ASC;}else if(__f.SortDir==top.SORT_DIRECTION_ASC)__f.SortDir=top.SORT_DIRECTION_DESC;else __f.SortDir=top.SORT_DIRECTION_ASC;__f.EntryCache=new Array();var DMj=__f.RowsCurrentlyDisplayed;if(!DMj)DMj=__f.maxRowsToDisplay;__f.currentFolder.ShowContents(__f,__f.controls.dbid,true,__f.ListingHandle,__f.CurrentRow,__f.maxRowsToDisplay,__f.SortColumnID,__f.SortDir);};};DocBrowser.prototype.assignHeaderMouseover=SearchResults.prototype.assignHeaderMouseover;DocBrowser.prototype.setColumns=function(_w){if(this.myTHead.childNodes[0].childNodes.length>1){this.FreeHeaderData(this.myTHead.childNodes[0],true);}var B8=new Array();B8[0]=new top.Column(top.STR_NAME,top.COLUMN_TYPE_DISPLAYNAME);for(var ww=0;ww<_w.length;ww++){B8.push(_w[ww]);}for(var ww=0;ww<B8.length;ww++){var RY=this.myTHead.ownerDocument.createElement("td");RY.className="LabelFont HeaderStyle";var WQ=this.myTHead.ownerDocument.createElement("a");WQ.tabIndex=0;WQ.style.cursor="default";WQ.onclick=this.GetReorderEntriesFunc(B8[ww].id);this.assignHeaderMouseover(WQ,RY);top.setKeyPressHandler(WQ,this.myWin);this.myTHead.childNodes[0].appendChild(RY).appendChild(WQ).appendChild(this.myTHead.ownerDocument.createTextNode(B8[ww].Name));RY=null;WQ=null;}};DocBrowser.prototype.SelectEntryFromPrefix=function(wNN){var JC1;if(this.GetSelectedEntries().length>0)JC1=this.GetSelectedEntries()[0].ArrayIndex;else JC1=1;var tD=top.GetXMLDocument("GetRowNumberForName.asp?handle="+this.ListingHandle+"&prefix="+wNN+"&startrow="+JC1);if(tD){var FDN=parseInt(tD.documentElement.text);if(FDN>0){var jm;if(this.LateLoading){this.ScrollToRow(FDN,false);jm=this.EntryCache[FDN];this.scrollbar.SetScrollTop(this.scrollbar.GetScrollHeight()*(FDN/this.totalRows));}else{jm=this.EntryCache[FDN];var jA1=jm.myRow;this.myWin.document.body.scrollTop=(jA1.offsetTop+jA1.offsetHeight+10)-this.myWin.document.body.offsetHeight;}this.SetSelectedEntry(jm);}}};function SearchElementCheckedOut(WO){this.sf=WO;}SearchElementCheckedOut.prototype.Display=SearchElementText.prototype.Display;SearchElementCheckedOut.prototype.Show=SearchElementText.prototype.Show;SearchElementCheckedOut.prototype.Hide=SearchElementText.prototype.Hide;SearchElementCheckedOut.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementCheckedOut.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementCheckedOut.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementCheckedOut.prototype.GetTitleText=function(){return top.STR_CHECKED_OUT_DOCS;};SearchElementCheckedOut.prototype.GetHelpText=function(){return top.STR_HELP_CHECKED_OUT_DOCS;};SearchElementCheckedOut.prototype.CreateInputs=function(){var n4=this;var Ss=this.CriteriaDiv.ownerDocument;n4.OwnerBox=Ss.createElement("input");n4.OwnerBox.type="text";n4.OwnerBox.onkeypress=n4.sf.KeyPressHandler;n4.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_ENTER_CHECK_OUT_OWNER));n4.CriteriaDiv.appendChild(Ss.createElement("br"));n4.CriteriaDiv.appendChild(n4.OwnerBox);};SearchElementCheckedOut.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";if(this.OwnerBox.value.length>0)return"{LF:checkoutuser=\""+top.escapeQuotes(top.Trim(this.OwnerBox.value))+"\"}";return"";};SearchElementCheckedOut.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("CheckoutUserSearch");var ou=c2.ownerDocument.createAttribute("Text");ou.value=this.OwnerBox.value;pM.attributes.setNamedItem(ou);c2.appendChild(pM);};SearchElementCheckedOut.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("CheckoutUserSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.OwnerBox.value=Vk.getAttribute("Text");};SearchElementCheckedOut.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementCheckedOut.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onkeypress=null;}v5.parentNode.removeChild(v5);};SearchElementCheckedOut.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function DateInput(Et,fCi,BG,ic){var Ss=Et.ownerDocument;var aL=this;aL.DateBox=Ss.createElement("input");aL.DateBox.type="text";aL.DateBox.onkeypress=BG;aL.DateBox.style.width="6em";if(top.DATE_FORMAT=="MDY")aL.Cal=new top.calendar2(this.DateBox);else aL.Cal=new top.calendar1(this.DateBox);aL.CalendarLink=Ss.createElement("a");aL.CalendarLink.className="CalendarLink";aL.CalendarLink.onclick=function(){aL.Cal.popup();};Et.appendChild(Ss.createTextNode(fCi));Et.appendChild(aL.DateBox);Et.appendChild(aL.CalendarLink);aL.FromDate=ic;if(aL.FromDate){aL.FromDate.DateBox.onblur=function(){if(aL.DateBox.value.length==0)aL.DateBox.value=aL.FromDate.DateBox.value;};}}DateInput.prototype.GetValue=function(){return this.DateBox.value;};DateInput.prototype.SetValue=function(MYx){this.DateBox.value=MYx;};DateInput.prototype.ReleaseDOMElements=function(){this.DateBox.onblur=null;if(this.CalendarLink)this.CalendarLink.onclick=null;if(this.DateBox)this.DateBox.onkeypress=null;this.DateBox=null;this.Cal=null;};function SearchElementCreateDate(WO){this.sf=WO;}SearchElementCreateDate.prototype.Display=SearchElementText.prototype.Display;SearchElementCreateDate.prototype.Show=SearchElementText.prototype.Show;SearchElementCreateDate.prototype.Hide=SearchElementText.prototype.Hide;SearchElementCreateDate.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementCreateDate.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementCreateDate.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementCreateDate.prototype.GetTitleText=function(){return top.STR_CREATION_DATE;};SearchElementCreateDate.prototype.GetHelpText=function(){return top.STR_HELP_CREATION_DATE;};SearchElementCreateDate.prototype.CreateInputs=function(){var gQ=this;var Ss=this.CriteriaDiv.ownerDocument;gQ.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_FIND_CREATE_BETWEEN));gQ.CriteriaDiv.appendChild(Ss.createElement("br"));var oq=Ss.createElement("table");oq.className="SearchFormElementCriteria";var RP=Ss.createElement("tbody");var Fn=Ss.createElement("tr");var Ko=Ss.createElement("td");Ko.appendChild(Ss.createTextNode(top.STR_FROM));var WG=Ss.createElement("td");this.StartDate=new top.DateInput(WG,"",this.sf.KeyPressHandler);Fn.appendChild(Ko);Fn.appendChild(WG);var iL=Ss.createElement("tr");var pf=Ss.createElement("td");pf.appendChild(Ss.createTextNode(top.STR_TO));var zI=Ss.createElement("td");this.EndDate=new top.DateInput(zI,"",this.sf.KeyPressHandler,this.StartDate);iL.appendChild(pf);iL.appendChild(zI);RP.appendChild(Fn);RP.appendChild(iL);oq.appendChild(RP);gQ.CriteriaDiv.appendChild(oq);};SearchElementCreateDate.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var b7b=top.FormDateQuery("Created",this.StartDate.GetValue(),this.EndDate.GetValue());if(b7b.length>0)return"{LF:"+b7b+"}";else return"";};SearchElementCreateDate.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("CreateDateSearch");var ux=c2.ownerDocument.createAttribute("Start");ux.value=this.StartDate.GetValue();pM.attributes.setNamedItem(ux);var W1=c2.ownerDocument.createAttribute("End");W1.value=this.EndDate.GetValue();pM.attributes.setNamedItem(W1);c2.appendChild(pM);};SearchElementCreateDate.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("CreateDateSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.StartDate.SetValue(Vk.getAttribute("Start"));this.EndDate.SetValue(Vk.getAttribute("End"));};SearchElementCreateDate.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementCreateDate.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;v5.onkeypress=null;}v5.parentNode.removeChild(v5);};SearchElementCreateDate.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);if(this.StartDate){this.StartDate.ReleaseDOMElements();this.StartDate=null;}if(this.EndDate){this.EndDate.ReleaseDOMElements();this.EndDate=null;}};function SearchElementCreator(WO){this.sf=WO;}SearchElementCreator.prototype.Display=SearchElementText.prototype.Display;SearchElementCreator.prototype.Show=SearchElementText.prototype.Show;SearchElementCreator.prototype.Hide=SearchElementText.prototype.Hide;SearchElementCreator.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementCreator.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementCreator.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementCreator.prototype.GetTitleText=function(){return top.STR_CREATED_BY;};SearchElementCreator.prototype.GetHelpText=function(){return top.STR_HELP_CREATOR;};SearchElementCreator.prototype.CreateInputs=function(){var NcO=this;var Ss=this.CriteriaDiv.ownerDocument;NcO.CreatorBox=Ss.createElement("input");NcO.CreatorBox.type="text";NcO.CreatorBox.onkeypress=NcO.sf.KeyPressHandler;NcO.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_ENTER_CREATOR));NcO.CriteriaDiv.appendChild(Ss.createElement("br"));NcO.CriteriaDiv.appendChild(NcO.CreatorBox);};SearchElementCreator.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";if(this.CreatorBox.value.length>0)return"{LF:Creator=\""+top.escapeQuotes(top.Trim(this.CreatorBox.value))+"\"}";return"";};SearchElementCreator.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("CreatorSearch");var ou=c2.ownerDocument.createAttribute("Text");ou.value=this.CreatorBox.value;pM.attributes.setNamedItem(ou);c2.appendChild(pM);};SearchElementCreator.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("CreatorSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.CreatorBox.value=Vk.getAttribute("Text");};SearchElementCreator.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementCreator.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onkeypress=null;}v5.parentNode.removeChild(v5);};SearchElementCreator.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementCutoff(WO){this.sf=WO;}SearchElementCutoff.prototype.Display=SearchElementText.prototype.Display;SearchElementCutoff.prototype.Show=SearchElementText.prototype.Show;SearchElementCutoff.prototype.Hide=SearchElementText.prototype.Hide;SearchElementCutoff.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementCutoff.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementCutoff.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementCutoff.prototype.GetTitleText=function(){return top.STR_CUTOFF;};SearchElementCutoff.prototype.GetHelpText=function(){return top.STR_HELP_CUTOFF};SearchElementCutoff.prototype.CreateInputs=function(){var pP=this;var Ss=this.CriteriaDiv.ownerDocument;pP.AlreadyCutoffButton=Ss.createElement("input");pP.AlreadyCutoffButton.type="radio";pP.AlreadyCutoffButton.name="SearchElementCutoffRadio";pP.AlreadyCutoffButton.onclick=function(){pP.RadioChanged(pP.AlreadyCutoffButton);};pP.AlreadyCutoffButton.id="SearchElementCutoffAlreadyCutoffButton";var LN=Ss.createElement("label");LN.htmlFor="SearchElementCutoffAlreadyCutoffButton";LN.appendChild(Ss.createTextNode(top.STR_ALREADY_CUTOFF));pP.DueForCutoffButton=Ss.createElement("input");pP.DueForCutoffButton.type="radio";pP.DueForCutoffButton.name="SearchElementCutoffRadio";pP.DueForCutoffButton.onclick=function(){pP.RadioChanged(pP.DueForCutoffButton);};pP.DueForCutoffButton.id="SearchElementCutoffDueForCutoffButton";var jYd=Ss.createElement("label");jYd.htmlFor="SearchElementCutoffDueForCutoffButton";jYd.appendChild(Ss.createTextNode(top.STR_DUE_FOR_CUTOFF));pP.CriteriaDiv.appendChild(pP.AlreadyCutoffButton);pP.CriteriaDiv.appendChild(LN);pP.CriteriaDiv.appendChild(Ss.createElement("br"));pP.CriteriaDiv.appendChild(pP.DueForCutoffButton);pP.CriteriaDiv.appendChild(jYd);pP.CriteriaDiv.appendChild(Ss.createElement("br"));pP.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_DATE));pP.DueDate=new top.DateInput(pP.CriteriaDiv,"",pP.sf.KeyPressHandler);pP.RadioChanged(pP.AlreadyCutoffButton);};SearchElementCutoff.prototype.RadioChanged=function(jt5){if(jt5){this.AlreadyCutoffButton.checked=false;this.DueForCutoffButton.checked=false;jt5.checked=true;}this.DueDate.DateBox.disabled=this.AlreadyCutoffButton.checked;this.DueDate.CalendarLink.disabled=this.AlreadyCutoffButton.checked;};SearchElementCutoff.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";if(this.AlreadyCutoffButton.checked)return"{LFRM:ActualCutoffDate=*}";else if(this.DueDate.GetValue().length>0)return"{LFRM:EligibleForCutoff<=\""+this.DueDate.GetValue()+"\"}";else return"";};SearchElementCutoff.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("CutoffSearch");if(this.AlreadyCutoffButton.checked){var AP=pM.ownerDocument.createAttribute("AlreadyCutoff");AP.value="true";pM.attributes.setNamedItem(AP);}else{var Lq=pM.ownerDocument.createAttribute("CutoffDueDate");Lq.value=this.DueDate.GetValue();pM.attributes.setNamedItem(Lq);}c2.appendChild(pM);};SearchElementCutoff.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("CutoffSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);if(Vk.getAttribute("AlreadyCutoff")){this.RadioChanged(this.AlreadyCutoffButton);}if(Vk.getAttribute("CutoffDueDate")){this.RadioChanged(this.DueForCutoffButton);this.DueDate.SetValue(Vk.getAttribute("CutoffDueDate"));}};SearchElementCutoff.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementCutoff.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementCutoff.prototype.ReleaseDOMElements=function(){this.DueDate.ReleaseDOMElements();this.RemoveChildren(this.DisplayDiv);};function SearchElementCutoffInstruction(WO){this.sf=WO;}SearchElementCutoffInstruction.prototype.Display=SearchElementText.prototype.Display;SearchElementCutoffInstruction.prototype.Show=SearchElementText.prototype.Show;SearchElementCutoffInstruction.prototype.Hide=SearchElementText.prototype.Hide;SearchElementCutoffInstruction.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementCutoffInstruction.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementCutoffInstruction.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementCutoffInstruction.prototype.GetTitleText=function(){return top.STR_CUTOFF_INSTRUCTION;};SearchElementCutoffInstruction.prototype.GetHelpText=function(){return top.STR_HELP_CUTOFF_INSTRUCTION;};SearchElementCutoffInstruction.prototype.CreateInputs=function(){var HSx=this;var Ss=this.CriteriaDiv.ownerDocument;HSx.CutoffInstructionSelect=Ss.createElement("select");HSx.CutoffInstructionSelect.size=4;HSx.CutoffInstructionSelect.multiple=true;HSx.CutoffInstructionSelect.style.width="75%";HSx.CutoffInstructionSelect.style.margin="4px";for(var ww=0;ww<HSx.sf.CutoffInstructions.length;++ww){var wUq=Ss.createElement("option");wUq.text=HSx.sf.CutoffInstructions[ww];wUq.value=HSx.sf.CutoffInstructionsIds[ww];HSx.CutoffInstructionSelect.options.add(wUq);}var wUq=Ss.createElement("option");wUq.text="("+STR_NONE+")";wUq.value="0";HSx.CutoffInstructionSelect.options.add(wUq);HSx.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_FIND_ENTRIES_CUTOFF));HSx.CriteriaDiv.appendChild(Ss.createElement("br"));HSx.CriteriaDiv.appendChild(HSx.CutoffInstructionSelect);};SearchElementCutoffInstruction.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="(";var iX9=false;var nU=" | ";for(var ww=0;ww<this.CutoffInstructionSelect.options.length;++ww){if(this.CutoffInstructionSelect.options[ww].selected){HDJ=true;Wo3+="{LFRM:CoffCritId=\""+top.escapeQuotes(this.CutoffInstructionSelect.options[ww].value)+"\"}"+nU;}}if(HDJ){return Wo3.substr(0,Wo3.length-nU.length)+")";}else return"";};SearchElementCutoffInstruction.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("CutoffInstructionSearch");for(var ww=0;ww<this.CutoffInstructionSelect.options.length;++ww){if(this.CutoffInstructionSelect.options[ww].selected){var wUq=pM.ownerDocument.createElement("CutoffInstruction");var pB=wUq.ownerDocument.createAttribute("Name");pB.value=this.CutoffInstructionSelect.options[ww].value;wUq.attributes.setNamedItem(pB);pM.appendChild(wUq);}}c2.appendChild(pM);};SearchElementCutoffInstruction.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("CutoffInstructionSearch");if(lr.length==0){this.Hide();return;}this.Show();for(var Je=0;Je<this.CutoffInstructionSelect.options.length;++Je)this.CutoffInstructionSelect.options[Je].selected=false;var Vk=lr.item(0);var JO=Vk.getElementsByTagName("CutoffInstruction");for(var ww=0;ww<JO.length;++ww){var wUq=JO.item(ww);var Y0=wUq.getAttribute("Name");for(var nS=0;nS<this.CutoffInstructionSelect.options.length;++nS){if(this.CutoffInstructionSelect.options[nS].value==Y0){this.CutoffInstructionSelect.options[nS].selected=true;break;}}}};SearchElementCutoffInstruction.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementCutoffInstruction.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementCutoffInstruction.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementDispositionAuthority(WO){this.sf=WO;}SearchElementDispositionAuthority.prototype.Display=SearchElementText.prototype.Display;SearchElementDispositionAuthority.prototype.Show=SearchElementText.prototype.Show;SearchElementDispositionAuthority.prototype.Hide=SearchElementText.prototype.Hide;SearchElementDispositionAuthority.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementDispositionAuthority.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementDispositionAuthority.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementDispositionAuthority.prototype.GetTitleText=function(){return top.STR_DISPOSITION_AUTHORITY;};SearchElementDispositionAuthority.prototype.GetHelpText=function(){return top.STR_HELP_DISPOSITION_AUTHORITY;};SearchElementDispositionAuthority.prototype.CreateInputs=function(){var Tsi=this;var Ss=this.CriteriaDiv.ownerDocument;Tsi.NoDispAuthorityButton=Ss.createElement("input");Tsi.NoDispAuthorityButton.type="radio";Tsi.NoDispAuthorityButton.name="SearchElementNoDispAuthority";Tsi.NoDispAuthorityButton.onclick=function(){Tsi.RadioChanged(Tsi.NoDispAuthorityButton);};Tsi.NoDispAuthorityButton.id="SearchElementNoDispAuthorityButton";var b0=Ss.createElement("label");b0.htmlFor="SearchElementNoDispAuthorityButton";b0.appendChild(Ss.createTextNode(top.STR_NO_DISPOSITION_AUTH));Tsi.FollowingDispAuthButton=Ss.createElement("input");Tsi.FollowingDispAuthButton.type="radio";Tsi.FollowingDispAuthButton.name="SearchElementFollowingDispAuthRadio";Tsi.FollowingDispAuthButton.onclick=function(){Tsi.RadioChanged(Tsi.FollowingDispAuthButton);};Tsi.FollowingDispAuthButton.id="SearchElementFollowingDispAuthButton";var tT=Ss.createElement("label");tT.htmlFor="SearchElementFollowingDispAuthButton";tT.appendChild(Ss.createTextNode(top.STR_THE_FOLLOWING_DISP));Tsi.AuthorityItem=Ss.createElement("input");Tsi.AuthorityItem.type="text";Tsi.AuthorityItem.style.marginLeft="20px";Tsi.AuthorityItem.disabled=true;Tsi.AuthorityItem.onkeypress=Tsi.sf.KeyPressHandler;Tsi.CriteriaDiv.appendChild(Tsi.NoDispAuthorityButton);Tsi.CriteriaDiv.appendChild(b0);Tsi.CriteriaDiv.appendChild(Ss.createElement("br"));Tsi.CriteriaDiv.appendChild(Tsi.FollowingDispAuthButton);Tsi.CriteriaDiv.appendChild(tT);Tsi.CriteriaDiv.appendChild(Tsi.AuthorityItem);Tsi.RadioChanged(Tsi.NoDispAuthorityButton);};SearchElementDispositionAuthority.prototype.RadioChanged=function(jt5){var Tsi=this;this.NoDispAuthorityButton.checked=false;this.FollowingDispAuthButton.checked=false;jt5.checked=true;if(this.NoDispAuthorityButton.checked!=true){Tsi.AuthorityItem.disabled=false;Tsi.AuthorityItem.select();}else Tsi.AuthorityItem.disabled=true;};SearchElementDispositionAuthority.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";if(this.NoDispAuthorityButton.checked==true)return"{LFRM:DispositionAuthority=\"\"}";else if(this.AuthorityItem.value.length>0)return"{LFRM:DispositionAuthority=\""+top.escapeQuotes(this.AuthorityItem.value)+"\"}";return"";};SearchElementDispositionAuthority.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("DispositionAuthoritySearch");var A_=c2.ownerDocument.createAttribute("Authority");A_.value=this.NoDispAuthorityButton.checked?"":this.AuthorityItem.value;pM.attributes.setNamedItem(A_);c2.appendChild(pM);};SearchElementDispositionAuthority.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("DispositionAuthoritySearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.AuthorityItem.value=Vk.getAttribute("Authority");this.NoDispAuthorityButton.checked=(this.AuthorityItem.value.length==0);this.FollowingDispAuthButton.checked=(this.AuthorityItem.value.length>0);this.AuthorityItem.disabled=(this.AuthorityItem.value.length==0);};SearchElementDispositionAuthority.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementDispositionAuthority.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onkeypress=null;v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementDispositionAuthority.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementDispositionEligibility(WO){this.sf=WO;}SearchElementDispositionEligibility.prototype.Display=SearchElementText.prototype.Display;SearchElementDispositionEligibility.prototype.Show=SearchElementText.prototype.Show;SearchElementDispositionEligibility.prototype.Hide=SearchElementText.prototype.Hide;SearchElementDispositionEligibility.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementDispositionEligibility.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementDispositionEligibility.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementDispositionEligibility.prototype.GetTitleText=function(){return top.STR_DISPOSITION};SearchElementDispositionEligibility.prototype.GetHelpText=function(){return top.STR_HELP_DISPOSITION_ELIGIBILITY;};SearchElementDispositionEligibility.prototype.CreateInputs=function(){var v_=this;var Ss=this.CriteriaDiv.ownerDocument;v_.AccessionBox=Ss.createElement("input");v_.AccessionBox.type="checkbox";v_.AccessionBox.id="SearchElementDispositionTypeAccessionBox";var pb=Ss.createElement("label");v_.AccessionBox.onclick=function(){v_.SetEnabledStatus();};pb.htmlFor="SearchElementDispositionTypeAccessionBox";pb.appendChild(Ss.createTextNode(top.STR_ACCESSION));v_.DestroyBox=Ss.createElement("input");v_.DestroyBox.type="checkbox";v_.DestroyBox.onclick=function(){v_.SetEnabledStatus();};v_.DestroyBox.id="SearchElementDispositionTypeDestroyBox";var En=Ss.createElement("label");En.htmlFor="SearchElementDispositionTypeDestroyBox";En.appendChild(Ss.createTextNode(top.STR_DESTROY));v_.TransferBox=Ss.createElement("input");v_.TransferBox.type="checkbox";v_.TransferBox.onclick=function(){v_.SetEnabledStatus();};v_.TransferBox.id="SearchElementDispositionTypeTransferBox";var Du=Ss.createElement("label");Du.htmlFor="SearchElementDispositionTypeTransferBox";Du.appendChild(Ss.createTextNode(top.STR_TRANSFER));v_.ThatAreBox=Ss.createElement("input");v_.ThatAreBox.type="checkbox";v_.ThatAreBox.id="SearchElementDispositionTypeRecordsThatAreBox";v_.ThatAreBox.onclick=function(){v_.FindRecordsChecked()};var QW=Ss.createElement("label");QW.htmlFor="SearchElementDispositionTypeRecordsThatAreBox";QW.appendChild(Ss.createTextNode(top.STR_FIND_RECORDS_THAT_ARE));v_.CurrentlyEligibleButton=Ss.createElement("input");v_.CurrentlyEligibleButton.type="radio";v_.CurrentlyEligibleButton.name="CurrentlyEligibleRadio";v_.CurrentlyEligibleButton.style.marginLeft="20px";v_.CurrentlyEligibleButton.onclick=function(){v_.RadioChanged(v_.CurrentlyEligibleButton);};v_.CurrentlyEligibleButton.id="SearchElementCurrentlyEligibleButton";var yhP=Ss.createElement("label");yhP.htmlFor="SearchElementCurrentlyEligibleButton";yhP.appendChild(Ss.createTextNode(top.STR_CURRENTLY_ELIGIBLE));v_.EligibleDuringButton=Ss.createElement("input");v_.EligibleDuringButton.type="radio";v_.EligibleDuringButton.style.marginLeft="20px";v_.EligibleDuringButton.name="SearchElementEligibleDuringRadio";v_.EligibleDuringButton.onclick=function(){v_.RadioChanged(v_.EligibleDuringButton);};v_.EligibleDuringButton.id="SearchElementEligibleDuringButton";var hN=Ss.createElement("label");hN.htmlFor="SearchElementEligibleDuringButton";hN.appendChild(Ss.createTextNode(top.STR_ELIGIBLE_DURING));v_.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_SEARCH_FOR_RECORDS));v_.CriteriaDiv.appendChild(Ss.createElement("br"));v_.CriteriaDiv.appendChild(v_.AccessionBox);v_.CriteriaDiv.appendChild(pb);v_.CriteriaDiv.appendChild(Ss.createElement("br"));v_.CriteriaDiv.appendChild(v_.DestroyBox);v_.CriteriaDiv.appendChild(En);v_.CriteriaDiv.appendChild(Ss.createElement("br"));v_.CriteriaDiv.appendChild(v_.TransferBox);v_.CriteriaDiv.appendChild(Du);v_.CriteriaDiv.appendChild(Ss.createElement("br"));v_.CriteriaDiv.appendChild(Ss.createElement("br"));v_.CriteriaDiv.appendChild(v_.ThatAreBox);v_.CriteriaDiv.appendChild(QW);v_.CriteriaDiv.appendChild(Ss.createElement("br"));v_.CriteriaDiv.appendChild(v_.CurrentlyEligibleButton);v_.CriteriaDiv.appendChild(yhP);v_.CriteriaDiv.appendChild(Ss.createElement("br"));v_.CriteriaDiv.appendChild(v_.EligibleDuringButton);v_.CriteriaDiv.appendChild(hN);v_.CriteriaDiv.appendChild(Ss.createElement("br"));v_.rangeTable=Ss.createElement("table");v_.rangeTable.className="SearchFormElementCriteria";var RP=Ss.createElement("tbody");v_.rangeTable.style.marginLeft="40px";var Fn=Ss.createElement("tr");var Ko=Ss.createElement("td");Ko.appendChild(Ss.createTextNode(top.STR_FROM));var WG=Ss.createElement("td");this.StartDate=new top.DateInput(WG,"",this.sf.KeyPressHandler);Fn.appendChild(Ko);Fn.appendChild(WG);var iL=Ss.createElement("tr");var pf=Ss.createElement("td");pf.appendChild(Ss.createTextNode(top.STR_TO));var zI=Ss.createElement("td");this.EndDate=new top.DateInput(zI,"",this.sf.KeyPressHandler,this.StartDate);iL.appendChild(pf);iL.appendChild(zI);RP.appendChild(Fn);RP.appendChild(iL);v_.rangeTable.appendChild(RP);v_.CriteriaDiv.appendChild(v_.rangeTable);v_.RadioChanged(v_.CurrentlyEligibleButton);};SearchElementDispositionEligibility.prototype.FindRecordsChecked=function(){var v_=this;v_.SetEnabledStatus();};SearchElementDispositionEligibility.prototype.RadioChanged=function(jt5){var v_=this;v_.CurrentlyEligibleButton.checked=false;v_.EligibleDuringButton.checked=false;jt5.checked=true;v_.SetEnabledStatus();};SearchElementDispositionEligibility.prototype.SetEnabledStatus=function(){var v_=this;var _l=this.AccessionBox.checked||this.DestroyBox.checked||this.TransferBox.checked;v_.ThatAreBox.disabled=!_l;var Xh=v_.ThatAreBox.checked&&!v_.ThatAreBox.disabled;v_.CurrentlyEligibleButton.disabled=!Xh;v_.EligibleDuringButton.disabled=!Xh;var RyR=Xh&&v_.EligibleDuringButton.checked;v_.StartDate.CalendarLink.disabled=!RyR;v_.StartDate.DateBox.disabled=!RyR;v_.EndDate.CalendarLink.disabled=!RyR;v_.EndDate.DateBox.disabled=!RyR;};SearchElementDispositionEligibility.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var UDJ="";var Md8="";if(this.ThatAreBox.checked&&!this.ThatAreBox.disabled){if(this.EligibleDuringButton.checked){UDJ="LFRM:DispEligibilityAction ";var b7b=top.FormDateQuery("ELIGIBILITYDATE",this.StartDate.GetValue(),this.EndDate.GetValue());if(b7b.length>0)Md8+=","+b7b;if((this.StartDate.GetValue()=="")&&(this.EndDate.GetValue()==""))return"";}else{UDJ="LFRM:ImmediateDispEligibility";}}else{UDJ="LFRM:FinalDispAction";}var T5q=false;var m="";if(this.AccessionBox.checked||this.DestroyBox.checked||this.TransferBox.checked){var X2="";for(var ww=0;ww<3;ww++){if((ww==0)&&this.AccessionBox.checked){if(X2!="")X2+=" | ";X2+="{"+UDJ+"=\"A\""+Md8+"}";}else if((ww==1)&&this.DestroyBox.checked){if(X2!="")X2+=" | ";X2+="{"+UDJ+"=\"D\""+Md8+"}";}else if((ww==2)&&this.TransferBox.checked&&(UDJ!="LFRM:FinalDispAction")){if(X2!="")X2+=" | ";X2+="{"+UDJ+"=\"T\""+Md8+"}";}}if(X2!="")m+="("+X2+")";}else{m+="{LFRM:FinalDispAction=\"N\"}";}return m;};SearchElementDispositionEligibility.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("DispositionEligibilitySearch");if(this.AccessionBox.checked){var yw9=c2.ownerDocument.createAttribute("AccessionBox");yw9.value="true";pM.attributes.setNamedItem(yw9);}if(this.DestroyBox.checked){var mm=c2.ownerDocument.createAttribute("DestroyBox");mm.value="true";pM.attributes.setNamedItem(mm);}if(this.TransferBox.checked){var bXr=c2.ownerDocument.createAttribute("TransferBox");bXr.value="true";pM.attributes.setNamedItem(bXr);}if(this.ThatAreBox.checked){var F_=c2.ownerDocument.createAttribute("ThatAreBox");F_.value="true";pM.attributes.setNamedItem(F_);}if(this.CurrentlyEligibleButton.checked){var n1P=c2.ownerDocument.createAttribute("CurrentlyEligibleButton");n1P.value="true";pM.attributes.setNamedItem(n1P);}if(this.EligibleDuringButton.checked){var ZX=c2.ownerDocument.createAttribute("EligibleDuringButton");ZX.value="true";pM.attributes.setNamedItem(ZX);}var xI=c2.ownerDocument.createAttribute("StartDate");xI.value=this.StartDate.GetValue();;pM.attributes.setNamedItem(xI);var Gg=c2.ownerDocument.createAttribute("EndDate");Gg.value=this.EndDate.GetValue();;pM.attributes.setNamedItem(Gg);c2.appendChild(pM);};SearchElementDispositionEligibility.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("DispositionEligibilitySearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.AccessionBox.checked=false;this.DestroyBox.checked=false;this.TransferBox.checked=false;this.ThatAreBox.checked=false;this.CurrentlyEligibleButton.checked=true;this.StartDate.value="";this.EndDate.value="";this.AccessionBox.checked=Vk.getAttribute("AccessionBox");this.DestroyBox.checked=Vk.getAttribute("DestroyBox");this.TransferBox.checked=Vk.getAttribute("TransferBox");this.ThatAreBox.checked=Vk.getAttribute("ThatAreBox");this.CurrentlyEligibleButton.checked=Vk.getAttribute("CurrentlyEligibleButton");this.EligibleDuringButton.checked=Vk.getAttribute("EligibleDuringButton");this.StartDate.SetValue(Vk.getAttribute("StartDate"));this.EndDate.SetValue(Vk.getAttribute("EndDate"));this.SetEnabledStatus();};SearchElementDispositionEligibility.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementDispositionEligibility.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementDispositionEligibility.prototype.ReleaseDOMElements=function(){this.AccessionBox.onclick=null;this.DestroyBox.onclick=null;this.TransferBox.onclick=null;this.ThatAreBox.onclick=null;this.TransferBox.onclick=null;this.CurrentlyEligibleButton.onclick=null;this.EligibleDuringButton.onclick=null;this.StartDate.ReleaseDOMElements();this.EndDate.ReleaseDOMElements();this.RemoveChildren(this.DisplayDiv);};function SearchElementDispositionType(WO){this.sf=WO;}SearchElementDispositionType.prototype.Display=SearchElementText.prototype.Display;SearchElementDispositionType.prototype.Show=SearchElementText.prototype.Show;SearchElementDispositionType.prototype.Hide=SearchElementText.prototype.Hide;SearchElementDispositionType.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementDispositionType.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementDispositionType.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementDispositionType.prototype.GetTitleText=function(){return top.STR_DISPOSITION_TYPE;};SearchElementDispositionType.prototype.GetHelpText=function(){return top.STR_HELP_DISPOSITION_TYPE;};SearchElementDispositionType.prototype.CreateInputs=function(){var oqE=this;var Ss=this.CriteriaDiv.ownerDocument;oqE.EventBox=Ss.createElement("input");oqE.EventBox.type="checkbox";oqE.EventBox.id="SearchElementDispositionTypeEventBox";var DeT=Ss.createElement("label");DeT.htmlFor="SearchElementDispositionTypeEventBox";DeT.appendChild(Ss.createTextNode(top.STR_EVENT));oqE.TimeBox=Ss.createElement("input");oqE.TimeBox.type="checkbox";oqE.TimeBox.id="SearchElementDispositionTypeTimeBox";var rl=Ss.createElement("label");rl.htmlFor="SearchElementDispositionTypeTimeBox";rl.appendChild(Ss.createTextNode(top.STR_TIME));oqE.TimeEventBox=Ss.createElement("input");oqE.TimeEventBox.type="checkbox";oqE.TimeEventBox.id="SearchElementDispositionTypeTimeEventBox";var D6=Ss.createElement("label");D6.htmlFor="SearchElementDispositionTypeTimeEventBox";D6.appendChild(Ss.createTextNode(top.STR_TIME_EVENT));oqE.NoneAssignedBox=Ss.createElement("input");oqE.NoneAssignedBox.type="checkbox";oqE.NoneAssignedBox.id="SearchElementDispositionTypeNoneAssignedBox";var zG=Ss.createElement("label");zG.htmlFor="SearchElementDispositionTypeNoneAssignedBox";zG.appendChild(Ss.createTextNode(top.STR_NONE_ASSIGNED));oqE.CriteriaDiv.appendChild(oqE.EventBox);oqE.CriteriaDiv.appendChild(DeT);oqE.CriteriaDiv.appendChild(Ss.createElement("br"));oqE.CriteriaDiv.appendChild(oqE.TimeBox);oqE.CriteriaDiv.appendChild(rl);oqE.CriteriaDiv.appendChild(Ss.createElement("br"));oqE.CriteriaDiv.appendChild(oqE.TimeEventBox);oqE.CriteriaDiv.appendChild(D6);oqE.CriteriaDiv.appendChild(Ss.createElement("br"));oqE.CriteriaDiv.appendChild(oqE.NoneAssignedBox);oqE.CriteriaDiv.appendChild(zG);};SearchElementDispositionType.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";if(!this.TimeBox.checked&&!this.EventBox.checked&&!this.TimeEventBox.checked&&!this.NoneAssignedBox.checked){return"";}var Xa=",";var m="{LFRM:RetentionType=\"";if(this.TimeBox.checked)m+="T"+Xa;if(this.EventBox.checked)m+="E"+Xa;if(this.TimeEventBox.checked)m+="N"+Xa;if(this.NoneAssignedBox.checked)m+="NULL"+Xa;return m.substr(0,m.length-Xa.length)+"\"}";};SearchElementDispositionType.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("DispositionTypeSearch");if(this.EventBox.checked){var gU2=c2.ownerDocument.createAttribute("Event");gU2.value="true";pM.attributes.setNamedItem(gU2);}if(this.TimeBox.checked){var X0=c2.ownerDocument.createAttribute("Time");X0.value="true";pM.attributes.setNamedItem(X0);}if(this.TimeEventBox.checked){var cn=c2.ownerDocument.createAttribute("TimeEvent");cn.value="true";pM.attributes.setNamedItem(cn);}c2.appendChild(pM);};SearchElementDispositionType.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("DispositionTypeSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.EventBox.checked=Vk.getAttribute("Event");this.TimeBox.checked=Vk.getAttribute("Time");this.TimeEventBox.checked=Vk.getAttribute("TimeEvent");};SearchElementDispositionType.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementDispositionType.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementDispositionType.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementExtension(WO){this.sf=WO;}SearchElementExtension.prototype.Display=SearchElementText.prototype.Display;SearchElementExtension.prototype.Show=SearchElementText.prototype.Show;SearchElementExtension.prototype.Hide=SearchElementText.prototype.Hide;SearchElementExtension.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementExtension.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementExtension.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementExtension.prototype.GetTitleText=function(){return top.STR_ELECTRONIC_DOCUMENTS;};SearchElementExtension.prototype.GetHelpText=function(){return top.STR_HELP_ELECTRONIC_DOCUMENTS;};SearchElementExtension.prototype.CreateInputs=function(){var Srh=this;var Ss=this.CriteriaDiv.ownerDocument;Srh.NonElectronicButton=Ss.createElement("input");Srh.NonElectronicButton.type="radio";Srh.NonElectronicButton.name="SearchElementExtensionRadio";Srh.NonElectronicButton.onclick=function(){Srh.RadioChanged(Srh.NonElectronicButton);};Srh.NonElectronicButton.id="SearchElementExtensionNonElectronicButton";var s3=Ss.createElement("label");s3.htmlFor="SearchElementExtensionNonElectronicButton";s3.appendChild(Ss.createTextNode(top.STR_FIND_NON_EDOCS));Srh.ElectronicButton=Ss.createElement("input");Srh.ElectronicButton.type="radio";Srh.ElectronicButton.name="SearchElementExtensionRadio";Srh.ElectronicButton.onclick=function(){Srh.RadioChanged(Srh.ElectronicButton);};Srh.ElectronicButton.id="SearchElementExtensionElectronicButton";var zeg=Ss.createElement("label");zeg.htmlFor="SearchElementExtensionElectronicButton";zeg.appendChild(Ss.createTextNode(top.STR_FIND_EDOCS));Srh.ExtensionBox=Ss.createElement("input");Srh.ExtensionBox.type="checkbox";Srh.ExtensionBox.id="SearchElementExtensionExtensionBox";Srh.ExtensionBox.onclick=function(){Srh.RadioChanged();};Srh.ExtensionBox.style.marginLeft="1.5em";var yM=Ss.createElement("label");yM.htmlFor="SearchElementExtensionExtensionBox";yM.appendChild(Ss.createTextNode(top.STR_SEARCH_FOR_EXTENSIONS));Srh.ExtensionSelect=Ss.createElement("select");Srh.ExtensionSelect.size=4;Srh.ExtensionSelect.multiple=true;Srh.ExtensionSelect.style.width="50%";Srh.ExtensionSelect.style.margin="4px";Srh.ExtensionSelect.style.marginLeft="3em";var YGF;for(var ww=0;ww<Srh.sf.Extensions.length;++ww){if(YGF!=Srh.sf.Extensions[ww]){var hb=Ss.createElement("option");hb.value=Srh.sf.Extensions[ww];hb.text=Srh.sf.Extensions[ww];Srh.ExtensionSelect.options.add(hb);YGF=Srh.sf.Extensions[ww];}}Srh.CriteriaDiv.appendChild(Srh.NonElectronicButton);Srh.CriteriaDiv.appendChild(s3);Srh.CriteriaDiv.appendChild(Ss.createElement("br"));Srh.CriteriaDiv.appendChild(Srh.ElectronicButton);Srh.CriteriaDiv.appendChild(zeg);Srh.CriteriaDiv.appendChild(Ss.createElement("br"));Srh.CriteriaDiv.appendChild(Srh.ExtensionBox);Srh.CriteriaDiv.appendChild(yM);Srh.CriteriaDiv.appendChild(Ss.createElement("br"));Srh.CriteriaDiv.appendChild(Srh.ExtensionSelect);Srh.RadioChanged(Srh.NonElectronicButton);};SearchElementExtension.prototype.RadioChanged=function(jt5){if(jt5){this.NonElectronicButton.checked=false;this.ElectronicButton.checked=false;jt5.checked=true;}if(this.NonElectronicButton.checked){this.ExtensionBox.disabled=true;this.ExtensionSelect.disabled=true;}else{this.ExtensionBox.disabled=false;this.ExtensionSelect.disabled=!this.ExtensionBox.checked;}};SearchElementExtension.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";if(this.NonElectronicButton.checked)return"({LF:Name=*,Type=DB} - {LF:Ext=*})";else{var nU=" | ";var m="(";var zJ=false;if(this.ExtensionBox.checked){for(var ww=0;ww<this.ExtensionSelect.options.length;++ww){if(this.ExtensionSelect.options[ww].selected){zJ=true;m+="{LF:ext=\""+this.ExtensionSelect.options[ww].value+"\"}"+nU;}}}if(zJ)return m.substr(0,m.length-nU.length)+")";else return"{LF:Ext=*}";}};SearchElementExtension.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("ExtensionSearch");if(this.NonElectronicButton.checked){var ebD=pM.ownerDocument.createAttribute("NonElectronic");ebD.value="true";pM.attributes.setNamedItem(ebD);}else{if(this.ExtensionBox.checked){var oZD=pM.ownerDocument.createAttribute("Extensions");oZD.value="true";pM.attributes.setNamedItem(oZD);for(var ww=0;ww<this.ExtensionSelect.options.length;++ww){if(this.ExtensionSelect.options[ww].selected){var hb=pM.ownerDocument.createElement("Extension");var ljK=hb.ownerDocument.createAttribute("Value");ljK.value=this.ExtensionSelect.options[ww].value;hb.attributes.setNamedItem(ljK);pM.appendChild(hb);}}}}c2.appendChild(pM);};SearchElementExtension.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("ExtensionSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);if(Vk.getAttribute("NonElectronic")){this.RadioChanged(this.NonElectronicButton);}else{this.RadioChanged(this.ElectronicButton);if(Vk.getAttribute("Extensions")){this.ExtensionBox.checked=true;this.RadioChanged();for(var Je=0;Je<this.ExtensionSelect.options.length;++Je)this.ExtensionSelect.options[Je].selected=false;var iH=Vk.getElementsByTagName("Extension");for(var ww=0;ww<iH.length;++ww){var hb=iH.item(ww);var zj=hb.getAttribute("Value");for(var nS=0;nS<this.ExtensionSelect.options.length;++nS){if(this.ExtensionSelect.options[nS].value==zj){this.ExtensionSelect.options[nS].selected=true;break;}}}}}};SearchElementExtension.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementExtension.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementExtension.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function FieldInput(a5,ty,Ho,Wp,Et,BG,ZQ,XU8,WO,T,GD){var Ss=Et.ownerDocument;this.Name=a5;this.Type=ty;this.DropDownList=Ho;this.QuickPickList=Wp;this.TemplateID=ZQ;this.Index=XU8;this.sf=WO;this.dbid=T;this.win=GD;Et.appendChild(Ss.createTextNode(a5));Et.appendChild(Ss.createElement("br"));if(this.IsDate()){var oq=Ss.createElement("table");oq.className="SearchFormElementCriteria";var RP=Ss.createElement("tbody");var Fn=Ss.createElement("tr");var Ko=Ss.createElement("td");Ko.appendChild(Ss.createTextNode(top.STR_FROM));var WG=Ss.createElement("td");this.StartDate=new top.DateInput(WG,"",this.sf.KeyPressHandler);Fn.appendChild(Ko);Fn.appendChild(WG);var iL=Ss.createElement("tr");var pf=Ss.createElement("td");pf.appendChild(Ss.createTextNode(top.STR_TO));var zI=Ss.createElement("td");this.EndDate=new top.DateInput(zI,"",this.sf.KeyPressHandler,this.StartDate);iL.appendChild(pf);iL.appendChild(zI);RP.appendChild(Fn);RP.appendChild(iL);oq.appendChild(RP);Et.appendChild(oq);}else{if(Ho.length>0){this.Input=Ss.createElement("select");if(this.DropDownList[0]==" ")this.DropDownList[0]="";else if(this.DropDownList[0].length>0)this.DropDownList.splice(0,0,"");this.ShowDropDown();this.Input.value="";var P4=Ss.createElement("a");P4.tabIndex=0;P4.onclick=this.GetQuikPikFunc();top.setKeyPressHandler(P4,GD);var Tz=Ss.createElement("img");Tz.style.height=14;Tz.style.width=19;Tz.style.marginRight="5px";Tz.src="images/editquickpicklistbtn.gif";Tz.alt=top.STR_QUICK_PICK_LIST;Tz.onmouseover=function(){Tz.src="images/editquickpicklistbtn_over.gif";};Tz.onmouseout=function(){Tz.src="images/editquickpicklistbtn.gif";};Et.appendChild(P4).appendChild(Tz);}else{this.Input=Ss.createElement("input");this.Input.type="text";}this.Input.onkeypress=BG;Et.appendChild(this.Input);}Et.appendChild(Ss.createElement("br"));}FieldInput.prototype.IsDate=function(){return this.Type==FIELD_TYPE_DATE||this.Type==FIELD_TYPE_DATETIME;};FieldInput.prototype.GetValue=function(){var m=new Array();if(this.IsDate()){if(this.StartDate.GetValue().length>0||this.EndDate.GetValue().length>0){m.push(this.StartDate.GetValue());m.push(this.EndDate.GetValue());}}else if(this.Input.value.length>0)m.push(this.Input.value);return m;};FieldInput.prototype.SetValue=function(e6D){if(e6D.length>0){if(this.IsDate()){this.StartDate.SetValue(e6D[0]);if(e6D.length>1)this.EndDate.SetValue(e6D[1]);}else this.Input.value=e6D[0];}};FieldInput.prototype.ShowDropDown=function(){var Ss=this.Input.ownerDocument;while(this.Input.options.length>0)this.Input.options.remove(this.Input.options[0]);for(var nS=0;nS<this.QuickPickList.length;++nS){var bM=Ss.createElement("option");bM.value=this.QuickPickList[nS];bM.text=this.QuickPickList[nS];this.Input.options.add(bM);}if(this.QuickPickList.length>0){var Tq=Ss.createElement("option");Tq.value="";Tq.text="------------";this.Input.options.add(Tq);}for(var ww=0;ww<this.DropDownList.length;++ww){var bM=Ss.createElement("option");bM.value=this.DropDownList[ww];bM.text=this.DropDownList[ww];this.Input.options.add(bM);}};FieldInput.prototype.GetQuikPikFunc=function(){var kC=this;return function(){var Np=function(HSd){kC.QuickPickList=HSd;var Sk=kC.GetValue();kC.ShowDropDown();kC.SetValue(Sk);};top.EditQuikPik(kC.win,kC.TemplateID,kC.Index,Np,kC.dbid);};};function SearchElementField(WO){this.sf=WO;this.Fields=new Array();}SearchElementField.prototype.Display=SearchElementText.prototype.Display;SearchElementField.prototype.Show=SearchElementText.prototype.Show;SearchElementField.prototype.Hide=SearchElementText.prototype.Hide;SearchElementField.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementField.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementField.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementField.prototype.GetTitleText=function(){return top.STR_FIELD;};SearchElementField.prototype.GetHelpText=function(){return top.STR_HELP_FIELD;};SearchElementField.prototype.CreateInputs=function(){var kB=this;var Ss=this.CriteriaDiv.ownerDocument;kB.TemplateName=Ss.createElement("select");kB.TemplateName.onchange=function(){kB.ChangedTemplate();};var Ex=Ss.createElement("option");Ex.text=top.STR_NO_TEMPLATE_ASSIGNED;Ex.value="0";kB.TemplateName.options.add(Ex);for(var ww=0;ww<kB.sf.Templates.length;++ww){var ZK=Ss.createElement("option");ZK.text=kB.sf.Templates[ww].getName();ZK.value=kB.sf.Templates[ww].getID();kB.TemplateName.options.add(ZK);}kB.FieldDiv=Ss.createElement("div");kB.FieldDiv.style.marginTop="5px";var RI0=Ss.createElement("div");RI0.appendChild(Ss.createTextNode(top.STR_TEMPLATE));RI0.style.display="block";RI0.style.position="relative";kB.CriteriaDiv.appendChild(RI0);kB.CriteriaDiv.appendChild(kB.TemplateName);kB.CriteriaDiv.appendChild(kB.FieldDiv);};SearchElementField.prototype.ChangedTemplate=function(){this.Fields=new Array();while(this.FieldDiv.childNodes.length>0)this.FieldDiv.removeChild(this.FieldDiv.childNodes[0]);if(this.TemplateName.value=="0")return;var tD=top.GetXMLDocument("TemplateSchema.asp?id="+this.TemplateName.value+"&dbid="+this.sf.dbid);if(tD){var N9=new Array();top.FieldsFromXML(tD,N9);if(N9.length>0){var Tq=this.FieldDiv.ownerDocument.createElement("hr");Tq.margin="3px 2px";this.FieldDiv.appendChild(Tq);}for(var ww=0;ww<N9.length;++ww){var NY=N9[ww];this.Fields.push(new FieldInput(NY.name,NY.type,NY.list,NY.quickPicks,this.FieldDiv,this.sf.KeyPressHandler,this.TemplateName.value,ww,this.sf,this.sf.dbid,this.sf.formWin));}}};SearchElementField.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="";if(this.TemplateName.value=="0"||this.TemplateName.value=="")Wo3="{LF:TemplateID=0}";else{Wo3="{["+this.TemplateName.options[this.TemplateName.selectedIndex].text+"]:";for(var ww=0;ww<this.Fields.length;++ww){var Wr=this.Fields[ww].GetValue();if(Wr.length==1)Wo3+="["+top.escapeQuotes(this.Fields[ww].Name)+"]"+"=\""+top.escapeQuotes(top.Trim(Wr[0]))+"\",";else if(Wr.length==2)Wo3+=top.FormDateQuery("["+top.escapeQuotes(this.Fields[ww].Name)+"]",Wr[0],Wr[1])+",";}Wo3=Wo3.substr(0,Wo3.length-1)+"}";}return Wo3;};SearchElementField.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("FieldSearch");var iDs=c2.ownerDocument.createAttribute("TemplateID");iDs.value=this.TemplateName.value;pM.attributes.setNamedItem(iDs);for(var ww=0;ww<this.Fields.length;++ww){var pg=this.Fields[ww].GetValue();if(pg.length>0){var lV=pM.ownerDocument.createElement("Field");ZLI=lV.ownerDocument.createAttribute("Name");ZLI.value=this.Fields[ww].Name;lV.attributes.setNamedItem(ZLI);for(var nS=0;nS<pg.length;++nS){r4=pM.ownerDocument.createElement("Value");r4.text=pg[nS];lV.appendChild(r4);}pM.appendChild(lV);}}c2.appendChild(pM);};SearchElementField.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("FieldSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.TemplateName.value=Vk.getAttribute("TemplateID");this.ChangedTemplate();var cj=Vk.getElementsByTagName("Field");for(var ww=0;ww<cj.length;++ww){var qY=cj.item(ww);var dj=qY.getAttribute("Name");for(var nS=0;nS<this.Fields.length;++nS){if(this.Fields[nS].Name==dj){var Wr=new Array();var t3=qY.getElementsByTagName("Value");for(var Je=0;Je<t3.length;++Je)Wr.push(t3.item(Je).text);this.Fields[nS].SetValue(Wr);}}}};SearchElementField.prototype.GetTemplateID=function(){if(this.IsHidden())return"0";return this.TemplateName.value;};SearchElementField.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementField.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementField.prototype.ReleaseDOMElements=function(){this.TemplateName.onchange=null;this.RemoveChildren(this.DisplayDiv);};function SearchElementFrozen(WO){this.sf=WO;}SearchElementFrozen.prototype.Display=SearchElementText.prototype.Display;SearchElementFrozen.prototype.Show=SearchElementText.prototype.Show;SearchElementFrozen.prototype.Hide=SearchElementText.prototype.Hide;SearchElementFrozen.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementFrozen.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementFrozen.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementFrozen.prototype.GetTitleText=function(){return top.STR_FROZEN_RECORDS;};SearchElementFrozen.prototype.GetHelpText=function(){return top.STR_HELP_FROZEN;};SearchElementFrozen.prototype.CreateInputs=function(){var kB=this;var Ss=this.CriteriaDiv.ownerDocument;kB.NotFrozenButton=Ss.createElement("input");kB.NotFrozenButton.type="radio";kB.NotFrozenButton.name="SearchElementFrozenRadio";kB.NotFrozenButton.onclick=function(){kB.RadioChanged(kB.NotFrozenButton);};kB.NotFrozenButton.id="SearchElementFrozenNotFrozenButton";var Fh=Ss.createElement("label");Fh.htmlFor="SearchElementFrozenNotFrozenButton";Fh.appendChild(Ss.createTextNode(top.STR_FIND_NOT_FROZEN));kB.FrozenButton=Ss.createElement("input");kB.FrozenButton.type="radio";kB.FrozenButton.name="SearchElementFrozenRadio";kB.FrozenButton.onclick=function(){kB.RadioChanged(kB.FrozenButton);};kB.FrozenButton.id="SearchElementFrozenFrozenButton";var SA=Ss.createElement("label");SA.htmlFor="SearchElementFrozenFrozenButton";SA.appendChild(Ss.createTextNode(top.STR_FIND_FROZEN));kB.ReasonCheckbox=Ss.createElement("input");kB.ReasonCheckbox.type="checkbox";kB.ReasonCheckbox.id="SearchElementFrozenReasonCheckbox";kB.ReasonCheckbox.onclick=function(){kB.RadioChanged();};var Ol=Ss.createElement("label");Ol.htmlFor="SearchElementFrozenReasonCheckbox";Ol.appendChild(Ss.createTextNode(top.STR_SEARCH_FROZEN_REASONS));kB.ReasonInput=Ss.createElement("input");kB.ReasonInput.type="text";kB.ReasonInput.onkeypress=kB.sf.KeyPressHandler;kB.CriteriaDiv.appendChild(kB.NotFrozenButton);kB.CriteriaDiv.appendChild(Fh);kB.CriteriaDiv.appendChild(Ss.createElement("br"));kB.CriteriaDiv.appendChild(kB.FrozenButton);kB.CriteriaDiv.appendChild(SA);kB.CriteriaDiv.appendChild(Ss.createElement("br"));kB.CriteriaDiv.appendChild(kB.ReasonCheckbox);kB.CriteriaDiv.appendChild(Ol);kB.CriteriaDiv.appendChild(Ss.createElement("br"));kB.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_REASON+":"));kB.CriteriaDiv.appendChild(Ss.createElement("br"));kB.CriteriaDiv.appendChild(kB.ReasonInput);kB.RadioChanged(kB.NotFrozenButton);};SearchElementFrozen.prototype.RadioChanged=function(jt5){if(jt5){this.NotFrozenButton.checked=false;this.FrozenButton.checked=false;jt5.checked=true;}if(this.NotFrozenButton.checked){this.ReasonCheckbox.disabled=true;this.ReasonInput.disabled=true;}else{this.ReasonCheckbox.disabled=false;this.ReasonInput.disabled=!this.ReasonCheckbox.checked;}};SearchElementFrozen.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var m="{LFRM:FrozenDocument=";if(this.FrozenButton.checked){m+="Y";if(this.ReasonCheckbox.checked&&this.ReasonInput.value.length>0)m+=",FrozenReason=\""+top.escapeQuotes(this.ReasonInput.value)+"\"";}else m+="N";return m+"}";};SearchElementFrozen.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("FrozenSearch");if(this.NotFrozenButton.checked){var qF=pM.ownerDocument.createAttribute("NotFrozen");qF.value="true";pM.attributes.setNamedItem(qF);}else{var nP=pM.ownerDocument.createAttribute("Frozen");nP.value=true;pM.attributes.setNamedItem(nP);if(this.ReasonCheckbox.checked){var _s=pM.ownerDocument.createAttribute("Reason");_s.value=this.ReasonInput.value;pM.attributes.setNamedItem(_s);}}c2.appendChild(pM);};SearchElementFrozen.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("FrozenSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);if(Vk.getAttribute("NotFrozen")){this.RadioChanged(this.NotFrozenButton);}if(Vk.getAttribute("Frozen")){this.RadioChanged(this.FrozenButton);var onk=Vk.getAttribute("Reason");if(onk){this.ReasonCheckbox.checked=true;this.RadioChanged();this.ReasonInput.value=onk;}}};SearchElementFrozen.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementFrozen.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementFrozen.prototype.ReleaseDOMElements=function(){this.NotFrozenButton.onclick=null;this.FrozenButton.onclick=null;this.ReasonCheckbox.onclick=null;this.ReasonInput.onkeypress=null;this.RemoveChildren(this.DisplayDiv);};function SearchElementHasPages(WO){this.sf=WO;}SearchElementHasPages.prototype.Display=SearchElementText.prototype.Display;SearchElementHasPages.prototype.Show=SearchElementText.prototype.Show;SearchElementHasPages.prototype.Hide=SearchElementText.prototype.Hide;SearchElementHasPages.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementHasPages.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementHasPages.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementHasPages.prototype.GetTitleText=function(){return top.STR_HAS_PAGES;};SearchElementHasPages.prototype.GetHelpText=function(){return top.STR_HELP_HAS_PAGES;};SearchElementHasPages.prototype.CreateInputs=function(){var x5=this;var Ss=this.CriteriaDiv.ownerDocument;x5.NoPagesButton=Ss.createElement("input");x5.NoPagesButton.type="radio";x5.NoPagesButton.name="SearchElementHasPagesRadio";x5.NoPagesButton.onclick=function(){x5.RadioChanged(x5.NoPagesButton);};x5.NoPagesButton.id="SearchElementHasPagesNoPagesButton";var Csg=Ss.createElement("label");Csg.htmlFor="SearchElementHasPagesNoPagesButton";Csg.appendChild(Ss.createTextNode(top.STR_FIND_NO_PAGES));x5.HasPagesButton=Ss.createElement("input");x5.HasPagesButton.type="radio";x5.HasPagesButton.name="SearchElementHasPagesRadio";x5.HasPagesButton.onclick=function(){x5.RadioChanged(x5.HasPagesButton);};x5.HasPagesButton.id="SearchElementHasPagesHasPagesButton";var HA=Ss.createElement("label");HA.htmlFor="SearchElementHasPagesHasPagesButton";HA.appendChild(Ss.createTextNode(top.STR_FIND_HAS_PAGES));x5.OCRBox=Ss.createElement("input");x5.OCRBox.type="radio";x5.OCRBox.name="SearchElementHasPagesRadio";x5.OCRBox.id="SearchElementHasPagesOCRBox";x5.OCRBox.onclick=function(){x5.RadioChanged(x5.OCRBox);};var kd=Ss.createElement("label");kd.htmlFor="SearchElementHasPagesOCRBox";kd.appendChild(Ss.createTextNode(top.STR_SEARCH_PAGES_OCRD1));x5.OCRDropDown=Ss.createElement("select");var iG=Ss.createElement("option");iG.text=top.STR_ALL_SMALL;iG.value="ALL";x5.OCRDropDown.options.add(iG);var gy=Ss.createElement("option");gy.text=top.STR_SOME_SMALL;gy.value="SOME";x5.OCRDropDown.options.add(gy);var xV=Ss.createElement("option");xV.text=top.STR_NO_SMALL;xV.value="NONE";x5.OCRDropDown.options.add(xV);x5.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_FIND_DOCUMENTS_THAT));x5.CriteriaDiv.appendChild(Ss.createElement("br"));x5.CriteriaDiv.appendChild(x5.NoPagesButton);x5.CriteriaDiv.appendChild(Csg);x5.CriteriaDiv.appendChild(Ss.createElement("br"));x5.CriteriaDiv.appendChild(x5.HasPagesButton);x5.CriteriaDiv.appendChild(HA);x5.CriteriaDiv.appendChild(Ss.createElement("br"));x5.CriteriaDiv.appendChild(x5.OCRBox);x5.CriteriaDiv.appendChild(kd);x5.CriteriaDiv.appendChild(x5.OCRDropDown);x5.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_SEARCH_PAGES_OCRD2));x5.RadioChanged(x5.NoPagesButton);};SearchElementHasPages.prototype.RadioChanged=function(jt5){if(jt5){this.NoPagesButton.checked=false;this.HasPagesButton.checked=false;this.OCRBox.checked=false;jt5.checked=true;}this.OCRDropDown.disabled=!this.OCRBox.checked;};SearchElementHasPages.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var m="{LF:AssociatedPages=";m+=(this.HasPagesButton.checked||this.OCRBox.checked)?"Y":"N";m+="}";if(this.OCRBox.checked)m+=" & {LF:OCR=\""+this.OCRDropDown.value+"\"}";return m;};SearchElementHasPages.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("HasPagesSearch");if(this.NoPagesButton.checked){var _XV=pM.ownerDocument.createAttribute("NoPages");_XV.value="true";pM.attributes.setNamedItem(_XV);}else if(this.OCRBox.checked){var oo=pM.ownerDocument.createAttribute("OCR");oo.value=this.OCRDropDown.value;pM.attributes.setNamedItem(oo);}c2.appendChild(pM);};SearchElementHasPages.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("HasPagesSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);if(Vk.getAttribute("NoPages")){this.RadioChanged(this.NoPagesButton);}else{var cTD=Vk.getAttribute("OCR");if(cTD){this.OCRBox.checked=true;this.RadioChanged(this.OCRBox);this.OCRDropDown.value=cTD;}else{this.RadioChanged(this.HasPagesButton);}}};SearchElementHasPages.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementHasPages.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementHasPages.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementLocation(WO){this.sf=WO;}SearchElementLocation.prototype.Display=SearchElementText.prototype.Display;SearchElementLocation.prototype.Show=SearchElementText.prototype.Show;SearchElementLocation.prototype.Hide=SearchElementText.prototype.Hide;SearchElementLocation.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementLocation.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementLocation.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementLocation.prototype.GetTitleText=function(){return top.STR_CURRENT_LOCATION;};SearchElementLocation.prototype.GetHelpText=function(){return top.STR_HELP_CURRENT_LOCATION;};SearchElementLocation.prototype.CreateInputs=function(){var HSx=this;var Ss=this.CriteriaDiv.ownerDocument;HSx.LocationSelect=Ss.createElement("select");HSx.LocationSelect.size=4;HSx.LocationSelect.multiple=true;HSx.LocationSelect.style.width="75%";HSx.LocationSelect.style.margin="4px";for(var ww=0;ww<HSx.sf.Locations.length;++ww){var tpe=Ss.createElement("option");tpe.text=HSx.sf.Locations[ww];tpe.value=HSx.sf.Locations[ww];HSx.LocationSelect.options.add(tpe);}HSx.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_SELECT_LOCATIONS));HSx.CriteriaDiv.appendChild(Ss.createElement("br"));HSx.CriteriaDiv.appendChild(HSx.LocationSelect);};SearchElementLocation.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="(";var cI=false;var nU=" | ";for(var ww=0;ww<this.LocationSelect.options.length;++ww){if(this.LocationSelect.options[ww].selected){cI=true;Wo3+="{LFRM:CurrentLocation=\""+top.escapeQuotes(this.LocationSelect.options[ww].value)+"\"}"+nU;}}if(cI){return Wo3.substr(0,Wo3.length-nU.length)+")";}else return"";};SearchElementLocation.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("LocationSearch");for(var ww=0;ww<this.LocationSelect.options.length;++ww){if(this.LocationSelect.options[ww].selected){var tpe=pM.ownerDocument.createElement("Location");var ZuA=tpe.ownerDocument.createAttribute("Name");ZuA.value=this.LocationSelect.options[ww].value;tpe.attributes.setNamedItem(ZuA);pM.appendChild(tpe);}}c2.appendChild(pM);};SearchElementLocation.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("LocationSearch");if(lr.length==0){this.Hide();return;}this.Show();for(var Je=0;Je<this.LocationSelect.options.length;++Je)this.LocationSelect.options[Je].selected=false;var Vk=lr.item(0);var vT=Vk.getElementsByTagName("Location");for(var ww=0;ww<vT.length;++ww){var tpe=vT.item(ww);var Y0=tpe.getAttribute("Name");for(var nS=0;nS<this.LocationSelect.options.length;++nS){if(this.LocationSelect.options[nS].value==Y0){this.LocationSelect.options[nS].selected=true;break;}}}};SearchElementLocation.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementLocation.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementLocation.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementModifyDate(WO){this.sf=WO;}SearchElementModifyDate.prototype.Display=SearchElementText.prototype.Display;SearchElementModifyDate.prototype.Show=SearchElementText.prototype.Show;SearchElementModifyDate.prototype.Hide=SearchElementText.prototype.Hide;SearchElementModifyDate.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementModifyDate.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementModifyDate.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementModifyDate.prototype.GetTitleText=function(){return top.STR_MODIFICATION_DATE;};SearchElementModifyDate.prototype.GetHelpText=function(){return top.STR_HELP_MODIFICATION_DATE;};SearchElementModifyDate.prototype.CreateInputs=function(){var Zb=this;var Ss=this.CriteriaDiv.ownerDocument;Zb.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_FIND_MODIFY_BETWEEN));Zb.CriteriaDiv.appendChild(Ss.createElement("br"));var oq=Ss.createElement("table");oq.className="SearchFormElementCriteria";var RP=Ss.createElement("tbody");var Fn=Ss.createElement("tr");var Ko=Ss.createElement("td");Ko.appendChild(Ss.createTextNode(top.STR_FROM));var WG=Ss.createElement("td");this.StartDate=new top.DateInput(WG,"",this.sf.KeyPressHandler);Fn.appendChild(Ko);Fn.appendChild(WG);var iL=Ss.createElement("tr");var pf=Ss.createElement("td");pf.appendChild(Ss.createTextNode(top.STR_TO));var zI=Ss.createElement("td");this.EndDate=new top.DateInput(zI,"",this.sf.KeyPressHandler,this.StartDate);iL.appendChild(pf);iL.appendChild(zI);RP.appendChild(Fn);RP.appendChild(iL);oq.appendChild(RP);Zb.CriteriaDiv.appendChild(oq);};SearchElementModifyDate.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var b7b=top.FormDateQuery("Modified",this.StartDate.GetValue(),this.EndDate.GetValue());if(b7b.length>0)return"{LF:"+b7b+"}";else return"";};SearchElementModifyDate.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("ModifyDateSearch");var ux=c2.ownerDocument.createAttribute("Start");ux.value=this.StartDate.GetValue();pM.attributes.setNamedItem(ux);var W1=c2.ownerDocument.createAttribute("End");W1.value=this.EndDate.GetValue();pM.attributes.setNamedItem(W1);c2.appendChild(pM);};SearchElementModifyDate.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("ModifyDateSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.StartDate.SetValue(Vk.getAttribute("Start"));this.EndDate.SetValue(Vk.getAttribute("End"));};SearchElementModifyDate.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementModifyDate.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;v5.onkeypress=null;}v5.parentNode.removeChild(v5);};SearchElementModifyDate.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);if(this.StartDate){this.StartDate.ReleaseDOMElements();this.StartDate=null;}if(this.EndDate){this.EndDate.ReleaseDOMElements();this.EndDate=null;}};function SearchElementName(WO){this.sf=WO;}SearchElementName.prototype.Display=SearchElementText.prototype.Display;SearchElementName.prototype.Show=SearchElementText.prototype.Show;SearchElementName.prototype.Hide=SearchElementText.prototype.Hide;SearchElementName.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementName.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementName.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementName.prototype.GetTitleText=function(){return top.STR_OBJECT_NAME;};SearchElementName.prototype.GetHelpText=function(){return top.STR_HELP_NAME;};SearchElementName.prototype.CreateInputs=function(){var l8=this;var Ss=this.CriteriaDiv.ownerDocument;l8.NameBox=Ss.createElement("input");l8.NameBox.type="text";l8.NameBox.onkeypress=l8.sf.KeyPressHandler;l8.DocumentBox=Ss.createElement("input");l8.DocumentBox.type="checkbox";l8.DocumentBox.id="SearchElementNameDocumentBox";var ZZ=Ss.createElement("label");ZZ.htmlFor="SearchElementNameDocumentBox";ZZ.appendChild(Ss.createTextNode(top.STR_DOCUMENT));l8.FolderBox=Ss.createElement("input");l8.FolderBox.type="checkbox";l8.FolderBox.id="SearchElementNameFolderBox";var sM=Ss.createElement("label");sM.htmlFor="SearchElementNameFolderBox";sM.appendChild(Ss.createTextNode(top.STR_FOLDER));l8.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_ENTER_OBJECT_NAME));l8.CriteriaDiv.appendChild(Ss.createElement("br"));l8.CriteriaDiv.appendChild(l8.NameBox);l8.CriteriaDiv.appendChild(Ss.createElement("br"));l8.CriteriaDiv.appendChild(l8.DocumentBox);l8.CriteriaDiv.appendChild(ZZ);l8.CriteriaDiv.appendChild(l8.FolderBox);l8.CriteriaDiv.appendChild(sM);l8.DocumentBox.checked=true;l8.FolderBox.checked=true;};SearchElementName.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="";if(this.NameBox.value.length>0&&(this.FolderBox.checked||this.DocumentBox.checked)){Wo3="{LF:Name=\""+top.escapeQuotes(this.NameBox.value)+"\",type=";if(this.DocumentBox.checked)Wo3+="DB";if(this.FolderBox.checked)Wo3+="F";Wo3+="}";}return Wo3;};SearchElementName.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("NameSearch");var AE=c2.ownerDocument.createAttribute("Name");AE.value=this.NameBox.value;pM.attributes.setNamedItem(AE);if(this.FolderBox.checked){var tV=c2.ownerDocument.createAttribute("Folder");tV.value="true";pM.attributes.setNamedItem(tV);}if(this.DocumentBox.checked){var cn8=c2.ownerDocument.createAttribute("Document");cn8.value="true";pM.attributes.setNamedItem(cn8);}c2.appendChild(pM);};SearchElementName.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("NameSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.NameBox.value=Vk.getAttribute("Name");this.FolderBox.checked=Vk.getAttribute("Folder");this.DocumentBox.checked=Vk.getAttribute("Document");};SearchElementName.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementName.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementName.prototype.ReleaseDOMElements=function(){if(this.NameBox)this.NameBox.onkeypress=null;this.RemoveChildren(this.DisplayDiv);};function SearchElementPermanent(WO){this.sf=WO;}SearchElementPermanent.prototype.Display=SearchElementText.prototype.Display;SearchElementPermanent.prototype.Show=SearchElementText.prototype.Show;SearchElementPermanent.prototype.Hide=SearchElementText.prototype.Hide;SearchElementPermanent.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementPermanent.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementPermanent.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementPermanent.prototype.GetTitleText=function(){return top.STR_PERMANENT_RECORDS;};SearchElementPermanent.prototype.GetHelpText=function(){return top.STR_HELP_PERMANENT_RECORDS;};SearchElementPermanent.prototype.CreateInputs=function(){var LM=this;var Ss=this.CriteriaDiv.ownerDocument;LM.NonPermanentButton=Ss.createElement("input");LM.NonPermanentButton.type="radio";LM.NonPermanentButton.name="SearchElementPermanentRadio";LM.NonPermanentButton.onclick=function(){LM.RadioChanged(LM.NonPermanentButton);};LM.NonPermanentButton.id="SearchElementPermanentNonPermanentButton";var fRp=Ss.createElement("label");fRp.htmlFor="SearchElementPermanentNonPermanentButton";fRp.appendChild(Ss.createTextNode(top.STR_FIND_NON_PERMANENT));LM.PermanentButton=Ss.createElement("input");LM.PermanentButton.type="radio";LM.PermanentButton.name="SearchElementPermanentRadio";LM.PermanentButton.onclick=function(){LM.RadioChanged(LM.PermanentButton);};LM.PermanentButton.id="SearchElementPermanentPermanentButton";var reM=Ss.createElement("label");reM.htmlFor="SearchElementPermanentPermanentButton";reM.appendChild(Ss.createTextNode(top.STR_FIND_PERMANENT));LM.CriteriaDiv.appendChild(LM.NonPermanentButton);LM.CriteriaDiv.appendChild(fRp);LM.CriteriaDiv.appendChild(Ss.createElement("br"));LM.CriteriaDiv.appendChild(LM.PermanentButton);LM.CriteriaDiv.appendChild(reM);LM.RadioChanged(LM.NonPermanentButton);};SearchElementPermanent.prototype.RadioChanged=function(jt5){this.NonPermanentButton.checked=false;this.PermanentButton.checked=false;jt5.checked=true;};SearchElementPermanent.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var m="{LFRM:PermanentRecord=";m+=this.PermanentButton.checked?"Y":"N";m+="}";return m;};SearchElementPermanent.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("PermanentSearch");if(this.NonPermanentButton.checked){var tP=pM.ownerDocument.createAttribute("NonPermanent");tP.value="true";pM.attributes.setNamedItem(tP);}if(this.PermanentButton.checked){var TUX=pM.ownerDocument.createAttribute("Permanent");TUX.value="true";pM.attributes.setNamedItem(TUX);}c2.appendChild(pM);};SearchElementPermanent.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("PermanentSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.NonPermanentButton.checked=Vk.getAttribute("NonPermanent");this.PermanentButton.checked=Vk.getAttribute("Permanent");};SearchElementPermanent.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementSeries.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementPermanent.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementRelationship(WO){this.sf=WO;}SearchElementRelationship.prototype.Display=SearchElementText.prototype.Display;SearchElementRelationship.prototype.Show=SearchElementText.prototype.Show;SearchElementRelationship.prototype.Hide=SearchElementText.prototype.Hide;SearchElementRelationship.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementRelationship.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementRelationship.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementRelationship.prototype.GetTitleText=function(){return top.STR_RELATIONSHIP;};SearchElementRelationship.prototype.GetHelpText=function(){return top.STR_HELP_RELATIONSHIP;};SearchElementRelationship.prototype.CreateInputs=function(){var g9=this;var Ss=this.CriteriaDiv.ownerDocument;g9.RelationshipSelect=Ss.createElement("select");g9.RelationshipSelect.size=4;g9.RelationshipSelect.multiple=true;g9.RelationshipSelect.style.width="75%";g9.RelationshipSelect.style.margin="4px";for(var ww=0;ww<g9.sf.Relationships.length;++ww){var cAe=Ss.createElement("option");cAe.text=g9.sf.Relationships[ww].Name;cAe.value=g9.sf.Relationships[ww].Type+"="+g9.sf.Relationships[ww].ID;g9.RelationshipSelect.options.add(cAe);}g9.AndButton=Ss.createElement("input");g9.AndButton.type="radio";g9.AndButton.name="SearchElementRelationshipRadio";g9.AndButton.onclick=function(){g9.RadioChanged(g9.AndButton);};g9.AndButton.id="SearchElementRelationshipAndButton";var XG=Ss.createElement("label");XG.htmlFor="SearchElementRelationshipAndButton";XG.appendChild(Ss.createTextNode(top.STR_AND));g9.OrButton=Ss.createElement("input");g9.OrButton.type="radio";g9.OrButton.name="SearchElementRelationshipRadio";g9.OrButton.onclick=function(){g9.RadioChanged(g9.OrButton);};g9.OrButton.id="SearchElementRelationshipOrButton";var Ys=Ss.createElement("label");Ys.htmlFor="SearchElementRelationshipOrButton";Ys.appendChild(Ss.createTextNode(top.STR_OR));g9.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_FIND_DOCUMENTS_RELATIONSHIPS));g9.CriteriaDiv.appendChild(Ss.createElement("br"));g9.CriteriaDiv.appendChild(g9.RelationshipSelect);g9.CriteriaDiv.appendChild(Ss.createElement("br"));g9.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_COMBINE_MULTIPLE));g9.CriteriaDiv.appendChild(Ss.createElement("br"));g9.CriteriaDiv.appendChild(g9.AndButton);g9.CriteriaDiv.appendChild(XG);g9.CriteriaDiv.appendChild(g9.OrButton);g9.CriteriaDiv.appendChild(Ys);g9.RadioChanged(g9.AndButton);};SearchElementRelationship.prototype.RadioChanged=function(jt5){this.AndButton.checked=false;this.OrButton.checked=false;jt5.checked=true;};SearchElementRelationship.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="(";var h9=false;var nU=" | ";var fV=" & ";for(var ww=0;ww<this.RelationshipSelect.options.length;++ww){if(this.RelationshipSelect.options[ww].selected){h9=true;Wo3+="{LF:"+this.RelationshipSelect.options[ww].value+"}";Wo3+=this.OrButton.checked?nU:fV;}}if(h9){if(this.OrButton.checked)return Wo3.substr(0,Wo3.length-nU.length)+")";else return Wo3.substr(0,Wo3.length-fV.length)+")";}else return"";};SearchElementRelationship.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("RelationshipSearch");for(var ww=0;ww<this.RelationshipSelect.options.length;++ww){if(this.RelationshipSelect.options[ww].selected){var cAe=pM.ownerDocument.createElement("Relationship");var Tu=cAe.ownerDocument.createAttribute("Value");Tu.value=this.RelationshipSelect.options[ww].value;cAe.attributes.setNamedItem(Tu);pM.appendChild(cAe);}}if(this.AndButton.checked){var lP=pM.ownerDocument.createAttribute("CombineWithAnd");lP.value="true";pM.attributes.setNamedItem(lP);}if(this.OrButton.checked){var wx=pM.ownerDocument.createAttribute("CombineWithOr");wx.value="true";pM.attributes.setNamedItem(wx);}c2.appendChild(pM);};SearchElementRelationship.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("RelationshipSearch");if(lr.length==0){this.Hide();return;}this.Show();for(var Je=0;Je<this.RelationshipSelect.options.length;++Je)this.RelationshipSelect.options[Je].selected=false;var Vk=lr.item(0);var PZQ=Vk.getElementsByTagName("Relationship");for(var ww=0;ww<PZQ.length;++ww){var cAe=PZQ.item(ww);var zj=cAe.getAttribute("Value");for(var nS=0;nS<this.RelationshipSelect.options.length;++nS){if(this.RelationshipSelect.options[nS].value==zj){this.RelationshipSelect.options[nS].selected=true;break;}}}if(Vk.getAttribute("CombineWithAnd"))this.RadioChanged(this.AndButton);if(Vk.getAttribute("CombineWithOr"))this.RadioChanged(this.OrButton);};SearchElementRelationship.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementRelationship.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementRelationship.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementRetentionSchedule(WO){this.sf=WO;}SearchElementRetentionSchedule.prototype.Display=SearchElementText.prototype.Display;SearchElementRetentionSchedule.prototype.Show=SearchElementText.prototype.Show;SearchElementRetentionSchedule.prototype.Hide=SearchElementText.prototype.Hide;SearchElementRetentionSchedule.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementRetentionSchedule.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementRetentionSchedule.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementRetentionSchedule.prototype.GetTitleText=function(){return top.STR_RETENTION_SCHEDULE;};SearchElementRetentionSchedule.prototype.GetHelpText=function(){return top.STR_HELP_RETENTION_SCHEDULE;};SearchElementRetentionSchedule.prototype.CreateInputs=function(){var HSx=this;var Ss=this.CriteriaDiv.ownerDocument;HSx.RetentionScheduleSelect=Ss.createElement("select");HSx.RetentionScheduleSelect.size=4;HSx.RetentionScheduleSelect.multiple=true;HSx.RetentionScheduleSelect.style.width="75%";HSx.RetentionScheduleSelect.style.margin="4px";for(var ww=0;ww<HSx.sf.RetentionSchedules.length;++ww){var nVW=Ss.createElement("option");nVW.text=HSx.sf.RetentionSchedules[ww];nVW.value=HSx.sf.RetentionSchedulesIds[ww];HSx.RetentionScheduleSelect.options.add(nVW);}var nVW=Ss.createElement("option");nVW.text="("+STR_NONE+")";nVW.value="0";HSx.RetentionScheduleSelect.options.add(nVW);HSx.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_FIND_ENTRIES_RETENTION));HSx.CriteriaDiv.appendChild(Ss.createElement("br"));HSx.CriteriaDiv.appendChild(HSx.RetentionScheduleSelect);};SearchElementRetentionSchedule.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="(";var aM=false;var nU=" | ";for(var ww=0;ww<this.RetentionScheduleSelect.options.length;++ww){if(this.RetentionScheduleSelect.options[ww].selected){YT=true;Wo3+="{LFRM:RetSchedId=\""+top.escapeQuotes(this.RetentionScheduleSelect.options[ww].value)+"\"}"+nU;}}if(YT){return Wo3.substr(0,Wo3.length-nU.length)+")";}else return"";};SearchElementRetentionSchedule.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("RetentionScheduleSearch");for(var ww=0;ww<this.RetentionScheduleSelect.options.length;++ww){if(this.RetentionScheduleSelect.options[ww].selected){var nVW=pM.ownerDocument.createElement("RetentionSchedule");var cQ=nVW.ownerDocument.createAttribute("Name");cQ.value=this.RetentionScheduleSelect.options[ww].value;nVW.attributes.setNamedItem(cQ);pM.appendChild(nVW);}}c2.appendChild(pM);};SearchElementRetentionSchedule.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("RetentionScheduleSearch");if(lr.length==0){this.Hide();return;}this.Show();for(var Je=0;Je<this.RetentionScheduleSelect.options.length;++Je)this.RetentionScheduleSelect.options[Je].selected=false;var Vk=lr.item(0);var xkW=Vk.getElementsByTagName("RetentionSchedule");for(var ww=0;ww<xkW.length;++ww){var nVW=xkW.item(ww);var Y0=nVW.getAttribute("Name");for(var nS=0;nS<this.RetentionScheduleSelect.options.length;++nS){if(this.RetentionScheduleSelect.options[nS].value==Y0){this.RetentionScheduleSelect.options[nS].selected=true;break;}}}};SearchElementRetentionSchedule.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementRetentionSchedule.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementRetentionSchedule.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementSeries(WO){this.sf=WO;}SearchElementSeries.prototype.Display=SearchElementText.prototype.Display;SearchElementSeries.prototype.Show=SearchElementText.prototype.Show;SearchElementSeries.prototype.Hide=SearchElementText.prototype.Hide;SearchElementSeries.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementSeries.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementSeries.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementSeries.prototype.GetTitleText=function(){return top.STR_RECORD_SERIES;};SearchElementSeries.prototype.GetHelpText=function(){return top.STR_HELP_SERIES;};SearchElementSeries.prototype.CreateInputs=function(){var EV=this;var Ss=this.CriteriaDiv.ownerDocument;EV.CodeCheckbox=Ss.createElement("input");EV.CodeCheckbox.type="checkbox";EV.CodeCheckbox.id="SearchElementSeriesCodeBox";EV.CodeCheckbox.onclick=function(){EV.CodeInput.disabled=!EV.CodeCheckbox.checked;};var uM=Ss.createElement("label");uM.htmlFor="SearchElementSeriesCodeBox";uM.appendChild(Ss.createTextNode(top.STR_SEARCH_FOR_CODE));EV.CodeInput=Ss.createElement("input");EV.CodeInput.type="text";EV.CodeInput.onkeypress=EV.sf.KeyPressHandler;EV.DescriptionCheckbox=Ss.createElement("input");EV.DescriptionCheckbox.type="checkbox";EV.DescriptionCheckbox.id="SearchElementSeriesDescriptionBox";EV.DescriptionCheckbox.onclick=function(){EV.DescriptionInput.disabled=!EV.DescriptionCheckbox.checked;};var YgG=Ss.createElement("label");YgG.htmlFor="SearchElementSeriesDescriptionBox";YgG.appendChild(Ss.createTextNode(top.STR_SEARCH_FOR_DESCRIPTION));EV.DescriptionInput=Ss.createElement("input");EV.DescriptionInput.type="text";EV.DescriptionInput.onkeypress=EV.sf.KeyPressHandler;EV.CriteriaDiv.appendChild(EV.CodeCheckbox);EV.CriteriaDiv.appendChild(uM);EV.CriteriaDiv.appendChild(Ss.createElement("br"));EV.CriteriaDiv.appendChild(EV.CodeInput);EV.CriteriaDiv.appendChild(Ss.createElement("br"));EV.CriteriaDiv.appendChild(EV.DescriptionCheckbox);EV.CriteriaDiv.appendChild(YgG);EV.CriteriaDiv.appendChild(Ss.createElement("br"));EV.CriteriaDiv.appendChild(EV.DescriptionInput);EV.CodeCheckbox.fireEvent("onclick");EV.DescriptionCheckbox.fireEvent("onclick");};SearchElementSeries.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="{LFRM:";var z4U=false;var Z7=",";if(this.CodeCheckbox.checked){z4U=true;Wo3+="Code=\""+top.escapeQuotes(this.CodeInput.value)+"\""+Z7;}if(this.DescriptionCheckbox.checked){z4U=true;Wo3+="SeriesDesc=\""+top.escapeQuotes(this.DescriptionInput.value)+"\""+Z7;}if(z4U)return Wo3.substr(0,Wo3.length-Z7.length)+"}";else return"";};SearchElementSeries.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("SeriesSearch");if(this.CodeCheckbox.checked){var x6=c2.ownerDocument.createAttribute("Code");x6.value=this.CodeInput.value;pM.attributes.setNamedItem(x6);}if(this.DescriptionCheckbox.checked){var Cin=c2.ownerDocument.createAttribute("Description");Cin.value=this.DescriptionInput.value;pM.attributes.setNamedItem(Cin);}c2.appendChild(pM);};SearchElementSeries.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("SeriesSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.CodeCheckbox.checked=false;this.DescriptionCheckbox.checked=false;var x6=Vk.getAttribute("Code");if(x6){this.CodeCheckbox.checked=true;this.CodeInput.value=x6;}var Cin=Vk.getAttribute("Description");if(Cin){this.DescriptionCheckbox.checked=true;this.DescriptionInput.value=Cin;}this.CodeCheckbox.fireEvent("onclick");this.DescriptionCheckbox.fireEvent("onclick");};SearchElementSeries.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementSeries.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;v5.onkeypress=null;}v5.parentNode.removeChild(v5);};SearchElementSeries.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementStickyNote(WO){this.sf=WO;}SearchElementStickyNote.prototype.Display=SearchElementText.prototype.Display;SearchElementStickyNote.prototype.Show=SearchElementText.prototype.Show;SearchElementStickyNote.prototype.Hide=SearchElementText.prototype.Hide;SearchElementStickyNote.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementStickyNote.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementStickyNote.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementStickyNote.prototype.GetTitleText=function(){return top.STR_STICKY_NOTE;};SearchElementStickyNote.prototype.GetHelpText=function(){return top.STR_HELP_STICKY_NOTE;};SearchElementStickyNote.prototype.CreateInputs=function(){var Cd=this;var Ss=this.CriteriaDiv.ownerDocument;Cd.StickyBox=Ss.createElement("input");Cd.StickyBox.type="text";Cd.StickyBox.onkeypress=Cd.sf.KeyPressHandler;Cd.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_ENTER_STICKY_TEXT));Cd.CriteriaDiv.appendChild(Ss.createElement("br"));Cd.CriteriaDiv.appendChild(Cd.StickyBox);};SearchElementStickyNote.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";if(this.StickyBox.value.length>0)return"{LF:Sticky=\""+top.escapeQuotes(top.Trim(this.StickyBox.value))+"\"}";return"";};SearchElementStickyNote.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("StickyNoteSearch");var ou=c2.ownerDocument.createAttribute("Text");ou.value=this.StickyBox.value;pM.attributes.setNamedItem(ou);c2.appendChild(pM);};SearchElementStickyNote.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("StickyNoteSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);this.StickyBox.value=Vk.getAttribute("Text");};SearchElementStickyNote.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementStickyNote.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementStickyNote.prototype.ReleaseDOMElements=function(){this.StickyBox.onkeypress=null;this.RemoveChildren(this.DisplayDiv);};function SearchElementTags(WO){this.sf=WO;}SearchElementTags.prototype.Display=SearchElementText.prototype.Display;SearchElementTags.prototype.Show=SearchElementText.prototype.Show;SearchElementTags.prototype.Hide=SearchElementText.prototype.Hide;SearchElementTags.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementTags.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementTags.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementTags.prototype.GetTitleText=function(){return top.STR_TAGS;};SearchElementTags.prototype.GetHelpText=function(){return top.STR_HELP_TAGS;};SearchElementTags.prototype.CreateInputs=function(){var aV=this;var Ss=this.CriteriaDiv.ownerDocument;aV.TagSelect=Ss.createElement("select");aV.TagSelect.size=4;aV.TagSelect.multiple=true;aV.TagSelect.style.width="75%";aV.TagSelect.style.margin="4px";for(var ww=0;ww<aV.sf.TagNames.length;++ww){var ch=Ss.createElement("option");ch.text=aV.sf.TagNames[ww];ch.value=aV.sf.TagNames[ww];aV.TagSelect.options.add(ch);}aV.AndButton=Ss.createElement("input");aV.AndButton.type="radio";aV.AndButton.name="SearchElementTagsRadio";aV.AndButton.onclick=function(){aV.RadioChanged(aV.AndButton);};aV.AndButton.id="SearchElementTagsAndButton";var XG=Ss.createElement("label");XG.htmlFor="SearchElementTagsAndButton";XG.appendChild(Ss.createTextNode(top.STR_AND));aV.OrButton=Ss.createElement("input");aV.OrButton.type="radio";aV.OrButton.name="SearchElementTagsRadio";aV.OrButton.onclick=function(){aV.RadioChanged(aV.OrButton);};aV.OrButton.id="SearchElementTagsOrButton";var Ys=Ss.createElement("label");Ys.htmlFor="SearchElementTagsOrButton";Ys.appendChild(Ss.createTextNode(top.STR_OR));aV.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_FIND_DOCUMENTS_TAGS));aV.CriteriaDiv.appendChild(Ss.createElement("br"));aV.CriteriaDiv.appendChild(aV.TagSelect);aV.CriteriaDiv.appendChild(Ss.createElement("br"));aV.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_COMBINE_MULTIPLE));aV.CriteriaDiv.appendChild(Ss.createElement("br"));aV.CriteriaDiv.appendChild(aV.AndButton);aV.CriteriaDiv.appendChild(XG);aV.CriteriaDiv.appendChild(aV.OrButton);aV.CriteriaDiv.appendChild(Ys);aV.CriteriaDiv.appendChild(Ss.createElement("br"));aV.CriteriaDiv.appendChild(Ss.createElement("br"));aV.CommentsSearchCheck=Ss.createElement("input");aV.CommentsSearchCheck.type="checkbox";aV.CommentsSearchCheck.id="SearchElementTagCommentsCheck";var s1=Ss.createElement("label");s1.htmlFor="SearchElementTagCommentsCheck";s1.appendChild(Ss.createTextNode(top.STR_FIND_TAG_COMMENTS));aV.CommentsBox=Ss.createElement("input");aV.CommentsBox.type="text";aV.CommentsBox.style.marginLeft="20px";aV.CommentsBox.disabled=true;aV.CommentsBox.onkeypress=aV.sf.KeyPressHandler;aV.CommentsSearchCheck.onclick=function(){aV.CommentsBox.disabled=!this.checked;if(this.checked){aV.CommentsBox.select();}};aV.CriteriaDiv.appendChild(aV.CommentsSearchCheck);aV.CriteriaDiv.appendChild(s1);aV.CriteriaDiv.appendChild(Ss.createElement("br"));aV.CriteriaDiv.appendChild(aV.CommentsBox);aV.RadioChanged(aV.AndButton);};SearchElementTags.prototype.RadioChanged=function(jt5){this.AndButton.checked=false;this.OrButton.checked=false;jt5.checked=true;};SearchElementTags.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var Wo3="(";var T40=false;var nU=" | ";var fV=" & ";for(var ww=0;ww<this.TagSelect.options.length;++ww){if(this.TagSelect.options[ww].selected){T40=true;Wo3+="{LF:Tags=\""+top.escapeQuotes(this.TagSelect.options[ww].value)+"\"}";Wo3+=this.OrButton.checked?nU:fV;}}if(T40){if(this.OrButton.checked)Wo3=Wo3.substr(0,Wo3.length-nU.length)+")";else Wo3=Wo3.substr(0,Wo3.length-fV.length)+")";Wo3+=fV;}else Wo3="";if(this.CommentsSearchCheck.checked)Wo3+="{LF:tagcomment=\""+top.escapeQuotes(top.Trim(this.CommentsBox.value))+"\"}";else Wo3=Wo3.substr(0,Wo3.length-fV.length);return Wo3;};SearchElementTags.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("TagSearch");for(var ww=0;ww<this.TagSelect.options.length;++ww){if(this.TagSelect.options[ww].selected){var ch=pM.ownerDocument.createElement("Tag");var ioW=ch.ownerDocument.createAttribute("Name");ioW.value=this.TagSelect.options[ww].value;ch.attributes.setNamedItem(ioW);pM.appendChild(ch);}}if(this.AndButton.checked){var lP=pM.ownerDocument.createAttribute("CombineWithAnd");lP.value="true";pM.attributes.setNamedItem(lP);}if(this.OrButton.checked){var wx=pM.ownerDocument.createAttribute("CombineWithOr");wx.value="true";pM.attributes.setNamedItem(wx);}if(this.CommentsSearchCheck.checked){var z7m=pM.ownerDocument.createElement("Comments");z7m.text=this.CommentsBox.value;pM.appendChild(z7m);}c2.appendChild(pM);};SearchElementTags.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("TagSearch");if(lr.length==0){this.Hide();return;}this.Show();for(var Je=0;Je<this.TagSelect.options.length;++Je)this.TagSelect.options[Je].selected=false;var Vk=lr.item(0);var X1=Vk.getElementsByTagName("Tag");for(var ww=0;ww<X1.length;++ww){var ch=X1.item(ww);var cJQ=ch.getAttribute("Name");for(var nS=0;nS<this.TagSelect.options.length;++nS){if(this.TagSelect.options[nS].value==cJQ){this.TagSelect.options[nS].selected=true;break;}}}if(Vk.getAttribute("CombineWithAnd"))this.RadioChanged(this.AndButton);if(Vk.getAttribute("CombineWithOr"))this.RadioChanged(this.OrButton);var JYs=Vk.getElementsByTagName("Comments");if(JYs.length>0){this.CommentsSearchCheck.checked=true;this.CommentsBox.disabled=false;this.CommentsBox.value=JYs.item(0).text;}};SearchElementTags.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementTags.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;v5.onkeypress=null;}v5.parentNode.removeChild(v5);};SearchElementTags.prototype.ReleaseDOMElements=function(){this.RemoveChildren(this.DisplayDiv);};function SearchElementVital(WO){this.sf=WO;}SearchElementVital.prototype.Display=SearchElementText.prototype.Display;SearchElementVital.prototype.Show=SearchElementText.prototype.Show;SearchElementVital.prototype.Hide=SearchElementText.prototype.Hide;SearchElementVital.prototype.IsHidden=SearchElementText.prototype.IsHidden;SearchElementVital.prototype.CreateHeader=SearchElementText.prototype.CreateHeader;SearchElementVital.prototype.ToggleHelp=SearchElementText.prototype.ToggleHelp;SearchElementVital.prototype.GetTitleText=function(){return top.STR_VITAL_RECORDS;};SearchElementVital.prototype.GetHelpText=function(){return top.STR_HELP_VITAL_RECORDS;};SearchElementVital.prototype.CreateInputs=function(){var rk=this;var Ss=this.CriteriaDiv.ownerDocument;rk.NonVitalButton=Ss.createElement("input");rk.NonVitalButton.type="radio";rk.NonVitalButton.name="SearchElementVitalRadio";rk.NonVitalButton.onclick=function(){rk.RadioChanged(rk.NonVitalButton);};rk.NonVitalButton.id="SearchElementVitalNonVitalButton";var kS=Ss.createElement("label");kS.htmlFor="SearchElementVitalNonVitalButton";kS.appendChild(Ss.createTextNode(top.STR_FIND_NON_VITAL));rk.VitalButton=Ss.createElement("input");rk.VitalButton.type="radio";rk.VitalButton.name="SearchElementVitalRadio";rk.VitalButton.onclick=function(){rk.RadioChanged(rk.VitalButton);};rk.VitalButton.id="SearchElementVitalVitalButton";var S6_=Ss.createElement("label");S6_.htmlFor="SearchElementVitalVitalButton";S6_.appendChild(Ss.createTextNode(top.STR_FIND_VITAL));rk.ReviewDateBox=Ss.createElement("input");rk.ReviewDateBox.type="checkbox";rk.ReviewDateBox.onclick=function(){rk.RadioChanged();};rk.ReviewDateBox.id="SearchElementVitalReviewDateBox";var VM=Ss.createElement("label");VM.htmlFor="SearchElementVitalReviewDateBox";VM.appendChild(Ss.createTextNode(top.STR_SEARCH_BY_REVIEW_DATE));rk.ReviewTypeSelect=Ss.createElement("select");var dik=Ss.createElement("option");dik.value="LASTREVIEWDATE";dik.text=top.STR_HAVE_BEEN;rk.ReviewTypeSelect.options.add(dik);var BZn=Ss.createElement("option");BZn.value="NEXTREVIEWDATE";BZn.text=top.STR_NEED_TO_BE;rk.ReviewTypeSelect.options.add(BZn);rk.ReviewPeriodBox=Ss.createElement("input");rk.ReviewPeriodBox.type="checkbox";rk.ReviewPeriodBox.onclick=function(){rk.RadioChanged();};rk.ReviewPeriodBox.id="SearchElementVitalReviewPeriodBox";var nZp=Ss.createElement("label");nZp.htmlFor="SearchElementVitalReviewPeriodBox";nZp.appendChild(Ss.createTextNode(top.STR_SEARCH_BY_REVIEW_PERIOD));rk.ReviewPeriodSelect=Ss.createElement("select");for(var ww=0;ww<rk.sf.Cycles.length;++ww){var l6=Ss.createElement("option");l6.value=rk.sf.Cycles[ww].Code;l6.text=rk.sf.Cycles[ww].Description;rk.ReviewPeriodSelect.options.add(l6);}rk.CriteriaDiv.appendChild(rk.NonVitalButton);rk.CriteriaDiv.appendChild(kS);rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.CriteriaDiv.appendChild(rk.VitalButton);rk.CriteriaDiv.appendChild(S6_);rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.CriteriaDiv.appendChild(rk.ReviewDateBox);rk.CriteriaDiv.appendChild(VM);rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_FIND_RECORDS_THAT));rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.CriteriaDiv.appendChild(rk.ReviewTypeSelect);rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_REVIEWED_BETWEEN));rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.ReviewDate1=new top.DateInput(rk.CriteriaDiv,"",rk.sf.KeyPressHandler);rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_AND));rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.ReviewDate2=new top.DateInput(rk.CriteriaDiv,"",rk.sf.KeyPressHandler,this.ReviewDate1);rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.CriteriaDiv.appendChild(rk.ReviewPeriodBox);rk.CriteriaDiv.appendChild(nZp);rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.CriteriaDiv.appendChild(Ss.createTextNode(top.STR_PERIOD+":"));rk.CriteriaDiv.appendChild(Ss.createElement("br"));rk.CriteriaDiv.appendChild(rk.ReviewPeriodSelect);rk.RadioChanged(rk.NonVitalButton);};SearchElementVital.prototype.RadioChanged=function(jt5){if(jt5){this.NonVitalButton.checked=false;this.VitalButton.checked=false;jt5.checked=true;}var D9=this.VitalButton.checked;this.ReviewDateBox.disabled=!D9;this.ReviewTypeSelect.disabled=!D9;this.ReviewDate1.DateBox.disabled=!D9;this.ReviewDate1.CalendarLink.disabled=!D9;this.ReviewDate2.DateBox.disabled=!D9;this.ReviewDate2.CalendarLink.disabled=!D9;this.ReviewPeriodBox.disabled=!D9;this.ReviewPeriodSelect.disabled=!D9;if(D9){var hQ=this.ReviewDateBox.checked;this.ReviewTypeSelect.disabled=!hQ;this.ReviewDate1.DateBox.disabled=!hQ;this.ReviewDate1.CalendarLink.disabled=!hQ;this.ReviewDate2.DateBox.disabled=!hQ;this.ReviewDate2.CalendarLink.disabled=!hQ;var le=this.ReviewPeriodBox.checked;this.ReviewPeriodSelect.disabled=!le;}};SearchElementVital.prototype.GetSearchCommand=function(){if(this.IsHidden())return"";var m="{LFRM:";var Xa=",";if(this.NonVitalButton.checked)return m+"VitalRecord=N}";else{if(!this.ReviewDateBox.checked&&!this.ReviewPeriodBox.checked)return m+"VitalRecord=Y}";if(this.ReviewDateBox.checked){var b7b=top.FormDateQuery(this.ReviewTypeSelect.value,this.ReviewDate1.GetValue(),this.ReviewDate2.GetValue());if(b7b.length>0)m+=b7b+Xa;}if(this.ReviewPeriodBox.checked){m+="VitalRecordReviewCycle=\""+top.escapeQuotes(this.ReviewPeriodSelect.value)+"\""+Xa;}return m.substr(0,m.length-Xa.length)+"}";}};SearchElementVital.prototype.AddXMLQuery=function(c2){if(this.IsHidden())return;var pM=c2.ownerDocument.createElement("VitalSearch");if(this.NonVitalButton.checked){var OC=pM.ownerDocument.createAttribute("NonVital");OC.value="true";pM.attributes.setNamedItem(OC);}if(this.VitalButton.checked){var YZ=pM.ownerDocument.createAttribute("Vital");YZ.value="true";pM.attributes.setNamedItem(YZ);if(this.ReviewDateBox.checked){var cZ=pM.ownerDocument.createAttribute("ReviewType");cZ.value=this.ReviewTypeSelect.value;pM.attributes.setNamedItem(cZ);var IZ=pM.ownerDocument.createAttribute("ReviewDate1");IZ.value=this.ReviewDate1.GetValue();pM.attributes.setNamedItem(IZ);var sZ=pM.ownerDocument.createAttribute("ReviewDate2");sZ.value=this.ReviewDate2.GetValue();pM.attributes.setNamedItem(sZ);}if(this.ReviewPeriodBox.checked){var AH=pM.ownerDocument.createAttribute("ReviewPeriod");AH.value=this.ReviewPeriodSelect.value;pM.attributes.setNamedItem(AH);}}c2.appendChild(pM);};SearchElementVital.prototype.ShowSavedQuery=function(G4){var lr=G4.getElementsByTagName("VitalSearch");if(lr.length==0){this.Hide();return;}this.Show();var Vk=lr.item(0);if(Vk.getAttribute("NonVital")){this.RadioChanged(this.NonVitalButton);}if(Vk.getAttribute("Vital")){this.RadioChanged(this.VitalButton);var cZ=Vk.getAttribute("ReviewType");if(cZ){this.ReviewDateBox.checked=true;this.RadioChanged();this.ReviewTypeSelect.value=cZ;this.ReviewDate1.SetValue(Vk.getAttribute("ReviewDate1"));this.ReviewDate2.SetValue(Vk.getAttribute("ReviewDate2"));}var YJ=Vk.getAttribute("ReviewPeriod");if(YJ){this.ReviewPeriodBox.checked=true;this.RadioChanged();this.ReviewPeriodSelect.value=YJ;}}};SearchElementVital.prototype.RemoveChildren=function(v5){for(var ww=v5.childNodes.length-1;ww>-1;ww--){SearchElementVital.prototype.RemoveChildren(v5.childNodes[ww]);}if(v5.tagName=="A"){v5.onclick=null;}else if(v5.tagName=="INPUT"){v5.onclick=null;}v5.parentNode.removeChild(v5);};SearchElementVital.prototype.ReleaseDOMElements=function(){this.VitalButton.onclick=null;this.NonVitalButton.onclick=null;this.ReviewDateBox.onclick=null;this.ReviewPeriodBox.onclick=null;this.ReviewDate1.ReleaseDOMElements();this.ReviewDate2.ReleaseDOMElements();this.RemoveChildren(this.DisplayDiv);};function SearchHighlight(PW,IJ,fb,y_i,Hs){var y8=this;y8.startChar=PW;y8.endChar=IJ;this.controls=fb;y8.myHLClass="SearchHighlight";y8.mySpanNodes=Array();y8.ShowHighlight(null,null,y_i,Hs);}SearchHighlight.prototype.Select=function(){};SearchHighlight.prototype.UpdateNodes=TextHighlight.prototype.UpdateNodes;SearchHighlight.prototype.ShowHighlight=TextHighlight.prototype.ShowHighlight;SearchHighlight.prototype.splitNode=TextHighlight.prototype.splitNode;function Stamp(mo,Af,o4,Jh,F,U,c4,fb,nn,f6Z){var i0=this;i0.controls=fb;i0.id=F;i0.type=ANN_STAMP;var uE=i0.controls.annotDiv.ownerDocument.createElement("div");uE.style.position="absolute";uE.style.left=mo;uE.style.top=Af;uE.style.filter="Chroma(color=white)";uE.style.borderWidth="1px";uE.style.borderColor="red";uE.id=i0.id+"div";i0.myDiv=uE;var wa;if(nn)wa="PublicStampDisplay.asp?id="+nn+"&color="+f6Z+"&scale="+i0.controls.scale+"&dbid="+i0.controls.dbid;else wa="StampDisplay.asp?docid="+U+"&page="+c4+"&stampid="+F+"&scale="+i0.controls.scale+"&dbid="+i0.controls.dbid;uE.style.height=Jh;uE.style.width=o4;var yhM=i0.controls.annotDiv.ownerDocument.createElement("img");uE.appendChild(yhM);i0.controls.annotDiv.appendChild(uE);if(top.ie){i0.myImage=yhM;i0.myImage.src=wa;i0.myImage.alt=STR_STAMP;}else{yhM.src="spacer.gif";uE.style.backgroundImage='url('+wa+')';uE.style.backgroundRepeat="no-repeat";i0.myImage=uE;}if(i0.controls.annotsEditable){i0.SetMoveHandler();}}Stamp.prototype.SetMoveHandler=Highlight.prototype.SetMoveHandler;Stamp.prototype.setDragHandle=Highlight.prototype.setDragHandle;Stamp.prototype.FinishDrawing=Highlight.prototype.FinishDrawing;Stamp.prototype.GenerateRecordFrameSrc=function(){return("RecordStamp.asp?docid="+this.controls.docid+"&page="+this.controls.pagenum+"&annotid="+this.id+"&left="+parseInt(this.myDiv.style.left)+"&top="+parseInt(this.myDiv.style.top)+"&scale="+this.controls.scale+"&dbid="+this.controls.dbid);};Stamp.prototype.SetHLDivNormal=function(){this.myDiv.className="";};Stamp.prototype.SetHLDivSelected=function(){this.myDiv.className="SelectedStamp";};Stamp.prototype.SetResizeCursor=StickyNote.prototype.SetResizeCursor;Stamp.prototype.DragMe=Highlight.prototype.DragMe;Stamp.prototype.Move=Highlight.prototype.Move;Stamp.prototype.Select=Highlight.prototype.Select;Stamp.prototype.RemoveFromDisplay=Highlight.prototype.RemoveFromDisplay;Stamp.prototype.Remove=Highlight.prototype.Remove;Stamp.prototype.GetWidth=Highlight.prototype.GetWidth;Stamp.prototype.GetHeight=Highlight.prototype.GetHeight;Stamp.prototype.ReleaseDOMElements=function(){this.myDiv=null;this.myImage=null};