--- /dev/null
+<html>\r
+<head>\r
+<title>SMESH reference manual</title>\r
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">\r
+<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">\r
+<meta name "description" content="WebHelp 2002">\r
+</head>\r
+<body>\r
+<script language="JavaScript">\r
+<!--\r
+\r
+var gArrayCsh = new Array();\r
+\r
+var gstrWindowOption = "";\r
+var gstrURL = "";\r
+var gbWithNavPane = false;\r
+\r
+function CshEntityItem(strAliasId, nTopicNum, strUrl) \r
+{\r
+ this.strAliasId = strAliasId;\r
+ this.nTopicNum = nTopicNum;\r
+ this.strUrl = strUrl;\r
+}\r
+\r
+\r
+//Try to get to topic number from hash string\r
+function GetTopicNumberAuto(strMayBeNumber)\r
+{\r
+ var nNum = -1;\r
+ if (strMayBeNumber.length >= 1)\r
+ {\r
+ var strTmp = strMayBeNumber;\r
+ var iEnd = strTmp.length;\r
+ for (var i=0; i<iEnd; i++)\r
+ {\r
+ var ch = strTmp.charAt(i);\r
+ if (!((ch == "0") || (ch == "1") ||\r
+ (ch == "2") || (ch == "3") ||\r
+ (ch == "4") || (ch == "5") ||\r
+ (ch == "6") || (ch == "7") ||\r
+ (ch == "8") || (ch == "9")))\r
+ return GetTopicNumberById(strTmp);\r
+ }\r
+ nNum = parseInt(strTmp);\r
+ }\r
+ return nNum;\r
+}\r
+\r
+function GetTopicNumber(strHashString)\r
+{\r
+ var nTopicEndPos = strHashString.indexOf(',')\r
+ if (nTopicEndPos == -1) { // no window option.\r
+ return GetTopicNumberOnly(strHashString);\r
+ }\r
+ else {\r
+ var strWindowOption = strHashString.substring(nTopicEndPos + 1, strHashString.length);\r
+ var strWithNavPane = 'withnavpane=true';\r
+ if (strWindowOption.toLowerCase().indexOf(strWithNavPane) == 0)\r
+ {\r
+ if (strWindowOption.length > strWithNavPane.length)\r
+ gstrWindowOption = strWindowOption.substring(strWithNavPane.length + 1);\r
+ else\r
+ gstrWindowOption = "";\r
+ gbWithNavPane = true;\r
+ }\r
+ else\r
+ gstrWindowOption = strWindowOption;\r
+ return GetTopicNumberOnly(strHashString.substring(0, nTopicEndPos)); \r
+ }\r
+}\r
+\r
+function GetTopicNumberOnly(strTopicString)\r
+{\r
+ var nEqualPos = strTopicString.indexOf('=');\r
+ if (nEqualPos == -1) {\r
+ return GetTopicNumberAuto(strTopicString);\r
+ }\r
+ else {\r
+ var strValue=strTopicString.substring(nEqualPos + 1, strTopicString.length);\r
+ if (strTopicString.toLowerCase().indexOf("topicnumber") == 0) {\r
+ return parseInt(strValue);\r
+ } else if (strTopicString.toLowerCase().indexOf("context") == 0) {\r
+ return GetTopicNumberById(strValue);\r
+ } else if (strTopicString.toLowerCase().indexOf("remoteurl") == 0) {\r
+ gstrURL = strValue;\r
+ return -1;\r
+ }\r
+\r
+ }\r
+}\r
+\r
+//Find HomePage of the WebHelp system\r
+// we try to get the topic from remote project if it exists.\r
+function RedirectToHomePage()\r
+{\r
+ if (parent && parent != this && parent.goNext)\r
+ {\r
+ var sHome = parent.goNext();\r
+ if (sHome != "")\r
+ RedirectTo(sHome);\r
+ }\r
+}\r
+\r
+function getHomePage()\r
+{\r
+ if (parent && parent != this && parent.getRelHomePage)\r
+ {\r
+ return parent.getRelHomePage(document.location.href);\r
+ }\r
+ return "";\r
+}\r
+\r
+function addRemoteProject(strPath)\r
+{\r
+ if (parent && parent != this && parent.addProject)\r
+ {\r
+ parent.addProject(strPath);\r
+ }\r
+}\r
+\r
+//Redirect page to...\r
+function RedirectTo(strUrl)\r
+{\r
+ if (gstrWindowOption.length != 0) {\r
+ var wnd = window.open(strUrl, "HelpStub", gstrWindowOption);\r
+ // close current window and rename the stub window to current window.\r
+ if (wnd)\r
+ wnd.focus();\r
+ if (parent)\r
+ parent.close();\r
+ }\r
+ else {\r
+ parent.document.location.href = strUrl;\r
+ window.focus();\r
+ }\r
+}\r
+\r
+//Prompt the user that we can not find...\r
+function FailToFind(strMsg)\r
+{\r
+ RedirectToHomePage();\r
+}\r
+\r
+//Find topic by topic number (defined in h file)\r
+function FindTopicByTopicNum(nTopicNum)\r
+{\r
+ var i = 0;\r
+ var iEnd = gArrayCsh.length;\r
+ for (i=0; i<iEnd; i++)\r
+ {\r
+ if (gArrayCsh[i].nTopicNum == nTopicNum)\r
+ {\r
+ var strURL = gArrayCsh[i].strUrl;\r
+ if (gbWithNavPane)\r
+ {\r
+ var strHomePage = getHomePage();\r
+ if (strHomePage.length != 0)\r
+ strURL = strHomePage + strURL;\r
+ } \r
+ RedirectTo(strURL);\r
+ return true;\r
+ }\r
+ }\r
+ FailToFind("Fail to find topic assocaite with topic number: " + nTopicNum);\r
+ return false;\r
+}\r
+\r
+//Find topic by topic id (alias id defined in ali file)\r
+function GetTopicNumberById(strTopicId)\r
+{\r
+ var i = 0;\r
+ var iEnd = gArrayCsh.length;\r
+ for (i=0; i<iEnd; i++)\r
+ {\r
+ if (gArrayCsh[i].strAliasId.toLowerCase() == strTopicId.toLowerCase())\r
+ {\r
+ return gArrayCsh[i].nTopicNum;\r
+ }\r
+ }\r
+ gstrURL = "";\r
+ return -1;\r
+}\r
+\r
+//Set Context-sensitive help entity...\r
+function SetCsh(n, strAliasId, nTopicNum, strUrl)\r
+{\r
+ gArrayCsh[n] = new CshEntityItem(strAliasId,nTopicNum,strUrl);\r
+}\r
+\r
+\r
+function getHash()\r
+{\r
+ if (parent && parent != this)\r
+ return parent.location.hash;\r
+ else\r
+ return "";\r
+}\r
+//-->\r
+</script>\r
+<script language="javascript">\r
+<!--\r
+\r
+\r
+//-->\r
+</script>\r
+<script language="javascript">\r
+<!--\r
+//Find CSH according to hash string after this page\r
+if (getHash().length > 0)\r
+{\r
+ // VH 05/16/00 now support \r
+ // TopicID=\r
+ // TopicNumber=\r
+ // RemoteURL= \r
+ // and WindowsOptions\r
+ // with the format #a=xxx,b=xxx,c=xxx...\r
+ var strHashString = getHash().toString();\r
+ // change ? to : for remote URL. because java applet have some problem to pass a URL with two : inside the URL so we changed it. \r
+ // so here need to change it back.\r
+ strHashString = strHashString.substring(1,strHashString.length);\r
+ strHashString = strHashString.replace("%072%057%057", "://");\r
+ var nTopicNum = GetTopicNumber(strHashString);\r
+\r
+ if (nTopicNum != -1)\r
+ {\r
+ FindTopicByTopicNum(nTopicNum);\r
+ }\r
+ else\r
+ {\r
+ if (gstrURL.length > 0) \r
+ RedirectTo(gstrURL);\r
+ else\r
+ RedirectToHomePage();\r
+ }\r
+}\r
+else\r
+{\r
+ RedirectToHomePage();\r
+}\r
+//-->\r
+</script>\r
+<noscript>\r
+ <p> Your browser does not support JavaScript. WebHelp Context-Sensitive Help requires JavaScript support to run.</p>\r
+</noscript>\r
+</body>\r
+</html>\r
+\r
+\r
+\r
+\r
+\r
+\r