Produced by Araxis Merge on 1/2/2018 11:58:56 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Tue Jan 2 16:58:56 2018 UTC | ||
| 2 | HTRE_P2.zip\src.zip\output\IHTA OLH Files.zip\ihta_admin.zip\reports.zip | whcsh_home.htm | Tue Jan 19 13:58:38 2016 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 686 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | <html> | |||||
| 2 | <head> | |||||
| 3 | <meta http -equiv="Co ntent-Type " content= "text/html ; charset= utf-8" /> | |||||
| 4 | <script s rc="whver. js" charse t="utf-8"> </script> | |||||
| 5 | <script s rc="whmoze mu.js" cha rset="utf- 8"></scrip t> | |||||
| 6 | <script s rc="whutil s.js" char set="utf-8 "></script > | |||||
| 7 | </head> | |||||
| 8 | <script la nguage="ja vascript1. 2"> | |||||
| 9 | <!-- | |||||
| 10 | document.w rite("<bod y></body>" ); | |||||
| 11 | var gCSHFi leName="wh cshdata.js "; | |||||
| 12 | ||||||
| 13 | var gHomeP age="index .html"; | |||||
| 14 | var gaProj =new Array (); | |||||
| 15 | gaProj[0]= new Object (); | |||||
| 16 | gaProj[0]. sProjPath= _replaceSl ash(_getPa th(documen t.location .href)); | |||||
| 17 | gaProj[0]. nLoadState =0; | |||||
| 18 | var gCurre nt=0; | |||||
| 19 | ||||||
| 20 | var gsTopi cURL=""; | |||||
| 21 | var gnCurP roj=0; | |||||
| 22 | var gnComm and=-1; | |||||
| 23 | var CMD_SH OWTOC=1; | |||||
| 24 | var CMD_SH OWINDEX=2; | |||||
| 25 | var CMD_SH OWSEARCH=3 ; | |||||
| 26 | var CMD_SH OWGLOSSARY =4; | |||||
| 27 | var CMD_SH OWNONE=0; | |||||
| 28 | ||||||
| 29 | var RHWO_L OCATION=0x 01; /*need l ocation ba r?*/ | |||||
| 30 | var RHWO_M ENUBAR=0x0 2; /*need m enubar?*/ | |||||
| 31 | var RHWO_R ESIZABLE=0 x04; /*resiza ble window ?*/ | |||||
| 32 | var RHWO_T OOLBAR=0x0 8; /*need t oolbar?*/ | |||||
| 33 | var RHWO_S TATUS=0x10 ; /*need s tatusbar?* / | |||||
| 34 | var RHWO_S CROLLBARS= 0x20; /*need s crollbars? */ | |||||
| 35 | ||||||
| 36 | var gsStr= ""; | |||||
| 37 | var gnId=- 1; | |||||
| 38 | var gsWind ow=""; | |||||
| 39 | var gsNewW nd="true"; | |||||
| 40 | var gbUseS tr=false; | |||||
| 41 | var gbURLR eady=false ; | |||||
| 42 | var goWnd= new Object (); | |||||
| 43 | goWnd.sNam e="whCshDe fault"; | |||||
| 44 | goWnd.nBOp tions=RHWO _RESIZABLE |RHWO_SCRO LLBARS; | |||||
| 45 | goWnd.sBLe ft="49%"; | |||||
| 46 | goWnd.sBTo p="0"; | |||||
| 47 | goWnd.sBWi dth="49%"; | |||||
| 48 | goWnd.sBHe ight="49%" ; | |||||
| 49 | goWnd.nPan es=1; | |||||
| 50 | var goFull Wnd=new Ob ject(); | |||||
| 51 | goFullWnd. sName="whD efault"; | |||||
| 52 | goFullWnd. nBOptions= RHWO_RESIZ ABLE|RHWO_ SCROLLBARS ; | |||||
| 53 | goFullWnd. sBLeft="20 %"; | |||||
| 54 | goFullWnd. sBTop="0"; | |||||
| 55 | goFullWnd. sBWidth="7 9%"; | |||||
| 56 | goFullWnd. sBHeight=" 79%"; | |||||
| 57 | goFullWnd. nPanes=2; | |||||
| 58 | ||||||
| 59 | var goNewW nd=null; | |||||
| 60 | var gbLoad Wnd=false; | |||||
| 61 | var gsURL= ""; | |||||
| 62 | ||||||
| 63 | ||||||
| 64 | var gaCsh= new Array( ); | |||||
| 65 | var gaWind ow=new Arr ay(); | |||||
| 66 | var gaRmtP roj=new Ar ray(); | |||||
| 67 | var gsProj Path=_getP ath(docume nt.locatio n.href); | |||||
| 68 | function C shEntityIt em(strAlia sId,nTopic Num,strUrl ) | |||||
| 69 | { | |||||
| 70 | th is.strAlia sId=strAli asId; | |||||
| 71 | th is.nTopicN um=nTopicN um; | |||||
| 72 | th is.strUrl= strUrl; | |||||
| 73 | } | |||||
| 74 | function C shWindow(s WName,bBUs eDefault,n WBOptions, sWBLeft,sW BTop,sWBWi dth,sWBHei ght,sWCapt ion,nWPane s,nWPOptio ns,sWPButt ons,sWPDef Btn) | |||||
| 75 | { | |||||
| 76 | th is.sName=s WName; | |||||
| 77 | th is.bUseDef ault=bBUse Default; | |||||
| 78 | if (!this.bUs eDefault) | |||||
| 79 | { | |||||
| 80 | this .nBOptions =nWBOption s; | |||||
| 81 | this .sBLeft=sW BLeft; | |||||
| 82 | this .sBTop=sWB Top; | |||||
| 83 | this .sBWidth=s WBWidth; | |||||
| 84 | this .sBHeight= sWBHeight; | |||||
| 85 | } | |||||
| 86 | th is.sCaptio n=sWCaptio n; | |||||
| 87 | th is.nPanes= nWPanes; | |||||
| 88 | if (this.nPan es==2) | |||||
| 89 | { | |||||
| 90 | this .nPOptions =nWPOption s; | |||||
| 91 | this .sPButtons =sWPButton s; | |||||
| 92 | this .sPDefBtn= sWPDefBtn; | |||||
| 93 | } | |||||
| 94 | } | |||||
| 95 | ||||||
| 96 | function a ddRemotePr oject(sPat h) | |||||
| 97 | { | |||||
| 98 | if (sPath.len gth!=0) | |||||
| 99 | { | |||||
| 100 | if(s Path.lastI ndexOf("/" )!=sPath.l ength-1) | |||||
| 101 | sPath+ ="/"; | |||||
| 102 | gaRm tProj[gaRm tProj.leng th]=sPath; | |||||
| 103 | } | |||||
| 104 | } | |||||
| 105 | ||||||
| 106 | //Set Cont ext-sensit ive help e ntity... | |||||
| 107 | function S etCsh(n,st rAliasId,n TopicNum,s trUrl) | |||||
| 108 | { | |||||
| 109 | ga Csh[n]=new CshEntity Item(strAl iasId,nTop icNum,strU rl); | |||||
| 110 | } | |||||
| 111 | ||||||
| 112 | function a ddWindow(s WName,bBUs eDefault,n WBOptions, sWBLeft,sW BTop,sWBWi dth,sWBHei ght,sWCapt ion,nWPane s,nWPOptio ns,sWPButt ons,sWPDef Btn) | |||||
| 113 | { | |||||
| 114 | ga Window[gaW indow.leng th]=new Cs hWindow(sW Name,bBUse Default,nW BOptions,s WBLeft,sWB Top,sWBWid th,sWBHeig ht,sWCapti on,nWPanes ,nWPOption s,sWPButto ns,sWPDefB tn); | |||||
| 115 | } | |||||
| 116 | ||||||
| 117 | function s howCSH(sPa ram) | |||||
| 118 | { | |||||
| 119 | // id= | |||||
| 120 | // str= | |||||
| 121 | // url= | |||||
| 122 | // cmd= | |||||
| 123 | // with the f ormat #<a= xxx>>b=xxx >>c=xxx... | |||||
| 124 | pa rseParam(s Param); | |||||
| 125 | Sw itchURL(); | |||||
| 126 | } | |||||
| 127 | ||||||
| 128 | function I sWndReady( ) | |||||
| 129 | { | |||||
| 130 | if (gaProj[0] .nLoadStat e==0) | |||||
| 131 | { | |||||
| 132 | var sCshFile=_ getFullPat h(gaProj[0 ].sProjPat h,gCSHFile Name); | |||||
| 133 | gaPr oj[0].nLoa dState=1; | |||||
| 134 | setT imeout("lo adFail("+0 +");",3000 ); | |||||
| 135 | load DataCsh(sC shFile); | |||||
| 136 | gbLo adWnd=true ; | |||||
| 137 | retu rn false; | |||||
| 138 | } | |||||
| 139 | el se | |||||
| 140 | retu rn true; | |||||
| 141 | } | |||||
| 142 | ||||||
| 143 | function S witchURL() | |||||
| 144 | { | |||||
| 145 | if (gbURLRead y) | |||||
| 146 | { | |||||
| 147 | var sURL=""; | |||||
| 148 | var oWnd=null; | |||||
| 149 | if(g sTopicURL) | |||||
| 150 | { | |||||
| 151 | sURL=_ getPath(do cument.loc ation.href )+gHomePag e+"#"+gsTo picURL; | |||||
| 152 | oWnd=g oWnd; | |||||
| 153 | } | |||||
| 154 | else | |||||
| 155 | { | |||||
| 156 | if(gnC ommand!=-1 ) | |||||
| 157 | sURL=_ge tPath(docu ment.locat ion.href)+ gHomePage+ "#>>cmd="+ gnCommand; | |||||
| 158 | else | |||||
| 159 | sURL=_ge tPath(docu ment.locat ion.href)+ gHomePage; | |||||
| 160 | oWnd=g oFullWnd; | |||||
| 161 | } | |||||
| 162 | if(g sWindow) | |||||
| 163 | { | |||||
| 164 | if(!Is WndReady() ) | |||||
| 165 | return f alse; | |||||
| 166 | if(gaP roj[gnCurP roj].aWnd) | |||||
| 167 | { | |||||
| 168 | var aWnd =gaProj[gn CurProj].a Wnd; | |||||
| 169 | var bFou nd=false; | |||||
| 170 | for(var i=0;i<aWnd .length;i+ +) | |||||
| 171 | { | |||||
| 172 | if(aWnd[i] .sName.toL owerCase() ==gsWindow .toLowerCa se()) | |||||
| 173 | { | |||||
| 174 | oW nd=aWnd[i] ; | |||||
| 175 | bF ound=true; | |||||
| 176 | br eak; | |||||
| 177 | } | |||||
| 178 | } | |||||
| 179 | if(!bFou nd&&gnCurP roj!=0) | |||||
| 180 | { | |||||
| 181 | var aWnd=g aProj[0].a Wnd; | |||||
| 182 | for(var j= 0;j<aWnd.l ength;j++) | |||||
| 183 | { | |||||
| 184 | if (aWnd[j].s Name.toLow erCase()== gsWindow.t oLowerCase ()) | |||||
| 185 | { | |||||
| 186 | oWnd =aWnd[j]; | |||||
| 187 | brea k; | |||||
| 188 | } | |||||
| 189 | } | |||||
| 190 | } | |||||
| 191 | } | |||||
| 192 | } | |||||
| 193 | ||||||
| 194 | if(s URL&&oWnd) | |||||
| 195 | { | |||||
| 196 | strURL Opt=""; | |||||
| 197 | if(oWn d.sCaption ) | |||||
| 198 | strURLOp t+=">>cap= "+oWnd.sCa ption; | |||||
| 199 | if(oWn d.nPanes== 1) | |||||
| 200 | strURLOp t+=">>pan= "+oWnd.nPa nes; | |||||
| 201 | else i f(oWnd.nPa nes==2) | |||||
| 202 | { | |||||
| 203 | strURLOp t+=">>pan= "+oWnd.nPa nes; | |||||
| 204 | if(oWnd. nPOptions) | |||||
| 205 | strURLOpt+ =">>pot="+ oWnd.nPOpt ions; | |||||
| 206 | if(oWnd. sPButtons) | |||||
| 207 | strURLOpt+ =">>pbs="+ oWnd.sPBut tons; | |||||
| 208 | if(oWnd. sPDefBtn) | |||||
| 209 | strURLOpt+ =">>pdb="+ oWnd.sPDef Btn; | |||||
| 210 | } | |||||
| 211 | if(str URLOpt) | |||||
| 212 | { | |||||
| 213 | if(sURL. indexOf("# ")==-1) | |||||
| 214 | sURL+="#"; | |||||
| 215 | sURL+=st rURLOpt; | |||||
| 216 | } | |||||
| 217 | if(gsN ewWnd=="tr ue") | |||||
| 218 | { | |||||
| 219 | var strO pt=getBrow serOptionS tring(oWnd ); | |||||
| 220 | var sNew Name=conve rtWindowNa me(oWnd.sN ame); | |||||
| 221 | if(gbNav 4 || gbSaf ari) | |||||
| 222 | { | |||||
| 223 | if (gbNav6 ) | |||||
| 224 | { | |||||
| 225 | gs URL = sURL ; | |||||
| 226 | go NewWnd=win dow.open(" about:blan k",sNewNam e,strOpt); | |||||
| 227 | se tTimeout(" postWindow NSOpen();" ,100); | |||||
| 228 | } | |||||
| 229 | else | |||||
| 230 | { | |||||
| 231 | wi ndow.open( "about:bla nk",sNewNa me,strOpt) ; | |||||
| 232 | va r oNewWnd= window.ope n(sURL,sNe wName); | |||||
| 233 | wi ndow.close (); | |||||
| 234 | oN ewWnd.focu s(); | |||||
| 235 | to p.blur(); | |||||
| 236 | } | |||||
| 237 | } | |||||
| 238 | else | |||||
| 239 | { | |||||
| 240 | if(gbIE5) | |||||
| 241 | { | |||||
| 242 | va r curWnd = null; | |||||
| 243 | cu rWnd = win dow.open(" about:blan k",sNewNam e,strOpt); | |||||
| 244 | go NewWnd=win dow.open(s URL,sNewNa me); | |||||
| 245 | } | |||||
| 246 | else | |||||
| 247 | { | |||||
| 248 | gs URL = sURL ; // IE4 h ad hard ti me to hand le bookmar k. | |||||
| 249 | go NewWnd=win dow.open(" about:blan k",sNewNam e,strOpt); | |||||
| 250 | } | |||||
| 251 | setTimeout ("postWind owOpen();" ,100); | |||||
| 252 | } | |||||
| 253 | } | |||||
| 254 | else | |||||
| 255 | { | |||||
| 256 | i f(gsWindow ) | |||||
| 257 | { | |||||
| 258 | var nTop =getSValue (oWnd.sBTo p,screen.h eight); | |||||
| 259 | var nL eft=getSVa lue(oWnd.s BLeft,scre en.width); | |||||
| 260 | var nW idth=getSV alue(oWnd. sBWidth,sc reen.width ); | |||||
| 261 | var nH eight=getS Value(oWnd .sBHeight, screen.hei ght); | |||||
| 262 | window.r esizeTo( n Width , nH eight); | |||||
| 263 | window.m oveTo(nLef t , nTop); | |||||
| 264 | } | |||||
| 265 | document .location= sURL; | |||||
| 266 | } | |||||
| 267 | } | |||||
| 268 | } | |||||
| 269 | } | |||||
| 270 | ||||||
| 271 | function c onvertWind owName(str Name) | |||||
| 272 | { | |||||
| 273 | va r strNewNa me = strNa me; | |||||
| 274 | va r strResul tName = "" ; | |||||
| 275 | va r re=new R egExp("_", "g"); | |||||
| 276 | st rNewName = strName.r eplace(re, "__"); | |||||
| 277 | fo r (var i=0 ;i<strNewN ame.length ;i++) | |||||
| 278 | if ( !(strNewNa me[i] == ' _' || | |||||
| 279 | (strNe wName[i] < = '9' && s trNewName[ i] >= '0') || | |||||
| 280 | (strNe wName[i] < = 'z' && s trNewName[ i] >= 'a') || | |||||
| 281 | (strNe wName[i] < = 'Z' && s trNewName[ i] >= 'A') )) | |||||
| 282 | { | |||||
| 283 | strRes ultName += "_" + str NewName.ch arCodeAt(i ); | |||||
| 284 | } | |||||
| 285 | else | |||||
| 286 | strRes ultName += strNewNam e[i]; | |||||
| 287 | re turn strRe sultName; | |||||
| 288 | } | |||||
| 289 | ||||||
| 290 | function p ostWindowN SOpen() | |||||
| 291 | { | |||||
| 292 | if (goNewWnd) | |||||
| 293 | { | |||||
| 294 | if ( gsURL) | |||||
| 295 | goNewW nd.documen t.location .href=gsUR L; | |||||
| 296 | wind ow.close() ; | |||||
| 297 | goNe wWnd.focus (); | |||||
| 298 | top. blur(); | |||||
| 299 | } | |||||
| 300 | } | |||||
| 301 | ||||||
| 302 | function p ostWindowO pen() | |||||
| 303 | { | |||||
| 304 | if (goNewWnd) | |||||
| 305 | { | |||||
| 306 | if ( gsURL&&!gb IE5&&gbIE4 ) | |||||
| 307 | goNewW nd.documen t.location .href=gsUR L; | |||||
| 308 | goNe wWnd.focus (); | |||||
| 309 | } | |||||
| 310 | } | |||||
| 311 | ||||||
| 312 | function p arseParam( sParam) | |||||
| 313 | { | |||||
| 314 | if (sParam) | |||||
| 315 | { | |||||
| 316 | var nBPos=0; | |||||
| 317 | do | |||||
| 318 | { | |||||
| 319 | var nP os=sParam. indexOf("> >",nBPos); | |||||
| 320 | if(nPo s!=-1) | |||||
| 321 | { | |||||
| 322 | if(nPos> 0) | |||||
| 323 | { | |||||
| 324 | var sPart= sParam.sub string(nBP os,nPos); | |||||
| 325 | parsePart( sPart); | |||||
| 326 | } | |||||
| 327 | nBPos=nP os+2; | |||||
| 328 | } | |||||
| 329 | else | |||||
| 330 | { | |||||
| 331 | var sPar t=sParam.s ubstring(n BPos); | |||||
| 332 | parsePar t(sPart); | |||||
| 333 | break; | |||||
| 334 | } | |||||
| 335 | }whi le(nBPos<s Param.leng th); | |||||
| 336 | ||||||
| 337 | fetc hURL(gsStr , gnId, gb UseStr); | |||||
| 338 | } | |||||
| 339 | } | |||||
| 340 | ||||||
| 341 | function p arsePart(s Part) | |||||
| 342 | { | |||||
| 343 | if (sPart.toL owerCase() .indexOf(" id=")==0) | |||||
| 344 | { | |||||
| 345 | gsTopicU RL=""; | |||||
| 346 | gsStr="" ; | |||||
| 347 | gnId =sPart.sub string(3); | |||||
| 348 | gbUs eStr=false ; | |||||
| 349 | gbUR LReady=fal se; | |||||
| 350 | } | |||||
| 351 | el se if(sPar t.toLowerC ase().inde xOf("str=" )==0) | |||||
| 352 | { | |||||
| 353 | gsTopicU RL=""; | |||||
| 354 | gsStr=sP art.substr ing(4); | |||||
| 355 | gnId =0; | |||||
| 356 | gbUs eStr=true; | |||||
| 357 | gbUR LReady=fal se; | |||||
| 358 | } | |||||
| 359 | el se if(sPar t.toLowerC ase().inde xOf("url=" )==0) | |||||
| 360 | { | |||||
| 361 | if(I sInternal( sPart.subs tring(4))) | |||||
| 362 | gsTopi cURL=sPart .substring (4); | |||||
| 363 | gbUR LReady=tru e; | |||||
| 364 | } | |||||
| 365 | el se if(sPar t.toLowerC ase().inde xOf("cmd=" )==0) | |||||
| 366 | { | |||||
| 367 | var sCmd=sPart .substring (4); | |||||
| 368 | if(s Cmd.toLowe rCase()==" toc") | |||||
| 369 | { | |||||
| 370 | gnComm and=CMD_SH OWTOC; | |||||
| 371 | } | |||||
| 372 | else if(sCmd.t oLowerCase ()=="idx") | |||||
| 373 | { | |||||
| 374 | gnComm and=CMD_SH OWINDEX; | |||||
| 375 | } | |||||
| 376 | else if(sCmd.t oLowerCase ()=="fts") | |||||
| 377 | { | |||||
| 378 | gnComm and=CMD_SH OWSEARCH; | |||||
| 379 | } | |||||
| 380 | else if(sCmd.t oLowerCase ()=="glo") | |||||
| 381 | { | |||||
| 382 | gnComm and=CMD_SH OWGLOSSARY ; | |||||
| 383 | } | |||||
| 384 | else if(sCmd.t oLowerCase ()=="none" ) | |||||
| 385 | { | |||||
| 386 | gnComm and=CMD_SH OWNONE; | |||||
| 387 | } | |||||
| 388 | gbUR LReady=tru e; | |||||
| 389 | } | |||||
| 390 | el se if(sPar t.toLowerC ase().inde xOf("wnd=" )==0) | |||||
| 391 | { | |||||
| 392 | gsWi ndow=_brow serStringT oText(sPar t.substrin g(4)); | |||||
| 393 | } | |||||
| 394 | el se if(sPar t.toLowerC ase().inde xOf("newwn d=")==0) | |||||
| 395 | { | |||||
| 396 | gsNe wWnd=sPart .substring (7); | |||||
| 397 | } | |||||
| 398 | el se if(sPar t.toLowerC ase().inde xOf("topic url=") ==0 ) | |||||
| 399 | { | |||||
| 400 | docu ment.locat ion.href=_ getPath(do cument.loc ation.href )+gHomePag e+"#"+ sPa rt.substri ng(9); | |||||
| 401 | } | |||||
| 402 | } | |||||
| 403 | ||||||
| 404 | function f etchURL(sS tr,nId,bUs eStr) | |||||
| 405 | { | |||||
| 406 | va r bNeedLoa d=false; | |||||
| 407 | va r bFound=f alse; | |||||
| 408 | fo r(var i=0; i<gaProj.l ength;i++) | |||||
| 409 | { | |||||
| 410 | if(g aProj[i].n LoadState= =3) | |||||
| 411 | { | |||||
| 412 | if(gaP roj[i].aCs h) | |||||
| 413 | { | |||||
| 414 | for(var j=0;j<gaPr oj[i].aCsh .length;j+ +) | |||||
| 415 | { | |||||
| 416 | var sTopic URL=""; | |||||
| 417 | if(bUseStr ) | |||||
| 418 | { | |||||
| 419 | if (gaProj[i] .aCsh[j].s trAliasId. toLowerCas e()==sStr. toLowerCas e()) | |||||
| 420 | sTop icURL=gaPr oj[i].aCsh [j].strUrl ; | |||||
| 421 | } | |||||
| 422 | else | |||||
| 423 | { | |||||
| 424 | if (gaProj[i] .aCsh[j].n TopicNum== nId) | |||||
| 425 | sTop icURL=gaPr oj[i].aCsh [j].strUrl ; | |||||
| 426 | } | |||||
| 427 | if(sTopicU RL) | |||||
| 428 | { | |||||
| 429 | if (i!=0) | |||||
| 430 | { | |||||
| 431 | gnCu rProj=i; | |||||
| 432 | if(g aProj[i].s ProjPath.i ndexOf(gaP roj[0].sPr ojPath)==0 ) | |||||
| 433 | { | |||||
| 434 | var sR elPath=gaP roj[i].sPr ojPath.sub string(gaP roj[0].sPr ojPath.len gth); | |||||
| 435 | gsTopi cURL=sRelP ath+sTopic URL; | |||||
| 436 | } | |||||
| 437 | else | |||||
| 438 | gsTopi cURL=gaPro j[i].sProj Path+sTopi cURL; | |||||
| 439 | } | |||||
| 440 | el se | |||||
| 441 | gsTo picURL=sTo picURL; | |||||
| 442 | bF ound=true; | |||||
| 443 | br eak; | |||||
| 444 | } | |||||
| 445 | } | |||||
| 446 | } | |||||
| 447 | ||||||
| 448 | } | |||||
| 449 | else if(gaProj [i].nLoadS tate==0) | |||||
| 450 | { | |||||
| 451 | gsStr= sStr; | |||||
| 452 | gnId=n Id; | |||||
| 453 | gbUseS tr=bUseStr ; | |||||
| 454 | var sC shFile=_ge tFullPath( gaProj[i]. sProjPath, gCSHFileNa me); | |||||
| 455 | gaProj [i].nLoadS tate=1; | |||||
| 456 | setTim eout("load Fail("+i+" );",3000); | |||||
| 457 | loadDa taCsh(sCsh File); | |||||
| 458 | bNeedL oad=true; | |||||
| 459 | } | |||||
| 460 | if(b Found||bNe edLoad) | |||||
| 461 | break; | |||||
| 462 | } | |||||
| 463 | if (!bNeedLoa d) | |||||
| 464 | { | |||||
| 465 | gbUR LReady=tru e; | |||||
| 466 | Swit chURL(); | |||||
| 467 | } | |||||
| 468 | } | |||||
| 469 | ||||||
| 470 | g_queue = new WhQueu e(); | |||||
| 471 | var g_bLoa ding = fal se; | |||||
| 472 | function l oadDataCsh (sCshFile) | |||||
| 473 | { | |||||
| 474 | g_ queue.enqu eue(sCshFi le); | |||||
| 475 | lo adDataCshF romQueue() ; | |||||
| 476 | } | |||||
| 477 | ||||||
| 478 | function l oadDataCsh FromQueue( ) | |||||
| 479 | { | |||||
| 480 | if (!g_queue. isEmpty() && !g_bLoa ding) | |||||
| 481 | { | |||||
| 482 | va r sCshFile = g_queue .peek(); | |||||
| 483 | gs ProjPath=_ getPath(sC shFile); | |||||
| 484 | ||||||
| 485 | ga Csh = new Array(); | |||||
| 486 | ga Window = n ew Array() ; | |||||
| 487 | ga RmtProj = new Array( ); | |||||
| 488 | ||||||
| 489 | ||||||
| 490 | g_ bLoading = true; | |||||
| 491 | va r oHead = document.g etElements ByTagName( 'head')[0] ; | |||||
| 492 | va r oScript = document .createEle ment('scri pt'); | |||||
| 493 | oS cript.type = 'text/j avascript' ; | |||||
| 494 | oS cript.char set = "utf -8"; | |||||
| 495 | oS cript.src = sCshFile ; | |||||
| 496 | oH ead.append Child(oScr ipt); | |||||
| 497 | } | |||||
| 498 | } | |||||
| 499 | ||||||
| 500 | ||||||
| 501 | function l oadFail(nP roj) | |||||
| 502 | { | |||||
| 503 | if (gaProj[nP roj].nLoad State==1) | |||||
| 504 | { | |||||
| 505 | gaPr oj[nProj]. nLoadState =2; | |||||
| 506 | if(! gbLoadWnd) | |||||
| 507 | fetchU RL(gsStr,g nId,gbUseS tr); | |||||
| 508 | else | |||||
| 509 | Switch URL(); | |||||
| 510 | } | |||||
| 511 | } | |||||
| 512 | ||||||
| 513 | function p utCshData( strProj,aC sh,aWnd,aR mtProj) | |||||
| 514 | { | |||||
| 515 | if (strProj) | |||||
| 516 | { | |||||
| 517 | strP roj=_repla ceSlash(st rProj); | |||||
| 518 | if(s trProj.las tIndexOf(" /")!=strPr oj.length- 1) | |||||
| 519 | strPro j+="/"; | |||||
| 520 | for( var i=0;i< gaProj.len gth;i++) | |||||
| 521 | { | |||||
| 522 | if(gaP roj[i].sPr ojPath) | |||||
| 523 | { | |||||
| 524 | if(isSam ePath(gaPr oj[i].sPro jPath,strP roj)) | |||||
| 525 | { | |||||
| 526 | gaProj[i]. nLoadState =3; | |||||
| 527 | gaProj[i]. aCsh=aCsh; | |||||
| 528 | gaProj[i]. aWnd=aWnd; | |||||
| 529 | break; | |||||
| 530 | } | |||||
| 531 | } | |||||
| 532 | } | |||||
| 533 | if(a RmtProj&&a RmtProj.le ngth) | |||||
| 534 | { | |||||
| 535 | for(va r j=0;j<aR mtProj.len gth;j++) | |||||
| 536 | { | |||||
| 537 | var strR Path=_getF ullPath(st rProj,aRmt Proj[j]); | |||||
| 538 | var bFou nd=false; | |||||
| 539 | for (var k=0;k<gaP roj.length ;k++) | |||||
| 540 | { | |||||
| 541 | if(gaProj[ k].sProjPa th) | |||||
| 542 | { | |||||
| 543 | if (isSamePat h(gaProj[k ].sProjPat h,strRPath )) | |||||
| 544 | { | |||||
| 545 | bFou nd=true; | |||||
| 546 | brea k; | |||||
| 547 | } | |||||
| 548 | } | |||||
| 549 | } | |||||
| 550 | if(!bFou nd) | |||||
| 551 | { | |||||
| 552 | var len=ga Proj.lengt h; | |||||
| 553 | gaProj[len ]=new Obje ct(); | |||||
| 554 | gaProj[len ].sProjPat h=strRPath ; | |||||
| 555 | gaProj[len ].nLoadSta te=0; | |||||
| 556 | } | |||||
| 557 | } | |||||
| 558 | } | |||||
| 559 | if(! gbLoadWnd) | |||||
| 560 | fetchU RL(gsStr,g nId,gbUseS tr); | |||||
| 561 | else | |||||
| 562 | Switch URL(); | |||||
| 563 | g_ bLoading = false; | |||||
| 564 | g_ queue.dequ eue() | |||||
| 565 | lo adDataCshF romQueue() ; | |||||
| 566 | } | |||||
| 567 | } | |||||
| 568 | ||||||
| 569 | function i sSamePath( strPath1,s trPath2) | |||||
| 570 | { | |||||
| 571 | re turn strPa th1.toLowe rCase()==s trPath2.to LowerCase( ); | |||||
| 572 | } | |||||
| 573 | ||||||
| 574 | function g etRelHomeP age(strLoc ation) | |||||
| 575 | { | |||||
| 576 | va r strCurPP ath=_getPa th(strLoca tion); | |||||
| 577 | va r strOriPP ath=_getPa th(getHome Page()); | |||||
| 578 | va r strRelPa th=_getRel ativeFileN ame(strOri PPath,strC urPPath); | |||||
| 579 | va r strURL=g etHomePage ()+"#"+str RelPath; | |||||
| 580 | re turn strUR L; | |||||
| 581 | } | |||||
| 582 | ||||||
| 583 | function g etHomePage () | |||||
| 584 | { | |||||
| 585 | va r strHomeP age; | |||||
| 586 | va r strTmp=l ocation.to String(); | |||||
| 587 | va r nPos=str Tmp.indexO f("#"); | |||||
| 588 | if (nPos!=-1) | |||||
| 589 | { | |||||
| 590 | strH omePage=st rTmp.subst ring(0,nPo s); | |||||
| 591 | } | |||||
| 592 | el se | |||||
| 593 | { | |||||
| 594 | strH omePage=st rTmp; | |||||
| 595 | } | |||||
| 596 | re turn strHo mePage; | |||||
| 597 | } | |||||
| 598 | ||||||
| 599 | function g etBrowserO ptionStrin g(oWnd) | |||||
| 600 | { | |||||
| 601 | va r strOpts= ""; | |||||
| 602 | if (oWnd.bUse Default) | |||||
| 603 | retu rn strOpts ; | |||||
| 604 | if (oWnd.nBOp tions&RHWO _LOCATION) | |||||
| 605 | strO pts+="loca tion=yes"; | |||||
| 606 | el se | |||||
| 607 | strO pts+="loca tion=no"; | |||||
| 608 | if (oWnd.nBOp tions&RHWO _TOOLBAR) | |||||
| 609 | strO pts+=",too lbar=yes"; | |||||
| 610 | el se | |||||
| 611 | strO pts+=",too lbar=no"; | |||||
| 612 | if (oWnd.nBOp tions&RHWO _MENUBAR) | |||||
| 613 | strO pts+=",men ubar=yes"; | |||||
| 614 | el se | |||||
| 615 | strO pts+=",men ubar=no"; | |||||
| 616 | if (oWnd.nBOp tions&RHWO _STATUS) | |||||
| 617 | strO pts+=",sta tus=yes"; | |||||
| 618 | el se | |||||
| 619 | strO pts+=",sta tus=no"; | |||||
| 620 | if (oWnd.nBOp tions&RHWO _SCROLLBAR S) | |||||
| 621 | strO pts+=",scr ollbars=ye s"; | |||||
| 622 | el se | |||||
| 623 | strO pts+=",scr ollbars=no "; | |||||
| 624 | if (oWnd.nBOp tions&RHWO _RESIZABLE ) | |||||
| 625 | strO pts+=",res izable=yes "; | |||||
| 626 | el se | |||||
| 627 | strO pts+=",res izable=no" ; | |||||
| 628 | if (oWnd.sBTo p) | |||||
| 629 | { | |||||
| 630 | var nTop=getSV alue(oWnd. sBTop,scre en.height) ; | |||||
| 631 | strO pts+=",top ="+nTop; | |||||
| 632 | strO pts+=",scr eenY="+nTo p; | |||||
| 633 | } | |||||
| 634 | if (oWnd.sBLe ft) | |||||
| 635 | { | |||||
| 636 | var nLeft=getS Value(oWnd .sBLeft,sc reen.width ); | |||||
| 637 | strO pts+=",lef t="+nLeft; | |||||
| 638 | strO pts+=",scr eenX="+nLe ft; | |||||
| 639 | } | |||||
| 640 | if (oWnd.sBWi dth) | |||||
| 641 | { | |||||
| 642 | var nWidth=get SValue(oWn d.sBWidth, screen.wid th); | |||||
| 643 | strO pts+=",wid th="+nWidt h; | |||||
| 644 | strO pts+=",out erWidth="+ nWidth; | |||||
| 645 | } | |||||
| 646 | if (oWnd.sBHe ight) | |||||
| 647 | { | |||||
| 648 | var nHeight=ge tSValue(oW nd.sBHeigh t,screen.h eight); | |||||
| 649 | strO pts+=",hei ght="+nHei ght; | |||||
| 650 | strO pts+=",out erHeight=" +nHeight; | |||||
| 651 | } | |||||
| 652 | re turn strOp ts; | |||||
| 653 | } | |||||
| 654 | ||||||
| 655 | function g etSValue(s Value,nLen gth) | |||||
| 656 | { | |||||
| 657 | va r nValue=0 ; | |||||
| 658 | va r nPos=sVa lue.indexO f("%"); | |||||
| 659 | if (nPos!=-1) | |||||
| 660 | { | |||||
| 661 | if(n Pos>0) | |||||
| 662 | { | |||||
| 663 | var nP art=parseI nt(sValue. substring( 0,nPos)); | |||||
| 664 | nValue =nLength*n Part/100; | |||||
| 665 | } | |||||
| 666 | } | |||||
| 667 | el se | |||||
| 668 | nVal ue=parseIn t(sValue); | |||||
| 669 | re turn nValu e; | |||||
| 670 | } | |||||
| 671 | ||||||
| 672 | ||||||
| 673 | window.onl oad=window _OnLoad; | |||||
| 674 | ||||||
| 675 | function w indow_OnLo ad() | |||||
| 676 | { | |||||
| 677 | va r sParam = document. location.h ash; | |||||
| 678 | if (document. location.h ash.length >0) | |||||
| 679 | { | |||||
| 680 | sPar am = Patch Parameters ForEscapeC har(sParam ); | |||||
| 681 | show CSH(sParam .substring (1)); | |||||
| 682 | } | |||||
| 683 | } | |||||
| 684 | //--> | |||||
| 685 | </script> | |||||
| 686 | </html> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.