home *** CD-ROM | disk | FTP | other *** search
/ Software Selections: IBM PC 300GL / TWCUSN017WW.iso / content / common.js < prev    next >
Encoding:
Text File  |  1999-06-21  |  672 b   |  34 lines

  1.  
  2. function GetControl(strPane, strObject)
  3. {
  4.     var objPane, objControl, collFrames;
  5.  
  6.     collFrames = window.parent.parent.frames;
  7.  
  8.     if (collFrames.length > 0)
  9.     {
  10.         strPane = strPane.toUpperCase();
  11.         objPane = collFrames.item(strPane);
  12.  
  13.         if (objPane != null)
  14.         {
  15.             if (strPane == "LEFTPANE")
  16.                 objControl = objPane.document.all(strObject);
  17.             else if (strPane == "RIGHTPANE")
  18.                 objControl = objPane.frames("PrimaryFrame").document.all(strObject);
  19.             else
  20.                 objControl = null;
  21.  
  22.             if (objControl != null)
  23.                 if (objControl.readyState == 4)
  24.                     return objControl;
  25.         }
  26.     }
  27.  
  28.     return null;
  29. }
  30.  
  31. function Exit()
  32. {
  33.     window.external.ExitHost();
  34. }