/*This file contains useful functions that 
  can be used in the webhelp file.

Revisions: 

5/10/04  Added global variables and functions to print release and revision number in footer.


*/

/*Global Variables*/

var cd_release="July 15, 2004";
var doc_release="June 15, 2004";

  /*Release version*/

var number;

 /*Page revision number*/
var rev;

/*Custom Object for release and revision values.*/

var Release = new Version(number,rev);


/*Call this function to insert the date modified*/


  var modDate = new Date(document.lastModified);
  var modMonth = modDate.getMonth()+1;
  var modYear = modDate.getYear();
  var modDay = modDate.getDate();
 
function date()
{
<!-- hide from old browsers
  if(modDay<10) modDay = "0" + modDay;
  if(modMonth<10) modMonth= "0" + modMonth;
  if(modYear<1000) modYear+=1900;
//-->
}


/*This is the Print method for the version object. It is called in the footer code of each .html page.
The values for release and rev are set in display_title.js. */

function PrintVersion()
    {
     Version_id="Reference no: " + this.number + this.rev;
     document.write('<p class=timedate>');
     document.write(Version_id);
     document.write('</p>');
    }


/*This is the custom object representing the documentation release and rev number for page.*/

function Version(number,rev)
    {
     this.number=number;
     this.rev=rev;
     this.PrintVersion=PrintVersion;
    }


/*Use these functions for Ethernet conditional text - these were designed to show or hide Ethernet-related
  text for the ADT documentation*/
function beginEthernet()
  {
    if (ethernet==1)
    document.writeln("\<!--");
  }
  
function endEthernet()
  {
    if (ethernet==1)
    document.writeln("--\>");
  }

function writeEthernet()
  {
    if (ethernet==1)
    document.write('<p class="Note"><b>NOTE:</b> This version of the software does not support Ethernet communications.</p>');
  }

var ethernet = 1
/*When ethernet = 1, conditional text is hidden; any other value will display the conditional text*/


/*Use these functions for Feature not supported conditional text - these were designed to show or hide feature-related
  text for the ADT documentation*/
function beginFeatnot()
  {
    if (featnot==1)
    document.writeln("\<!--");
  }
  
function endFeatnot()
  {
    if (featnot==1)
    document.writeln("--\>");
  }

function writeFeatnot()
  {
    if (featnot==1)
    document.write('<p class="Note"><b>NOTE:</b> This feature is not supported in this version of the software.</p>');
  }

var featnot = 1
/*When featnot = 1, conditional text is hidden; any other value will display the conditional text*/


/*Use these functions for V+ conditional text - these were designed to show or hide V+ -related
  text for the ADT documentation*/
function beginVplus()
  {
    if (vplus==1)
    document.writeln("\<!--");
  }
  
function endVplus()
  {
    if (vplus==1)
    document.writeln("--\>");
  }

function writeVplus()
  {
    if (vplus==1)
    document.write('<p class="Note"><b>NOTE:</b> This version of the software does not support V+ systems.</p>');
  }

var vplus = 1
/*When vplus = 1, conditional text is hidden; any other value will display the conditional text*/


/*Use these functions for Vision conditional text - these were designed to show or hide Vision -related
  text for the ADT documentation*/
function beginVision()
  {
    if (vision==1)
    document.writeln("\<!--");
  }
  
function endVision()
  {
    if (vision==1)
    document.writeln("--\>");
  }

function writeVision()
  {
    if (vision==1)
    document.write('<p class="Note"><b>NOTE:</b> This version of the software does not support Vision.</p>');
  }

var vision = 1
/*When vision = 1, conditional text is hidden; any other value will display the conditional text*/



/*Use these functions for OmniNFS conditional text - these were designed to show or hide OmniNFS -related
  text for the ADT documentation*/
function beginOMNI()
  {
    if (omni==1)
    document.writeln("\<!--");
  }
  
function endOMNI()
  {
    if (omni==1)
    document.writeln("--\>");
  }

var omni = 1
/*When omni = 1, conditional text is hidden; any other value will display the conditional text*/

/*Call this function to insert the copyright info*/

function copyright()
{
document.write('<br><br>');
document.write('<table x-use-null-cells	style="width: 800; padding-bottom: 0; border-spacing: 0px" cellspacing=0>');
document.write('<tr>');
document.write('<td style="padding-left: 0px; padding-top: 2px; padding-right: 0px; padding-bottom: 2px;" width="800">');
document.write('<p class=timedate>Please submit comments to: <a href="mailto:techpubs@adept.com">techpubs@adept.com</a><br></p>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td style="padding-left: 0px; padding-top: 2px; padding-right: 0px; padding-bottom: 2px;" width="800">');
document.write('<p class=timedate>');
document.write('Last modified on: ');
document.write(modMonth + "/" + modDay +  "/" + modYear);
document.write('<br>');
document.write('<a href="copyright_notice.htm" target="_top">Copyright</a> © ');
document.write('2012');
document.write(' by Adept Technology, Inc.');
document.write('<br>');
document.write('All rights reserved.');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
}




/*Call this function to insert the How to Get Help info*/

function gethelp()
{
document.write('Refer to the How to Get Help Resource Guide, Adept P/N 00961-00700, for details on getting assistance with your Adept software or hardware. ');
document.write('Additionally, you can access the following information sources on Adept\'s corporate web site:');
document.write('<ul><li>For Contact information: <a href="http://www.adept.com/contact/americas">http://www.adept.com/contact/americas</a></li><li>For Product Support information: <a href="http://www.adept.com/support/service-and-support/main">http://www.adept.com/support/service-and-support/main</a></li><li>For further information about Adept Technology, Inc.: <a href="http://www.adept.com">http://www.adept.com</a></li></ul><br><br>');
}


/*Call this function to open the proper frameset for the current page*/

function detect()
{
framesetpage="doc_frames.htm";
thispage=window.location.href;
if (thispage.indexOf('://')<0) {thispage="://"+thispage;};
prefix=thispage.substring(0,thispage.lastIndexOf('://'));
suffix=thispage.substring(thispage.lastIndexOf('://')+3,thispage.length);
// alert('the subpage is:['+prefix+']['+suffix+']');
if (parent.location.href==window.location.href) {parent.location.href=framesetpage+"?"+prefix+"&&&"+suffix};
}

/*Call this function to open the proper frameset for the search page*/

function detect_search()
{
framesetpage="adept_title_index.htm";
thispage=window.location.href;
if (thispage.indexOf('://')<0) {thispage="://"+thispage;};
prefix=thispage.substring(0,thispage.lastIndexOf('://'));
suffix=thispage.substring(thispage.lastIndexOf('://')+3,thispage.length);
// alert('the subpage is:['+prefix+']['+suffix+']');
if (parent.location.href==window.location.href) {parent.location.href=framesetpage+"?"+prefix+"&&&"+suffix};
}


/*Call this frameset to open the adept_title_index.htm frameset for KE menu pages.*/

function detect_menu()
{
framesetpage="../adept_title_index.htm";
thispage=window.location.href;
if (thispage.indexOf('://')<0) {thispage="://"+thispage;};
prefix=thispage.substring(0,thispage.lastIndexOf('://'));
suffix=thispage.substring(thispage.lastIndexOf('://')+3,thispage.length);
// alert('the subpage is:['+prefix+']['+suffix+']');
if (parent.location.href==window.location.href) {parent.location.href=framesetpage+"?"+prefix+"&&&"+suffix};
}


/*Call this function to open a new window.*/

function openWindow(url,windowName) 
{
window.open(url, windowName, "height=500, width=500, menubar=yes, resizable=yes, scrollbars=yes, status=yes, toolbar=yes")
}


/*Call this function to load the HTML File Print Utility instructions*/

function printutil()
{
document.write('<table border="3" cellpadding="10" cellspacing="0" width="100%" bordercolor="#000080" bordercolorlight="#000080" bordercolordark="#000080" bgcolor="#C8D0F7">');
document.write('  <tr>');
document.write('    <td>');
document.write('      <h2>Adept Technology, Inc.<br>');
document.write('      HTML Print Utility</h2>');
document.write('      <p class="Body">The HTML Print Utility is a software application that generates a portable/printable PDF ');
document.write('version of the HTML document, which can be viewed and printed using ');
document.write('<a href="http://www.adobe.com/products/acrobat/readstep2.html">Adobe Acrobat ');
document.write('Reader</a>. If this is the first time that you have used this utility, <i>please ');
document.write('read all of the instructions below</i>. <a href="#" onClick="window.open(\'printfeats.htm\', \'printfeats\',\'width=375,height=400,resizable=yes,copyhistory=yes,menubar=no,scrollbars=yes\')">(HTML Print Utility features and limitations...)</a></p>');
document.write('<h3>Installing the HTML Print Utility</h3>');
document.write('<ol>');
document.write('  <li>');
document.write('  <p class="Body">Click');
document.write('  <a href="http://www1.adept.com/main/ke/data/HTMLDOC_1822winfree.exe">');
document.write('  here</a> to access the download site. A File Download dialog is displayed.</li>');
document.write('  <li>');
document.write('  <p class="Body">On the File Download dialog, click <b>Open </b>to download the ');
document.write('  file and initialize the installation. </li>');
document.write('  <li>');
document.write('  <p class="Body">After the download completes, the install wizard displays. ');
document.write('  Follow the onscreen instructions to complete the installation. </li>');
document.write('</ol>');
document.write('<h3>Using the HTML Print Utility</h3>');
document.write('<ol>');
document.write('  <li>');
document.write('  <p class="Body">Click');
document.write('  <a href="printfile.htm" target="_printfile">');
document.write('  here</a> to access the HTML Print Utility. A File Download dialog is displayed.</li>');
document.write('  <li>');
document.write('  <p class="Body">On the File Download dialog, click <b>Open</b>. The ');
document.write('  HTML Print Utility opens and loads a configuration (BOOK) file.</li>');
document.write('  <li>');
document.write('  <p class="Body">Click <b>Generate</b> (at the bottom of the HTML Print Utility ');
document.write('  dialog).</li>');
document.write('  <li>');
document.write('  <p class="Body">The generated PDF file is in c:\\temp\\'+filename+'. <a href="c:\\temp\\'+filename+'"');
document.write('   target="_pdffile">Click here</a> to ');
document.write('  open the PDF file for viewing/printing.');
document.write('</ol>');
document.write('<p class="Body">You can also use the HTML Print Utility to generate PDF files ');
document.write('from other HTML documents. See the HTML Print Utility online help for details.</p>');
document.write('    </td>');
document.write('  </tr>');
document.write('</table>');
}


/*Call this function to load the features and limitations page for the HTMLDOC utility*/

function printfeats()
{
document.write('<html>');
document.write('');
document.write('<head>');
document.write('<meta http-equiv="Content-Language" content="en-us">');
document.write('<meta name="GENERATOR" content="Microsoft FrontPage 5.0">');
document.write('<meta name="ProgId" content="FrontPage.Editor.Document">');
document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">');
document.write('<title>What are the Features and Limitations of the HTML Print Utility</title>');
document.write('<link rel="stylesheet" type="text/css" href="../../document.css">');
document.write('<style>');
document.write('/* Document Defaults */');
document.write('');
document.write('        a:active  { color: #0000CC}');
document.write('        a:hover   { color: #CC0033}');
document.write('        a:link    { color: #3366CC}');
document.write('        a:visited { color: #9999CC}');
document.write('		');
document.write('P {	font-family: Verdana, Arial, Helvetica, sans-serif;');
document.write('	font-size: 12.0pt;');
document.write('	color: #000000 }');
document.write('');
document.write('        ');
document.write('H1 {');
document.write('	color: #000000;');
document.write('            font-size: 20px; font-style: normal; font-weight: bold;');
document.write('            margin-left: 0em; margin-top: 0.5em; margin-bottom: 0.5em;');
document.write('            text-align: left; text-indent: 0em; text-decoration: none;');
document.write('            white-space: normal');
document.write('}');
document.write('');
document.write('H2  {');
document.write('	   { color: #000080;');
document.write('            font-size: 16px; font-style: normal; font-weight: bold;');
document.write('            margin-left: 0em; margin-top: 0.5em; margin-bottom: 0.5em;');
document.write('            text-align: left; text-indent: 0em; text-decoration: none;');
document.write('            white-space: normal }');
document.write('');
document.write('H3 {');
document.write('  { color: #000080;');
document.write('            font-size: 14px; font-style: normal; font-weight: bold;');
document.write('            margin-left: 0em; margin-top: 0.5em; margin-bottom: 0.5em;');
document.write('            text-align: left; text-indent: 0em; text-decoration: none;');
document.write('            white-space: normal }');
document.write('');
document.write('H4 {');
document.write(' { color: #000080;');
document.write('            font-size: 12px; font-style: italic; font-weight: bold;');
document.write('            margin-left: 0em; margin-top: 0.5em; margin-bottom: 0.5em;');
document.write('            text-align: left; text-indent: 0em; text-decoration: none;');
document.write('            white-space: normal }');
document.write('		body');
document.write('          { background-color: #FFFFFF;');
document.write('            color: #000000;');
document.write('            font-family: Verdana, Arial, Helvetica, sans-serif;');
document.write('          }');
document.write('        table, ul, ol');
document.write('          { color: #000000;');
document.write('            font-family: Verdana, Arial, Helvetica, sans-serif;');
document.write('            font-size: 12px }');
document.write('        .Body');
document.write('          { color: #000000;');
document.write('            font-size: 12px; font-style: normal; font-weight: normal;');
document.write('            margin-left: 0em; margin-top: 0.5em; margin-bottom: 0.5em;');
document.write('            text-align: left; text-indent: 0em; text-decoration: none;');
document.write('            white-space: normal }');
document.write('');
document.write('');
document.write('        .Body');
document.write('          { color: #000000;');
document.write('            font-size: 12px; font-style: normal; font-weight: normal;');
document.write('            margin-left: 0em; margin-top: 0.5em; margin-bottom: 0.5em;');
document.write('            text-align: left; text-indent: 0em; text-decoration: none;');
document.write('            white-space: normal }');
document.write('</style>');
document.write('');
document.write('</head>');
document.write('');
document.write('<body>');
document.write('');
document.write('<h1>What are the Features and Limitations of the HTML Print Utility?</h1>');
document.write('<h2>Features</h2>');
document.write('<p class="Body">The HTML Print Utility can be used to create a ');
document.write('portable/printable version of the HTML document collection that you are ');
document.write('currently viewing. After the utility is used to generate the PDF file, the file ');
document.write('can be printed, emailed, saved to removable media, etc.</p>');
document.write('<p class="Body">The HTML Print Utility is intended to allow users to capture a ');
document.write('collection of HTML files into a single document, which can be printed ');
document.write('contiguously. Normally, HTML files can only be printed individually from the web ');
document.write('browser interface. For lengthy documents, you would spend a considerable amount ');
document.write('of time queuing each print job, as it would have to be done for each page (file) ');
document.write('in the HTML document collection.</p>');
document.write('<p class="Body">The HTML Print utility eliminates this repetitive printing ');
document.write('through the use of a configuration (.BOOK) file, which specifies the HTML files ');
document.write('that are included in the output (PDF) file. After the PDF file is generated, you ');
document.write('simply use the print function in the Adobe Acrobat Reader interface to initiate ');
document.write('the printing of the entire collection.</p>');
document.write('<p class="Body">For advanced users, you can also use the HTML Print Utility with');
document.write('<i>any</i> HTML documents, not just those that we have preconfigured for you. ');
document.write('For complete details, see the HTML Print Utility online help (click Help on the ');
document.write('lower portion of the HTML Print Utility dialog).</p>');
document.write('<h2>Limitations</h2>');
document.write('<p class="Body">The HTML Print Utility is not intended as a way to create ');
document.write('publication-quality manuals from HTML files. Rather, it provides a means for ');
document.write('capturing the content (text and graphics) of the specified HTML documents so ');
document.write('that the content can be viewed, printed, or distributed outside of the original ');
document.write('source.</p>');
document.write('');
document.write('</body>');
document.write('');
document.write('</html>');
}
