417. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 1/2/2018 11:56:29 AM 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.

417.1 Files compared

# Location File Last Modified
1 Tue Jan 2 16:56:29 2018 UTC
2 HTRE_P2.zip\src.zip\output\admin.zip\admin whphost.js Wed May 31 16:59:36 2017 UTC

417.2 Comparison summary

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

417.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

417.4 Active regular expressions

No regular expressions were active.

417.5 Comparison detail

        1   //      We bHelp 5.10 .005
        2   var gaProj =new Array ();
        3   var gnChec ked=0;
        4   var gsProj Name="";
        5   var gbRead y=false;
        6   var goMan= null;
        7   var gbXML= false;
        8   var gsFirs tPane="";
        9   var gServe rEnabled=f alse;
        10   var gsPath ="";
        11   var gbWhPH ost=false;
        12   var goDiv  = null;
        13   var gsHTML  = "";
        14   var gsPage Dir="ltr"
        15  
        16   if (naviga tor.curren tNavPen)
        17           gs FirstPane  = navigato r.currentN avPen;
        18  
        19  
        20   function d elayLoad()
        21   {
        22           if  (goDiv&&g sHTML)
        23           {
        24                    goDi v.innerHTM L=gsHTML;
        25                    goDi v=null;
        26                    gsHT ML="";
        27           }
        28   }
        29  
        30   function w hCom(sName ,sComFile)
        31   {
        32           va r alignmen t = (gsPag eDir == "r tl")?"righ t":"left"
        33           th is.msName= sName;
        34           th is.msDivId =sName+"Di v";
        35           th is.msIFram eId=sName+ "IFrame";
        36           th is.msComFi le=sComFil e;
        37           th is.mbloade d=false;
        38           th is.mbShow= false;
        39           th is.show=fu nction(bSh ow)
        40           {
        41                    if(t his.mbShow !=bShow)
        42                    {
        43                             if(bSh ow&&!this. mbloaded)
        44                             {
        45                                      this.loa d();
        46                             }
        47  
        48                             var oD iv=getElem ent(this.m sDivId);
        49                             if(oDi v)
        50                             {
        51                                      if(gbIE5 5||(gbIE5& &gbMac))
        52                                      {
        53                                               var oIfram e=getEleme nt(this.ms IFrameId);
        54                                               if(oIframe )
        55                                               {
        56                                                       if (bShow)
        57                                                       {
        58                                                                oDiv .style.zIn dex=3;
        59                                                                if(o Iframe!=nu ll)
        60                                                                {
        61                                                                         oIfram e.style.zI ndex=3;
        62                                                                         if (!g bIE55)
        63                                                                                  oIframe. style.visi bility="vi sible";
        64                                                                }
        65                                                       }
        66                                                       el se
        67                                                       {
        68                                                                oDiv .style.zIn dex=2;
        69                                                                if(o Iframe!=nu ll)
        70                                                                {
        71                                                                         oIfram e.style.zI ndex=2;
        72                                                                         if (!g bIE55)
        73                                                                                  oIframe. style.visi bility="hi dden";
        74                                                                }
        75                                                       }
        76                                               }
        77                                      }
        78                                      if (!gbI E55)
        79                                               oDiv.style .visibilit y=(bShow== true)?'vis ible':'hid den';
        80                                      this.mbS how=bShow;
        81                             }
        82  
        83                    }
        84           }
        85           th is.load=fu nction()
        86           {
        87                    if(! this.mbloa ded)
        88                    {
        89                             if(thi s.msComFil e.length>0 ){
        90                                      var strF ile= _getF ullPath(ge tPath(), t his.msComF ile);
        91                                      var oDiv =getElemen t(this.msD ivId);
        92                                      if(oDiv) {
        93                                               if(gbIE4|| gbOpera7){
        94                                                       va r nIFrameH eight=oDiv .style.pix elHeight;
        95                                                       va r nIFrameW idth=oDiv. style.pixe lWidth;
        96                                                       va r sHTML="< IFRAME ID= "+this.msI FrameId+"  title=\""  + this.msN ame + "\"  SRC=\""+st rFile+"\"  BORDER=0 F RAMEBORDER =no STYLE= \"width:";
        97                                                       if (gbMac){
        98                                                                sHTM L+=nIFrame Width+"px; height:"+n IFrameHeig ht+"px;\"> </IFRAME>" ;
        99                                                       }e lse{
        100                                                                sHTM L+="100%;  height:100 %;\"></IFR AME>";
        101                                                       }
        102                                                       oD iv.innerHT ML=sHTML;
        103                                               }else if(g bNav6 || g bSafari){
        104                                                   gsHTML  = "<IFRAM E ID=" + t his.msIFra meId + " t itle=\"" +  this.msNa me + "\" S RC=\"" + s trFile + " \" BORDER= 0 FRAMEBOR DER=no STY LE=\"width :100%;bord er:0;heigh t:100%;\"> </IFRAME>" ;
        105                                                       go Div = oDiv ;
        106                                                       se tTimeout(" delayLoad( )", 100);
        107                                               }
        108                                               this.mbloa ded=true;
        109                                      }
        110                             }
        111                    }
        112           }
        113           th is.unload= function()
        114           {
        115                    var  oDiv=getEl ement(this .msDivId);
        116                    if(o Div)
        117                             oDiv.i nnerHTML=" ";
        118           }
        119           th is.getDivH TML=functi on()
        120           {
        121                    var  sHTML="";
        122                    if(g bMac&&gbIE 4)
        123                             sHTML+ ="<DIV ID= "+this.msD ivId+" ALI GN=" +alig nment+" ST YLE=\"posi tion:absol ute;z-inde x:1;" +ali gnment+" : 0;top:0;wi dth:100%;h eight:100% ;margin:0; padding:0; border:0;\ ">";
        124                    else  if(gbIE5)
        125                             sHTML+ ="<DIV ID= "+this.msD ivId+" ALI GN=" +alig nment+" ST YLE=\"posi tion:absol ute;z-inde x:1;" +ali gnment+" : 0;top:0;wi dth:100%;h eight:100% ;\">";
        126                    else  if(gbIE4| |gbWindows )
        127                             sHTML+ ="<DIV ID= "+this.msD ivId+" ALI GN=" +alig nment+" ST YLE=\"posi tion:absol ute;z-inde x:1;" +ali gnment+" : 0;top:0;wi dth:100%;h eight:100% ;visibilit y:hidden\" >";
        128                    else  if(gbMac  && (gbNav6  || gbChro me))
        129                             sHTML+ ="<DIV ID= "+this.msD ivId+" ALI GN=" +alig nment+" ST YLE=\"posi tion:absol ute;z-inde x:1;" +ali gnment+" : 0;top:0;wi dth:100%;h eight:100% ;visibilit y:hidden\" >";
        130                    else  if(gbUnix OS)
        131                             sHTML+ ="<DIV ID= "+this.msD ivId+" ALI GN=" +alig nment+" ST YLE=\"posi tion:absol ute;z-inde x:1;" +ali gnment+" : 0;top:0;wi dth:100%;h eight:100% ;visibilit y:hidden\" >";
        132                    else
        133                             sHTML+ ="<DIV ID= "+this.msD ivId+" ALI GN=" +alig nment+" ST YLE=\"posi tion:absol ute;z-inde x:1;" +ali gnment+" : 0;top:0;wi dth:100%;h eight:"+pa rent.heigh t+";visibi lity:hidde n\">";
        134                    sHTM L+="</DIV> ";
        135                    retu rn sHTML;
        136           }
        137   }  
        138  
        139   function w hComMan()
        140   {
        141           th is.sName=" ";
        142           th is.maCom=n ew Array() ;
        143           th is.addCom= function(s Name,sComF ile)
        144           {
        145                    var  owhCom=new  whCom(sNa me,sComFil e);
        146                    this .maCom[thi s.maCom.le ngth]=owhC om;
        147           }
        148           th is.init=fu nction()
        149           {
        150                    var  sHTML="";
        151                    for( var i=0;i< this.maCom .length;i+ +)
        152                    {
        153                             sHTML+ =this.maCo m[i].getDi vHTML();
        154                    }
        155                    if(g bSafari&&! gbSafari3)
        156                    {
        157                             var ra nge = docu ment.creat eRange();
        158                             range. setStartBe fore(docum ent.body.l astChild);
        159                             var do cFrag = ra nge.create Contextual Fragment(s HTML);
        160                             docume nt.body.ap pendChild( docFrag)                
        161               }
        162                    else
        163                             docume nt.body.in sertAdjace ntHTML("be foreEnd",s HTML);
        164  
        165           }
        166           th is.showByI d=function (nId)
        167           {
        168                    for( var s=0;s< this.maCom .length;s+ +)
        169                    {
        170                             if(s!= =nId)
        171                                      this.maC om[s].show (false);
        172                    }
        173                    this .maCom[nId ].show(tru e);
        174           }
        175           th is.show=fu nction(sNa me)
        176           {
        177                    navi gator.curr entNavPen  = sName;
        178                    var  bFound=fal se;
        179                    for( var i=0;i< this.maCom .length;i+ +)
        180                    {
        181                             if(sNa me==this.m aCom[i].ms Name)
        182                             {
        183                                      bFound=t rue;
        184                                      break;
        185                             }
        186                    }
        187                    if(b Found)
        188                    {
        189                             this.s howById(i) ;
        190                             this.s Name=sName ;
        191                    }
        192           }
        193           th is.unload= function()
        194           {
        195                    for( var i=0;i< this.maCom .length;i+ +)
        196                    {
        197                             this.m aCom[i].un load();
        198                    }                 
        199           }
        200           th is.getCurr ent=functi on()
        201           {
        202                    retu rn this.sN ame;
        203           }
        204   }
        205  
        206   function g etPath()
        207   {
        208           if (gsPath==" ")
        209           {
        210                    gsPa th=locatio n.href;
        211                    gsPa th=_replac eSlash(gsP ath);
        212                    var  nPosFile=g sPath.last IndexOf("/ ");
        213                    gsPa th=gsPath. substring( 0,nPosFile +1);
        214           }
        215           re turn gsPat h;
        216   }
        217  
        218   goMan=new  whComMan() ;
        219  
        220   function o nGetPane(o Msg)
        221   {
        222       if (oM sg.oParam. bEnable)
        223           go Man.addCom (oMsg.iPar am.sName,  oMsg.iPara m.sFileNam e);
        224   }
        225  
        226   function a ddPane(sNa me,sFileNa me)
        227   {
        228           va r iParam=n ew Object( );
        229           iP aram.sName  = sName;
        230           iP aram.sFile Name = sFi leName;
        231           va r oMsg=new  whMessage (WH_MSG_GE TPANE, iPa ram, new O bject());
        232           re quest(oMsg , onGetPan e);
        233   }
        234  
        235   function o nGetDefPan e(oMsg) {
        236       if (oM sg.oParam)
        237           gs FirstPane  = oMsg.oPa ram;
        238       else
        239           gs FirstPane  = oMsg.iPa ram.sName;
        240   }
        241  
        242   function s etShowPane (sName, bF orce)
        243   {
        244           if  ((gsFirst Pane == "" ) || bForc e)
        245           {
        246                    var  iParam=new  Object();
        247                    iPar am.sName =  sName;
        248                    var  oMsg=new w hMessage(W H_MSG_GETD EFPANE, iP aram, null );
        249                    requ est(oMsg,  onGetDefPa ne);
        250           }
        251   }
        252  
        253   function o nGetCmd(oM sg) {
        254       var bH idePane =  false;
        255       if (oM sg) {
        256           if  (oMsg.oPa ram > 0) {
        257                if (oMsg .oParam ==  1)
        258                    gsFi rstPane =  "toc";
        259                else if  (oMsg.oPar am == 2)
        260                    gsFi rstPane =  "idx";
        261                else if  (oMsg.oPar am == 3)
        262                    gsFi rstPane =  "fts";
        263                else if  (oMsg.oPar am == 4)
        264                    gsFi rstPane =  "glo";
        265           }
        266           el se if (oMs g.oParam = = 0) {
        267                bHidePan e = true;
        268           }
        269       }
        270       goMan. init();
        271       if (gs ProjName ! = "")
        272           lo adData2(gs ProjName);
        273       if (bH idePane) {
        274           gs FirstPane  = "";
        275           va r oMsg1 =  new whMess age(WH_MSG _HIDEPANE,  null, nul l)
        276           no tify(oMsg1 );
        277       }
        278       else {
        279           if  (gsFirstP ane != "")
        280                goMan.sh ow(gsFirst Pane);
        281           el se
        282                goMan.sh owById(0);
        283       }
        284   }
        285  
        286   function S endGetCmd( ) {
        287       if (go Man && goM an.maCom.l ength > 0)  {
        288           va r oMsg = n ew whMessa ge(WH_MSG_ GETCMD, nu ll, null);
        289           re quest(oMsg , onGetCmd );
        290       }
        291       else {
        292           se tTimeout(" SendGetCmd ();", 1);
        293       }
        294   }
        295  
        296   function w indow_OnLo ad() {
        297       SendGe tCmd();   
        298   }
        299  
        300   function s etServerEn abled()
        301   {
        302           gS erverEnabl ed = true;
        303   }
        304  
        305   function l oadData2(s trFile)
        306   {
        307           if (gbXML)
        308                    load DataXML(st rFile);
        309           el se
        310                    load Data(strFi le);
        311   }
        312  
        313   function a ddProject( bPreferXML ,sXMLName, sHTMLName)
        314   {
        315           va r bLoadXML =bPreferXM L;
        316           if (!gbIE4&&! gbNav6&&!g bOpera7&&! gbSafari3)
        317                    retu rn;
        318           if (gbIE4&&!g bIE5)
        319                    bLoa dXML=false ;
        320           if  (gbIE5&&! gbMac)
        321                    bLoa dXML=true;
        322           if (gbIE55||g bNav6||gbS afari3)
        323                    bLoa dXML=true;
        324           if (gbOpera7)
        325                    bLoa dXML=false ;         
        326           if (bLoadXML)
        327                    addP rojectXML( sXMLName);
        328           el se
        329                    addP rojectHTML (sHTMLName );
        330   }
        331  
        332   function a ddProjectH TML(sName)
        333   {
        334           gb XML=false;
        335           gs ProjName=s Name;
        336   }
        337  
        338   function m rAlterProj Url(sProjU rl)
        339   {
        340           if ( mrIsOnEn gine()==tr ue )
        341           {
        342                    var  sProjName= mrGetProjN ame();
        343                    if(  sProjName! ='' )
        344                    {
        345                             // now  build the  server ur l
        346                             sProjU rl=mrGetEn gineUrl()+ '?mgr=sys& cmd=prjinf &prj='+sPr ojName;
        347                    };
        348           };
        349  
        350           re turn sProj Url;
        351   };
        352  
        353   function a ddProjectX ML(sName)
        354   {
        355           //  intialize  the roboe ngine vari albes
        356           mr Initialize ();
        357  
        358           gb XML=true;
        359           gs ProjName=m rAlterProj Url(sName) ;
        360   }
        361  
        362   function w indow_MyBu nload()
        363   {
        364           go Man.unload ();
        365           wi ndow_BUnlo ad();
        366   }
        367  
        368   function p utDataXML( xmlDoc,sdo cPath)
        369   {
        370           if (xmlDoc!=n ull)
        371           {
        372                    var  projectNod e=xmlDoc.g etElements ByTagName( "project") [0];
        373                    if(p rojectNode )
        374                    {
        375                             var aR Proj=new A rray();
        376                             aRProj [0]=new Ob ject();
        377                             aRProj [0].sPPath =_getPath( sdocPath);
        378  
        379                             // ser ver serves  the full  path, so w e don't ne ed the pro ject path  anymore
        380                             if( mr IsOnEngine ()==true )
        381                                      aRProj[0 ].sPPath=" ";
        382  
        383                             var sL angId=proj ectNode.ge tAttribute ("langid") ;
        384                             if(sLa ngId)
        385                             {
        386                                      aRProj[0 ].sLangId= sLangId;
        387                             }
        388                             var sD Path=proje ctNode.get Attribute( "datapath" );
        389                             if(sDP ath)
        390                             {
        391                                      if(sDPat h.lastInde xOf("/")!= sDPath.len gth-1)
        392                                               sDPath+="/ ";
        393                                      aRProj[0 ].sDPath=s DPath;
        394                             }
        395                             else
        396                                      aRProj[0 ].sDPath=" ";
        397                             aRProj [0].sToc=p rojectNode .getAttrib ute("toc") ;
        398                             aRProj [0].sIdx=p rojectNode .getAttrib ute("index ");
        399                             aRProj [0].sFts=p rojectNode .getAttrib ute("fts") ;
        400                             aRProj [0].sGlo=p rojectNode .getAttrib ute("gloss ary");
        401                             var Rm tProject=p rojectNode .getElemen tsByTagNam e("remote" );
        402                             var nC ount=1;
        403                             for (v ar i=0;i<R mtProject. length;i++ )
        404                             {
        405                                      var sURL =RmtProjec t[i].getAt tribute("u rl");
        406                                      if(sURL)
        407                                      {
        408                                               if(sURL.la stIndexOf( "/")!=sURL .length-1)
        409                                                       sU RL+="/";
        410                                               aRProj[nCo unt]=new O bject();
        411                                               aRProj[nCo unt++].sPP ath=_getFu llPath(aRP roj[0].sPP ath,sURL);
        412                                      }
        413                             }
        414                             putPro jectInfo(a RProj);
        415                    }
        416                    else
        417                    {
        418                             // on  Netscape 6 .0 under s ome situat ion the xm l file can not be loa ded.
        419                             // so  we use pur e html ins tead.
        420                             if (gn Checked ==  0)
        421                                      setTimeo ut("redire ctToList() ;",100);
        422                             else
        423                             {
        424                                      gnChecke d++;
        425                                      setTimeo ut("checkR emoteProje ct();", 1) ;
        426                             }
        427                    }
        428           }
        429   }
        430  
        431   function o nLoadXMLEr ror()
        432   {
        433           gn Checked++;
        434           se tTimeout(" checkRemot eProject() ;", 1);
        435   }
        436  
        437   function r edirectToL ist()
        438   {
        439           if (gbReDirec tThis)
        440                    docu ment.locat ion=gsNavR eDirect;
        441           el se
        442                    pare nt.documen t.location =gsNavReDi rect;
        443   }
        444  
        445   function p utProjectI nfo(aRProj )
        446   {
        447           if (gnChecked ==0||isSam ePath(gaPr oj[gnCheck ed].sPPath ,aRProj[0] .sPPath))
        448           {
        449                    if(g nChecked!= 0)
        450                    {
        451                             if(aRP roj[0].sLa ngId!=gaPr oj[0].sLan gId)
        452                                      alert("T he merged  Help syste m "+aRProj [0].sPPath +" is usin g a differ ent langua ge from th e master H elp system , which wi ll cause t he index a nd full-te xt search  functional ity to be  disabled i n the merg ed Help sy stem.");
        453                    }
        454                    gaPr oj[gnCheck ed]=aRProj [0];
        455                    for( var i=1;i< aRProj.len gth;i++)
        456                    {
        457                             var bF ound=false ;
        458                             for(va r j=0;j<ga Proj.lengt h;j++)
        459                             {
        460                                      if(isSam ePath(gaPr oj[j].sPPa th,aRProj[ i].sPPath) )
        461                                      {
        462                                               bFound=tru e;
        463                                               break;
        464                                      }
        465                             }
        466                             if(!bF ound)
        467                             {
        468                                      gaProj[g aProj.leng th]=aRProj [i];
        469                             }
        470                    }
        471                    gnCh ecked++;
        472                    setT imeout("ch eckRemoteP roject();" , 1);
        473           }
        474           el se
        475                    aler t("Could n ot load co rrectly, p lease clic k Refresh. ");
        476   }
        477  
        478   function i sSamePath( sPath1,sPa th2)
        479   {
        480           re turn (sPat h1.toLower Case()==sP ath2.toLow erCase());
        481   }
        482  
        483   function c heckRemote Project()
        484   {
        485           if (gaProj.le ngth > gnC hecked)
        486           {
        487                    setT imeout("ca ncelProj(" +gnChecked +");",1000 0);
        488                    load Data2(gaPr oj[gnCheck ed].sPPath +gsProjNam e);
        489           }
        490           el se{
        491                    var  oMsg=new w hMessage(W H_MSG_PROJ ECTREADY,n ull,null);
        492                    gbRe ady=true;
        493                    noti fy(oMsg);
        494           }
        495   }
        496  
        497   function c ancelProj( i)
        498   {
        499           if (i==gnChec ked)
        500           {
        501                    gnCh ecked++;
        502                    setT imeout("ch eckRemoteP roject();" , 1);
        503           }        
        504   }
        505  
        506   function w indow_resi ze()
        507   {
        508           fo r(var i=0; i<goMan.ma Com.length ;i++)
        509           {
        510                    var  oFrame=get Element(go Man.maCom[ i].msIFram eId);
        511                    if(o Frame)
        512                    {
        513                             oFrame .style.hei ght=docume nt.body.cl ientHeight ;
        514                             oFrame .style.wid th=documen t.body.cli entWidth;
        515                    }
        516           }
        517           wi ndow_resiz e2();
        518   }
        519  
        520   function w indow_resi ze2()
        521   {
        522           if (document. body)
        523           {
        524                    if(d ocument.bo dy.clientW idth > 1 & & document .body.clie ntHeight>1 )
        525                    {
        526                             var oM sg = new w hMessage(W H_MSG_RESI ZEPANE, nu ll, null);
        527                             notify (oMsg);
        528                    }
        529           }
        530   }
        531  
        532   function w indow_unlo ad()
        533   {
        534           un registerLi stener2(WH _MSG_GETPR OJINFO);
        535           un registerLi stener2(WH _MSG_SHOWT OC);
        536           un registerLi stener2(WH _MSG_SHOWI DX);
        537           un registerLi stener2(WH _MSG_SHOWF TS);
        538           un registerLi stener2(WH _MSG_SHOWG LO);
        539           un registerLi stener2(WH _MSG_GETPA NEINFO);
        540           un registerLi stener2(WH _MSG_GETHI GHLIGHTINF O);
        541           // unregister Listener2( WH_MSG_GET SEARCHSTR) ;
        542           // unregister Listener2( WH_MSG_HIL ITESEARCH) ;
        543           // unregister Listener2( WH_MSG_GET NUMRSLT);
        544   }
        545  
        546   function o nReceiveRe quest(oMsg ) {
        547       if (oM sg) {
        548           va r nMsgId =  oMsg.msgI d;
        549           if  (nMsgId = = WH_MSG_G ETPROJINFO ) {
        550                if (gbRe ady) {
        551                    var  oProj = ne w Object() ;
        552                    oPro j.aProj =  gaProj;
        553                    oPro j.bXML = g bXML;
        554                    oMsg .oParam =  oProj;
        555                    repl y(oMsg);
        556                }
        557                return f alse;
        558           }
        559           el se if (nMs gId == WH_ MSG_GETPAN EINFO) {
        560                oMsg.oPa ram = goMa n.getCurre nt();
        561                reply(oM sg);
        562                return f alse;
        563           }
        564  
        565           el se if (oMs g.msgId ==  WH_MSG_GE THIGHLIGHT INFO) {
        566                var ftsE lem = getE lement("ft sIFrame");
        567                if (ftsE lem) {
        568                    try  {
        569                         if (typeof  (ftsElem. contentWin dow.docume nt) != 'un defined' & &
        570                         typeof (ft sElem.cont entWindow. document.f orms[0]) ! = "undefin ed") {
        571                             oMsg.o Param.bHig hlight = t rue;
        572                             var st r1 = ftsEl em.content Window.doc ument.form s[0].quesn .value;
        573                             if (ft sElem.cont entWindow. document.f orms[0].qu esnsyn) {
        574                                 va r str2 = f tsElem.con tentWindow .document. forms[0].q uesnsyn.va lue;
        575                                 if  (str2 !=  "")
        576                                      str1 +=  str2;
        577                             }
        578                             oMsg.o Param.strT erms = str 1;
        579  
        580                             var tb l = ftsEle m.contentW indow.docu ment.getEl ementById( "FtsRslt") ;
        581                             if (tb l)
        582                                 oM sg.oParam. nResults =  tbl.rows. length;
        583                             else
        584                                 oM sg.oParam. nResults =  0;
        585                             reply( oMsg);
        586                             return  false;
        587                         }
        588                    }
        589                    catc h (e) {
        590                         return tru e;
        591                    }
        592                }
        593                return t rue;
        594           }
        595       
        596           /* else if (n MsgId == W H_MSG_HILI TESEARCH)  {
        597                oMsg.oPa ram = true ;
        598                reply(oM sg);
        599                return t rue;
        600           }
        601           el se if (nMs gId == WH_ MSG_GETSEA RCHSTR) {
        602                var ftsE lem = getE lement("ft sIFrame");
        603                if (ftsE lem) {
        604                    if ( typeof (ft sElem.cont entWindow. document.f orms[0]) ! = "undefin ed") {
        605                         var str1 =  ftsElem.c ontentWind ow.documen t.forms[0] .quesn.val ue;
        606                         if (ftsEle m.contentW indow.docu ment.forms [0].quesns yn) {
        607                             var st r2 = ftsEl em.content Window.doc ument.form s[0].quesn syn.value;
        608                             if (st r2 != "")
        609                                 st r1 += str2 ;
        610                         }
        611                         oMsg.oPara m = str1;
        612                    }
        613                }
        614                reply(oM sg);
        615  
        616                return t rue;
        617           }
        618           el se if (nMs gId == WH_ MSG_GETNUM RSLT) {
        619                var ftsE lem = getE lement("ft sIFrame");
        620                if (ftsE lem) {
        621                    var  tbl = ftsE lem.conten tWindow.do cument.get ElementByI d("FtsRslt ");
        622                    if ( tbl)
        623                         oMsg.oPara m = tbl.ro ws.length;
        624                    else
        625                         oMsg.oPara m = 0;
        626                }
        627                else
        628                    oMsg .oParam =  0;
        629                reply(oM sg);
        630                return t rue;
        631           }* /
        632       }
        633       return  true;
        634   }
        635  
        636   function o nReceiveNo tification (oMsg)
        637   {
        638           if (oMsg)
        639           {
        640                    var  nMsgId=oMs g.msgId;
        641                    if(n MsgId==WH_ MSG_SHOWTO C)
        642                    {
        643                             if(goM an)
        644                                      goMan.sh ow("toc");
        645                             var on Msg=new wh Message(WH _MSG_PANEI NFO, "toc" , null);
        646                             notify (onMsg);
        647                             onMsg  = new whMe ssage(WH_M SG_SHOWPAN E, null, n ull);
        648                             notify (onMsg);
        649                    }
        650                    else  if(nMsgId ==WH_MSG_S HOWIDX)
        651                    {
        652                             if(goM an)
        653                                      goMan.sh ow("idx");
        654                             var on Msg=new wh Message(WH _MSG_PANEI NFO, "idx" , null);
        655                             notify (onMsg);
        656                             onMsg  = new whMe ssage(WH_M SG_SHOWPAN E, null, n ull);
        657                             notify (onMsg);
        658                    }
        659                    else  if(nMsgId ==WH_MSG_S HOWFTS)
        660                    {
        661                             if(goM an)
        662                                      goMan.sh ow("fts");
        663                             var on Msg=new wh Message(WH _MSG_PANEI NFO, "fts" , null);
        664                             notify (onMsg);
        665                             onMsg  = new whMe ssage(WH_M SG_SHOWPAN E, null, n ull);
        666                             notify (onMsg);
        667                    }
        668                    else  if(nMsgId ==WH_MSG_S HOWGLO)
        669                    {
        670                             if(goM an)
        671                                      goMan.sh ow("glo");
        672                             var on Msg=new wh Message(WH _MSG_PANEI NFO, "glo" , null);
        673                             notify (onMsg);
        674                             onMsg  = new whMe ssage(WH_M SG_SHOWPAN E, null, n ull);
        675                             notify (onMsg);
        676                    }
        677           }
        678           re turn true;
        679   }
        680  
        681   if(window. gbWhUtil&& window.gbW hMsg&&wind ow.gbWhVer &&window.g bWhProxy)
        682   {
        683           re gisterList ener2(WH_M SG_GETPROJ INFO);
        684           re gisterList ener2(WH_M SG_SHOWTOC );
        685           re gisterList ener2(WH_M SG_SHOWIDX );
        686           re gisterList ener2(WH_M SG_SHOWFTS );
        687           re gisterList ener2(WH_M SG_SHOWGLO );
        688           re gisterList ener2(WH_M SG_GETPANE INFO);
        689           re gisterList ener2(WH_M SG_GETHIGH LIGHTINFO) ;
        690           // registerLi stener2(WH _MSG_GETSE ARCHSTR);
        691           // registerLi stener2(WH _MSG_HILIT ESEARCH);
        692           // registerLi stener2(WH _MSG_GETNU MRSLT);
        693  
        694           if ((gbMac&&g bIE4)||(gb SunOS&&gbI E5)||gbOpe ra7)
        695           {
        696                    wind ow.onresiz e=window_r esize;
        697           }
        698           el se if(gbIE 4)
        699           {
        700                    wind ow.onresiz e=window_r esize2;
        701           }
        702           wi ndow.onloa d=window_O nLoad;
        703           wi ndow.onbef oreunload= window_MyB unload;
        704           wi ndow.onunl oad=window _unload;
        705           gb WhPHost=tr ue;
        706   }
        707   else
        708           do cument.loc ation.relo ad();
        709