home *** CD-ROM | disk | FTP | other *** search
/ ftp.rsa.com / 2014.05.ftp.rsa.com.tar / ftp.rsa.com / pub / agents / RSASecurIDTokenAuto412x64.msi / Data1.cab / _B96BA8AE8D27C915987887BACA3641D0 < prev    next >
Text File  |  2014-03-12  |  6KB  |  261 lines

  1. <html>
  2. <head>
  3. <title>RSA SecurID Software Token</title>
  4.  
  5. <meta name="generator" content="Adobe RoboHelp - www.adobe.com">
  6. <meta name="description" content="WebHelp 5.50">
  7. <script language="javascript1.2" src="whutils.js"></script>
  8. </head>
  9. <body>
  10. <script language="JavaScript">
  11. <!--
  12.  
  13. var gArrayCsh = new Array();
  14.  
  15. var gstrWindowOption = "";
  16. var gstrURL = "";
  17. var gbWithNavPane = false;
  18.  
  19. function CshEntityItem(strAliasId, nTopicNum, strUrl) 
  20. {
  21.     this.strAliasId = strAliasId;
  22.     this.nTopicNum = nTopicNum;
  23.     this.strUrl = strUrl;
  24. }
  25.  
  26.  
  27. //Try to get to topic number from hash string
  28. function GetTopicNumberAuto(strMayBeNumber)
  29. {
  30.    var nNum = -1;
  31.    if (strMayBeNumber.length >= 1)
  32.    {
  33.         var strTmp = strMayBeNumber;
  34.         var iEnd = strTmp.length;
  35.         for (var i=0; i<iEnd; i++)
  36.         {
  37.               var ch = strTmp.charAt(i);
  38.               if (!((ch == "0") || (ch == "1") ||
  39.                     (ch == "2") || (ch == "3") ||
  40.                     (ch == "4") || (ch == "5") ||
  41.                     (ch == "6") || (ch == "7") ||
  42.                     (ch == "8") || (ch == "9")))
  43.                   return GetTopicNumberById(strTmp);
  44.         }
  45.         nNum = parseInt(strTmp);
  46.    }
  47.    return nNum;
  48. }
  49.  
  50. function GetTopicNumber(strHashString)
  51. {
  52.     var nTopicEndPos = strHashString.indexOf(',')
  53.     if (nTopicEndPos == -1) { // no window option.
  54.         return GetTopicNumberOnly(strHashString);
  55.     }
  56.     else {
  57.         var strWindowOption = strHashString.substring(nTopicEndPos + 1, strHashString.length);
  58.         var strWithNavPane = 'withnavpane=true';
  59.         if (strWindowOption.toLowerCase().indexOf(strWithNavPane) == 0)
  60.         {
  61.             if (strWindowOption.length > strWithNavPane.length)
  62.                 gstrWindowOption = strWindowOption.substring(strWithNavPane.length + 1);
  63.             else
  64.                 gstrWindowOption = "";
  65.             gbWithNavPane = true;
  66.         }
  67.         else
  68.             gstrWindowOption = strWindowOption;
  69.         return GetTopicNumberOnly(strHashString.substring(0, nTopicEndPos));        
  70.     }
  71. }
  72.  
  73. function GetTopicNumberOnly(strTopicString)
  74. {
  75.     var nEqualPos = strTopicString.indexOf('=');
  76.     if (nEqualPos == -1) {
  77.         return GetTopicNumberAuto(strTopicString);
  78.     }
  79.     else {
  80.         var strValue=strTopicString.substring(nEqualPos + 1, strTopicString.length);
  81.         if (strTopicString.toLowerCase().indexOf("topicnumber") == 0) {
  82.             return parseInt(strValue);
  83.         } else if (strTopicString.toLowerCase().indexOf("context") == 0) {
  84.             return GetTopicNumberById(strValue);
  85.         } else if (strTopicString.toLowerCase().indexOf("remoteurl") == 0) {
  86.             if(IsInternal(strValue))
  87.                 gstrURL = _textToHtml(strValue);
  88.             return -1;
  89.         }
  90.  
  91.     }
  92. }
  93.  
  94. //Find HomePage of the WebHelp system
  95. // we try to get the topic from remote project if it exists.
  96. function RedirectToHomePage()
  97. {
  98.     if (parent && parent != this && parent.goNext)
  99.     {
  100.         var sHome = parent.goNext();
  101.         if (sHome != "")
  102.             RedirectTo(sHome);
  103.     }
  104. }
  105.  
  106. function getHomePage()
  107. {
  108.     if (parent && parent != this && parent.getRelHomePage)
  109.     {
  110.         return parent.getRelHomePage(document.location.href);
  111.     }
  112.     return "";
  113. }
  114.  
  115. function addRemoteProject(strPath)
  116. {
  117.     if (parent && parent != this && parent.addProject)
  118.     {
  119.         parent.addProject(strPath);
  120.     }
  121. }
  122.  
  123. //Redirect page to...
  124. function RedirectTo(strUrl)
  125. {
  126.    if (gstrWindowOption.length != 0) {
  127.         var wnd = window.open(strUrl, "HelpStub", gstrWindowOption);
  128.         // close current window and rename the stub window to current window.
  129.         if (wnd)
  130.             wnd.focus();
  131.         if (parent)
  132.             parent.close();
  133.    }
  134.    else {
  135.     parent.document.location.href = strUrl;
  136.     window.focus();
  137.   }
  138. }
  139.  
  140. //Prompt the user that we can not find...
  141. function FailToFind(strMsg)
  142. {
  143.     RedirectToHomePage();
  144. }
  145.  
  146. //Find topic by topic number (defined in h file)
  147. function FindTopicByTopicNum(nTopicNum)
  148. {
  149.     var i = 0;
  150.     var iEnd = gArrayCsh.length;
  151.     for (i=0; i<iEnd; i++)
  152.     {
  153.         if (gArrayCsh[i].nTopicNum == nTopicNum)
  154.         {
  155.             var strURL = gArrayCsh[i].strUrl;
  156.             if (gbWithNavPane)
  157.             {
  158.                 var strHomePage = getHomePage();
  159.                 if (strHomePage.length != 0)
  160.                     strURL = strHomePage + strURL;
  161.             }    
  162.             RedirectTo(strURL);
  163.             return true;
  164.         }
  165.     }
  166.     FailToFind("Fail to find topic assocaite with topic number: " + nTopicNum);
  167.     return false;
  168. }
  169.  
  170. var oldPrefix = "HelpIdFromHTMLHelp_"
  171. //Find topic by topic id (alias id defined in ali file)
  172. function GetTopicNumberById(strTopicId)
  173. {
  174.    if (strTopicId.indexOf(oldPrefix) == 0)
  175.    {
  176.         strTopicId = strTopicId.substring(oldPrefix.length);
  177.    }
  178.  
  179.    var i = 0;
  180.    var iEnd = gArrayCsh.length;
  181.    for (i=0; i<iEnd; i++)
  182.    {
  183.     if (gArrayCsh[i].strAliasId.toLowerCase() == strTopicId.toLowerCase())
  184.     {
  185.         return gArrayCsh[i].nTopicNum;
  186.      }
  187.    }
  188.    gstrURL = "";
  189.    return -1;
  190. }
  191.  
  192. //Set Context-sensitive help entity...
  193. function SetCsh(n, strAliasId, nTopicNum, strUrl)
  194. {
  195.    gArrayCsh[n] = new CshEntityItem(strAliasId,nTopicNum,strUrl);
  196. }
  197.  
  198.  
  199. function getHash()
  200. {
  201.     if (parent && parent != this)
  202.         return parent.location.hash;
  203.     else
  204.         return "";
  205. }
  206. //-->
  207. </script>
  208. <script language="javascript">
  209. <!--
  210.  
  211.  
  212. //-->
  213. </script>
  214. <script language="javascript">
  215. <!--
  216. //Find CSH according to hash string after this page
  217. if (getHash().length > 0)
  218. {
  219.    // VH 05/16/00 now support 
  220.    // TopicID=
  221.    // TopicNumber=
  222.    // RemoteURL=   
  223.    // and WindowsOptions
  224.    // with the format #a=xxx,b=xxx,c=xxx...
  225.    var strHashString = getHash().toString();
  226.    // change ? to : for remote URL. because java applet have some problem to pass a URL with two : inside the URL so we changed it. 
  227.    // so here need to change it back.
  228.    strHashString = strHashString.substring(1,strHashString.length);
  229.    strHashString = strHashString.replace("%072%057%057", "://");
  230.    var nTopicNum = GetTopicNumber(strHashString);
  231.  
  232.    if (nTopicNum != -1)
  233.    {
  234.       FindTopicByTopicNum(nTopicNum);
  235.    }
  236.    else
  237.    {
  238.       if (gstrURL.length > 0) 
  239.     RedirectTo(gstrURL);
  240.       else
  241.           RedirectToHomePage();
  242.    }
  243. }
  244. else
  245. {
  246.    RedirectToHomePage();
  247. }
  248. //-->
  249. </script>
  250. <noscript>
  251.  <p> Your browser does not support JavaScript. WebHelp Context-Sensitive Help requires JavaScript support to run.</p>
  252. </noscript>
  253. </body>
  254. </html>
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.