4624. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 1/2/2018 12:00:23 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

4624.1 Files compared

# Location File Last Modified
1 Tue Jan 2 17:00:23 2018 UTC
2 HTRE_P2.zip\src.zip\output\ihta_admin.zip\ihta.zip whihost.js Fri Mar 24 20:39:28 2017 UTC

4624.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 427
Removed 0 0

4624.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

4624.4 Active regular expressions

No regular expressions were active.

4624.5 Comparison detail

        1   //      We bHelp 5.10 .002
        2   var gsDefa ultTarget= "bsscright ";
        3   var gsBgCo lor="#ffff ff";
        4   var gsBgIm age="";
        5   var goIdxF ont=null;
        6   var goIdxE mptyFont=n ull;
        7   var goIdxH overFont=n ull;
        8   var gsIdxM argin="0pt ";
        9   var gsIdxI ndent="8pt ";
        10   var gsIdxA ctiveBgCol or="#ccccc c";
        11   var gsCK =  null;
        12   var gsBCK  = null;
        13   var gbCR =  false;
        14   var gbBCR  = false;
        15   var gbWhIH ost=true;
        16   var gsPage Dir="ltr"
        17  
        18   function m yEvent()
        19   {
        20           th is.pageX =  0;
        21           th is.pageY =  0;
        22   }
        23   var _event =new myEve nt();
        24  
        25   function s etBackgrou ndcolor(sB gColor)
        26   {
        27           gs BgColor=sB gColor;
        28   }
        29  
        30   function s etBackgrou nd(sBgImag e)
        31   {
        32           gs BgImage=sB gImage;
        33   }
        34  
        35   function s etFont(sTy pe,sFontNa me,sFontSi ze,sFontCo lor,sFontS tyle,sFont Weight,sFo ntDecorati on)
        36   {
        37           va r vFont=ne w whFont(s FontName,s FontSize,s FontColor, sFontStyle ,sFontWeig ht,sFontDe coration);
        38           if (sType=="N ormal")
        39                    goId xFont=vFon t;
        40           el se if(sTyp e=="Empty" )
        41                    goId xEmptyFont =vFont;
        42           el se if(sTyp e=="Hover" )
        43                    goId xHoverFont =vFont;
        44   }
        45  
        46   function s etActiveBg Color(sBgC olor)
        47   {
        48           gs IdxActiveB gColor=sBg Color;
        49   }
        50  
        51   function s etMargin(s Margin)
        52   {
        53           gs IdxMargin= sMargin;
        54   }
        55  
        56   function s etIndent(s Indent)
        57   {
        58           gs IdxIndent= sIndent;
        59   }
        60  
        61   function w riteOneIte m(oHTML,bD own,aDataC on,aCurIdx Set,nLengt h,aPos,nLe vel)
        62   {
        63           va r marginHo riZontal =  (gsPageDi r =="rtl") ?"margin-r ight":"mar gin-left";
        64           va r sHTML="" ;
        65           va r nIdxSet= aCurIdxSet [0];
        66           va r nIIdx=aP os[nIdxSet ];
        67           va r sKOriNam e=getItemN ame(aDataC on,nIdxSet ,nIIdx);
        68           va r sKName=_ textToHtml (sKOriName );
        69  
        70           va r nIdxInde nt=parseIn t(gsIdxInd ent);
        71           va r sTopics= "";
        72           if (nLevel==1 ){
        73                    if(g etItemType (aDataCon, nIdxSet,nI Idx)==1)
        74                    {
        75                             sHTML+ ="<H6><nob r>";
        76                             sHTML+ ="<b>"+sKN ame+"</b>< /nobr></H6 >";
        77                    }
        78                    else {
        79                             for(va r i=0;i<nL ength;i++)
        80                                      sTopics+ =getIdxTop ics(aDataC on,aCurIdx Set[i],aPo s[aCurIdxS et[i]]);
        81                             sHTML+ ="<p style =\"" + mar ginHoriZon tal +":"+g sIdxIndent +"\"><nobr >";
        82                             sHTML+ ="<a alt=\ "" + sKNam e + "\" hr ef=\"javas cript:void (0);\" onf ocus=\"cle arHighLigh t();\" onc lick=\"Pop upMenu_Inv oke(event, '"+excapeS ingleQuota ndSlash(ge tTargetNam e(aDataCon ,nIdxSet,n IIdx))+"'" ;
        83                             if(sTo pics.lengt h>0)
        84                                      sHTML+=s Topics+"); return fal se;\">"+sK Name+"</a> </nobr></p >";
        85                             else
        86                                      sHTML+=" );return f alse;\" st yle=\""+ge tFontStyle (goIdxEmpt yFont)+"\" >"+sKName+ "</a></nob r></p>";
        87                    }
        88           }
        89           el se if(nLev el>=2){
        90                    var  nIndent=nI dxIndent*n Level;
        91                    for( var i=0;i< nLength;i+ +)
        92                             sTopic s+=getIdxT opics(aDat aCon,aCurI dxSet[i],a Pos[aCurId xSet[i]]);
        93                    if ( nLevel==2)
        94                             sHTML+ ="<h6 clas s=\"firsts ub\" style =\"" + mar ginHoriZon tal + ":"+ nIndent+"p t\"><nobr> ";
        95                    else
        96                             sHTML+ ="<h6 styl e=\"" + ma rginHoriZo ntal + ":" +nIndent+" pt\"><nobr >";
        97                    sHTM L+="<a alt =\"" + sKN ame + "\"  href=\"jav ascript:vo id(0);\" o nfocus=\"c learHighLi ght();\" o nclick=\"P opupMenu_I nvoke(even t,'"+excap eSingleQuo tandSlash( getTargetN ame(aDataC on,nIdxSet ,nIIdx))+" '";
        98                    if(s Topics.len gth>0)
        99                             sHTML+ =sTopics+" );return f alse;\">"+ sKName+"</ a></nobr>< /h6>";
        100                    else
        101                             sHTML+ =");return  false;\"  style=\""+ getFontSty le(goIdxEm ptyFont)+" \">"+sKNam e+"</a></n obr></h6>" ;
        102           }
        103           oH TML.addHTM L(sHTML,nL ength,bDow n,(nLevel= =1),sKOriN ame);
        104   }
        105  
        106   function g etTargetNa me(aDataCo n,nIdxSet, nIIdx)
        107   {
        108           if (nIdxSet<a DataCon.le ngth&&aDat aCon[nIdxS et].aKs.le ngth>nIIdx )
        109                    if(a DataCon[nI dxSet].aKs [nIIdx].sT arget)
        110                             return  aDataCon[ nIdxSet].a Ks[nIIdx]. sTarget;
        111           re turn gsDef aultTarget ;
        112   }
        113  
        114   function m ergeItems( oHTML,bDow n,aDataCon ,aCurIdxSe t,nLength, aPos,nLeve l)
        115   {
        116           va r oLocalHT ML=new ind exHTMLPart ();
        117           wr iteOneItem (oLocalHTM L,bDown,aD ataCon,aCu rIdxSet,nL ength,aPos ,nLevel);
        118           
        119           va r aLocalPo s=new Arra y();
        120           va r aMaxPos= new Array( );
        121           fo r(var i=0; i<aPos.len gth;i++)
        122           {
        123                    aLoc alPos[i]=a Pos[i];
        124                    aMax Pos[i]=-1;
        125           }
        126           
        127           fo r(i=0;i<nL ength;i++)
        128           {
        129                    var  nNKOff=get NKOff(aDat aCon,aCurI dxSet[i],a LocalPos[a CurIdxSet[ i]]);
        130                    aLoc alPos[aCur IdxSet[i]] ++;
        131                    if(n NKOff>0)
        132                             aMaxPo s[aCurIdxS et[i]]=aLo calPos[aCu rIdxSet[i] ]+nNKOff;
        133           }
        134           va r oSubHTML =new index HTMLPart() ;
        135           wr iteItems(o SubHTML,aD ataCon,aLo calPos,nul l,aMaxPos, true,nLeve l+1);
        136           oL ocalHTML.a ddSubHTML( oSubHTML,t rue);
        137           oH TML.append HTML(oLoca lHTML,bDow n);
        138   }
        139  
        140   function a djustPosit ion(bDown, aDataCon,a CurIdxSet, nLength,aP os)
        141   {
        142           if (bDown)
        143           {
        144                    for( var i=0;i< nLength;i+ +)
        145                    {
        146                             var nN KOff=getNK Off(aDataC on,aCurIdx Set[i],aPo s[aCurIdxS et[i]]);
        147                             aPos[a CurIdxSet[ i]]+=(1+nN KOff);
        148                    }
        149           }
        150           el se{
        151                    for( var i=0;i< nLength;i+ +)
        152                    {
        153                             var nP KOff=getPK Off(aDataC on,aCurIdx Set[i],aPo s[aCurIdxS et[i]]);
        154                             aPos[a CurIdxSet[ i]]-=(1+nP KOff);
        155                    }
        156           }
        157   }
        158  
        159   function g etItemName (aDataCon, nIdxSet,nI Idx)
        160   {
        161           if (nIdxSet<a DataCon.le ngth&&aDat aCon[nIdxS et].aKs.le ngth>nIIdx )
        162                    retu rn aDataCo n[nIdxSet] .aKs[nIIdx ].sName;
        163           el se
        164                    retu rn null;
        165   }
        166  
        167   function g etItemType (aDataCon, nIdxSet,nI Idx)
        168   {
        169           if (nIdxSet<a DataCon.le ngth&&aDat aCon[nIdxS et].aKs.le ngth>nIIdx )
        170                    retu rn aDataCo n[nIdxSet] .aKs[nIIdx ].nType;
        171           el se
        172                    retu rn 0;
        173   }
        174  
        175   function g etNKOff(aD ataCon,nId xSet,nIIdx )
        176   {
        177           if (nIdxSet<a DataCon.le ngth&&aDat aCon[nIdxS et].aKs.le ngth>nIIdx )
        178                    retu rn aDataCo n[nIdxSet] .aKs[nIIdx ].nNKOff;
        179           el se
        180                    retu rn null;
        181   }
        182  
        183   function g etPKOff(aD ataCon,nId xSet,nIIdx )
        184   {
        185           if (nIdxSet<a DataCon.le ngth&&aDat aCon[nIdxS et].aKs.le ngth>nIIdx )
        186                    retu rn aDataCo n[nIdxSet] .aKs[nIIdx ].nPKOff;
        187           el se
        188                    retu rn null;
        189   }
        190  
        191   function w indow_OnLo ad()
        192   {
        193           if (gsBgImage &&gsBgImag e.length>0 )
        194           {
        195                    docu ment.body. background =gsBgImage ;
        196           }
        197           if (gsBgColor &&gsBgColo r.length>0 )
        198           {
        199                    docu ment.body. bgColor=gs BgColor;
        200           }
        201           do cument.bod y.insertAd jacentHTML ("beforeEn d",writeLo adingDiv() );
        202           lo adIdx();
        203           // commenting  this out  as it is c reating pr oblem in I E10 and se ems redund ant
        204           /* var oMsg=n ew whMessa ge(WH_MSG_ SHOWIDX,nu ll,null)
        205           no tify(oMsg) ;*/
        206   }
        207  
        208   function o nGetProjIn fo(oMsg) {
        209       if (oM sg && oMsg .oParam) {
        210           gb Ready = tr ue;
        211           va r oProj =  oMsg.oPara m;
        212           va r aProj =  oProj.aPro j;
        213           gb XML = oPro j.bXML;
        214           if  (aProj.le ngth > 0)  {
        215                var sLan gId = aPro j[0].sLang Id;
        216                for (var  i = 0; i  < aProj.le ngth; i++)  {
        217                    if ( aProj[i].s Idx && aPr oj[i].sLan gId == sLa ngId) {
        218                         addProjInf o(aProj[i] .sPPath, a Proj[i].sD Path, aPro j[i].sIdx) ;
        219                    }
        220                }
        221           }
        222           wr iteDataIFr ame();
        223           en Evt();
        224       }
        225   }
        226  
        227   function l oadIdx()
        228   {
        229           if (!gbReady)
        230           {
        231                var oRes Msg = new  whMessage( WH_MSG_GET PROJINFO,  null, null );
        232                request( oResMsg, o nGetProjIn fo);
        233           }
        234   }
        235  
        236   function g etIdxTopic s(aDataCon ,nIdxSet,n IIdx)
        237   {
        238           va r sTopics= "";
        239           if (nIdxSet<a DataCon.le ngth&&aDat aCon[nIdxS et].aKs.le ngth>nIIdx )
        240           {
        241                    if(a DataCon[nI dxSet].aKs [nIIdx].aT opics)
        242                    {
        243                             var nL en=aDataCo n[nIdxSet] .aKs[nIIdx ].aTopics. length;
        244                             var nP roj=aDataC on[nIdxSet ].nProjId;
        245                             var sP ath=gaData [nProj].sP Path;
        246                             for(va r i=0;i<nL en;i++)
        247                             {
        248                                      var sURL =aDataCon[ nIdxSet].a Ks[nIIdx]. aTopics[i] .sURL;
        249                                      var sFul lPath=_get FullPath(s Path,sURL) ;
        250                                      sTopics+ =",'"+exca peSingleQu otandSlash (_textToHt ml(aDataCo n[nIdxSet] .aKs[nIIdx ].aTopics[ i].sName)) +"','"+exc apeSingleQ uotandSlas h(_textToH tml_nonbsp (sFullPath ))+"'";
        251                             }
        252                    }
        253           }
        254           re turn sTopi cs;          
        255   }
        256  
        257   function f indCKInDom ()
        258   {
        259           if (gsCK!=nul l)
        260           {
        261                    var  sK=gsCK;
        262                    var  oP=getElem entsByTag( document," P");
        263                    if(! oP) return  false;
        264                    var  len=oP.len gth;
        265                    var  nB=0;
        266                    var  nE=len-1;
        267                    var  nM=0;
        268                    var  sItem="";
        269                    var  bF=false;
        270                    whil e(nB<nE){
        271                             nM=(nB +nE+1)>>1;
        272                             sItem= getInnerTe xt(oP[nM]) ;
        273                             
        274                             if(com pare(sItem ,sK)==0)
        275                             {
        276                                      bF=true;
        277                                      break;
        278                             }
        279                             else i f(compare( sItem,sK)> 0)
        280                                      nE=nM-1;
        281                             else i f(compare( sItem,sK)< 0)
        282                                      nB=nM;
        283                    }
        284                    if(! bF)
        285                    {
        286                             if(nB= =nE) nM=nB ;
        287                    
        288                             if(nM+ 1<len)
        289                             {
        290                                      sItem=ge tInnerText (oP[nM+1]) ;
        291                                      if(compa re(sItem,s K)<=0) nM+ +;
        292                             }                         
        293                             if(nM+ 1<len)
        294                             {
        295                                      sItem=ge tInnerText (oP[nM+1]) ;
        296                                      if(compa re(sItem.s ubstring(0 ,sK.length ),sK)==0)  nM++;
        297                             }                         
        298                    }
        299           
        300                    var  oMatch=oP[ nM];
        301                    if(o Match)
        302                    {
        303                             window .scrollTo( 0,oMatch.o ffsetTop);
        304                             var te mpColl=get ElementsBy Tag(oMatch ,"A");
        305                             if(tem pColl&&tem pColl.leng th>0){
        306                                      var nbTa g=getEleme ntsByTag(o Match,"NOB R");
        307                                      if(nbTag &&nbTag.le ngth>0)
        308                                               HighLightE lement(nbT ag[0], gsI dxActiveBg Color, "tr ansparent" );
        309                                      if (gbCR )
        310                                      {
        311                                               if (gbIE4)
        312                                                       te mpColl(0). click();
        313                                               else
        314                                               {
        315                                                       va r strComma nd = tempC oll[0].get Attribute( "onClick") ;
        316                                                       va r nstrComm and = strC ommand.ind exOf(";");
        317                                                       st rCommand =  strComman d.substrin g(0, nstrC ommand);
        318                                                       st rCommand =  strComman d.replace( "event", " _event");
        319                                                       wi ndow._even t.pageX =  oMatch.off setLeft ;
        320                                                       wi ndow._even t.pageY =  oMatch.off setTop + 2 0;
        321                                                       wi ndow.setTi meout(strC ommand, 10 0);
        322                                               }
        323                                      }
        324                             }
        325                    }
        326                    gsCK =gsBCK;
        327                    gbCR =gbBCR;
        328                    if(g sBCK!=null )
        329                    {
        330                             gsBCK= null;
        331                             gbBCR= false;
        332                             findCK ();
        333                             return  false;
        334                    }
        335                    
        336           }
        337           re turn true;
        338   }
        339  
        340   function c learHighLi ght()
        341   {
        342           re setHighLig ht(gsBgCol or);
        343   }
        344  
        345   function I ndexWriteC lassStyle( )
        346   {
        347           va r sStyle=" ";
        348           sS tyle+="<ST YLE TYPE=' text/css'> ";
        349           if  (gsBgImag e)
        350                    sSty le+="body  {border-to p:"+gsBgCo lor+" 1px  solid;}\n" ;
        351           el se
        352                    sSty le+="body  {border-to p:black 1p x solid;}\ n";
        353           if (gbIE4&&gb Mac&&!gbIE 5)
        354           {
        355                    var  nMargin=pa rseInt(gsI dxMargin);
        356                    nMar gin-=10;
        357                    sSty le+="P {"+ getFontSty le(goIdxFo nt)+"margi n-top:"+gs IdxMargin+ ";margin-b ottom:"+gs IdxMargin+ ";}\n";
        358                    sSty le+="H6 {" +getFontSt yle(goIdxF ont)+"marg in-top:"+g sIdxMargin +";margin- bottom:"+g sIdxMargin +";}\n";
        359                    sSty le+="H6.fi rstsub {"+ getFontSty le(goIdxFo nt)+"margi n-top:"+nM argin+"pt; margin-bot tom:"+gsId xMargin+"; }\n";
        360           }
        361           el se
        362           {
        363                    sSty le+="P {"+ getFontSty le(goIdxFo nt)+"margi n-top:"+gs IdxMargin+ ";margin-b ottom:"+gs IdxMargin+ ";}\n";
        364                    sSty le+="H6 {" +getFontSt yle(goIdxF ont)+"marg in-top:"+g sIdxMargin +";margin- bottom:"+g sIdxMargin +";}\n";
        365           }
        366           sS tyle+="DIV  {margin-t op:"+gsIdx Margin+";m argin-bott om:"+gsIdx Margin+";} \n";
        367           sS tyle+="A:l ink {"+get FontStyle( goIdxFont) +"}\n";
        368           sS tyle+="A:v isited {"+ getFontSty le(goIdxFo nt)+"}\n";
        369           sS tyle+="A:a ctive {bac kground-co lor:"+gsId xActiveBgC olor+";}\n ";
        370           sS tyle+="A:h over {"+ge tFontStyle (goIdxHove rFont)+"}\ n";
        371           sS tyle+="</S TYLE>";      
        372           do cument.wri te(sStyle) ;
        373           re turn;
        374   }
        375  
        376   function w indow_Unlo ad()
        377   {
        378           un registerLi stener2(WH _MSG_PROJE CTREADY);
        379           un registerLi stener2(WH _MSG_SEARC HINDEXKEY) ;
        380   }
        381  
        382   function o nReceiveNo tification (oMsg)
        383   {
        384           if (oMsg)
        385           {
        386                    var  nMsgId=oMs g.msgId;
        387                    if(n MsgId==WH_ MSG_SEARCH INDEXKEY)
        388                    {
        389                             if(oMs g.iParam & & oMsg.iPa ram.sInput )
        390                             {
        391                                      if(gsCK= =null)
        392                                      {
        393                                               gsCK=oMsg. iParam.sIn put;
        394                                               gbCR = oMs g.iParam.b CR;
        395                                               findCK();
        396                                      }
        397                                      else
        398                                      {
        399                                               gsBCK=oMsg .iParam.sI nput;
        400                                               gbBCR = oM sg.iParam. bCR;
        401                                      }
        402                             }
        403                    }
        404                    else  if(nMsgId ==WH_MSG_P ROJECTREAD Y)
        405                    {
        406                             loadId x();
        407                    }
        408           }
        409           re turn true;
        410   }
        411  
        412   if(window. gbWhVer&&w indow.gbWh Lang&&wind ow.gbWhMsg &&window.g bWhUtil&&w indow.gbWh Host&&wind ow.gbWhPro xy)
        413   {
        414           re gisterList ener2(WH_M SG_PROJECT READY);
        415           re gisterList ener2(WH_M SG_SEARCHI NDEXKEY);
        416           go IdxFont=ne w whFont(" Verdana"," 8pt","#000 000","norm al","norma l","none") ;
        417           go IdxEmptyFo nt=new whF ont("Verda na","8pt", "#666666", "normal"," normal","n one");
        418           go IdxHoverFo nt=new whF ont("Verda na","8pt", "#007f00", "normal"," normal","u nderline") ;
        419  
        420           wi ndow.onloa d=window_O nLoad;
        421           wi ndow.onbef oreunload= window_BUn load;
        422           wi ndow.onunl oad=window _Unload;
        423           gb WhIHost=tr ue;
        424   }
        425   else
        426           do cument.loc ation.relo ad();
        427