 <!--

// This is the document server name as defined by DocumentDirect  
        

// Report name, version and section (partials allowed)
      var textrpt     = ""
      var textver     = ""

      function cleanup() {
        if (parent.getSessionID != null) {
           with (document.logout) {

// Get and set the session id

      sessionID.value=parent.viewframe.getSessionID();
      submit();
      }
      }
      return;
      }
      function SubmitTopicForm(hideExplr,newWin,topic,tver,titem,rpt,ver,sect,from,limit) {
      with (document.Login) {

  // Set the server id

      serverID.value=serverName;
//
// this sample assumes that default recipient and password have been configured
// for this server.  Otherwise, the recipientID and password values need to be
// set here.                     0.1
//       recipientID.value="";
//       password.value="";


// Set the topic id

      if (topic != null)
      topicID.value=topic;
      else
      topicID.value="";

// Set the topic version id

      if (tver != null)
      topicVer.value=tver;
      else
      topicVer.value="";

// Set the topic item id

      if (titem != null)
      topicItem.value=titem;
      else
      topicItem.value="";

// Set the report id

      if (rpt != null)
      reportID.value=rpt;
      else
      reportID.value="";

// Set the version id

      if (ver != null)
      versionID.value=ver;
      else
      versionID.value="";

// Set the section id

      if (sect != null)
      sectionID.value=sect;
      else
      sectionID.value="";

// Set the starting page range

               if (from)
                  pageFrom.value=from;
               else
                  pageFrom.value="0";

// Set the page limit

               if (limit)
                  pageLimit.value=limit;
               else
                  pageLimit.value="0";

// Hide the explorer frame by setting noExplorer.value to 1

               if (hideExplr)
                  noExplorer.value=1;
               else
                  noExplorer.value=0;

// Determine where the output will go

               if (newWin)
                  target="_blank";
               else
                  target="viewframe";

// Get and set the session id

               if (parent.getSessionID != null)
                  sessionID.value=parent.getSessionID();
               else
                  sessionID.value=""
               submit();
            }
         }

         function SubmitForm(hideExplr,newWin,rpt,ver,sect,serverName) {
            var f = null;

            if (serverName == "misinfo") {
		f = document.login;
            }
            else {
		f = document.login2;
            }

            with (f) {

//Set the server id

          serverID.value=serverName;

// this sample assumes that default recipient and password have been configured
// for this server.  Otherwise, the recipientID and password values need to be
// set here. JavaScript can be used to prompt the user for the values.
//               recipientID.value="";
//               password.value="";



// Set the report id

               if (rpt != null)
                  reportID.value=rpt;
               else
                  reportID.value="";

// Set the version id

               if (ver != null)
                  versionID.value=ver;
               else
                  versionID.value="";

// Set the section id

               if (sect != null)
                  sectionID.value=sect;
               else
                  sectionID.value="";

// Hide the explorer frame by setting noExplorer.value to 1

               if (hideExplr)
                  noExplorer.value=1;
               else
                  noExplorer.value=0;

// Determine where the output will go

               if (newWin)
                  target="_blank";
               else
                  target="viewframe";

// Get and set the session id

               if (parent.getSessionID != null) {
                  sessionID.value=parent.getSessionID();
	       }
               else {
                  sessionID.value=""
	       }

                submit();

                password.value="";
                recipientID.value="";

            }
}
      //-->

