home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 October / CHIP1002.ISO / exe / COMPUGUI.exe / whdata / whglo.js < prev    next >
Encoding:
Text File  |  2002-04-23  |  668 b   |  34 lines

  1. var gaFileMapping = new Array();
  2. function fileMapping(sBK, sEK, sFileName, nNum)
  3. {
  4.     this.sBK = sBK;
  5.     this.sEK = sEK;
  6.     this.sFileName = sFileName;
  7.     this.aKs = null;
  8.     this.nNum = nNum;
  9.     this.oUsedItems = null;
  10. }
  11.  
  12.  
  13. function iFM(sBK, sEK, sFileName, nNum)
  14. {
  15.     var i = gaFileMapping.length;
  16.     gaFileMapping[i] = new fileMapping(sBK, sEK, sFileName, nNum);    
  17.     if (i == 0) {
  18.         gaFileMapping[i].nTotal = nNum;
  19.     }
  20.     else {
  21.         gaFileMapping[i].nTotal = nNum + gaFileMapping[i - 1].nTotal;
  22.     }
  23. }
  24.  
  25. function window_OnLoad()
  26. {
  27.     if (parent && parent != this && parent.projReady)
  28.     {
  29.         parent.projReady(gaFileMapping);
  30.     }        
  31. }
  32.  
  33. window.onload = window_OnLoad;
  34.