home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 October / CHIP1002.ISO / exe / COMPUGUI.exe / whdata / whtoc.js < prev    next >
Encoding:
JavaScript  |  2002-04-23  |  492 b   |  28 lines

  1. // const strings
  2. var gaProj = new Array();
  3. var gsRoot = "";
  4.  
  5. function setRoot(sRoot)
  6. {
  7.     gsRoot = sRoot
  8. }
  9.  
  10. function aPE(sProjPath, sRootPath)
  11. {
  12.     gaProj[gaProj.length] = new tocProjEntry(sProjPath, sRootPath);
  13. }
  14.  
  15. function tocProjEntry(sProjPath, sRootPath) 
  16. {
  17.     this.sPPath = sProjPath;
  18.     this.sRPath = sRootPath;
  19. }
  20.  
  21.  
  22. function window_OnLoad()
  23. {
  24.     if (parent && parent != this && parent.projReady) {
  25.         parent.projReady(gsRoot, gaProj);
  26.     }
  27. }
  28. window.onload = window_OnLoad;