Pass browseSequence the name of the current topic. Main browse sequence is in a separate file, browse-main.js. Function finds previous and next topics and writes them into a string which is a line of HTML. This string is returned by the function and written into the document.
*/
function browseSequence(topic)
{
var i;
var sPreviousNext;
var sPrevFile;
var sPrevFull;
var sNextFile;
var sNextFull;
var sHref = "<P CLASS='browse'><A HREF='"
var sTitle = "' TITLE='"
var sNext = "'>Next</A></P>"
var sPrevious = "'>Previous</A></P>"
var sPreviousHref = "'>Previous</A> | <A HREF='"
var sCurrentTopic = topic;
var iBrowseLength = oBrowseArray.length;
var bTopicFound = false;
/* Find current topic. */
for(i = 0; i < iBrowseLength; i++)
{
if (oBrowseArray[i].topicid == sCurrentTopic)
{
bTopicFound = true;
/* If first topic, write only link to next topic. */