// Here are the secondary window functions. Use the function with the height and
// width closest to what you want. If absolutely necessary, insert similar script
// in your topic as markup text or, better yet, add another function to this file.


function openMap(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName,"height=600,width=550,scrollbars=yes,resizable=yes");
myWin.focus();
myLink.target=windowName;
}

function open2ndary(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName,"height=200,width=325,scrollbars=yes,resizable=yes");
myWin.focus();
myLink.target=windowName;
}

function openScreens(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName,"height=500,width=740,scrollbars=yes,resizable=yes");
myWin.focus();
myLink.target=windowName;
}


function openFigures(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName,"height=475,width=440,scrollbars=yes,resizable=yes");
myWin.focus();
myLink.target=windowName;
}


function openExamples(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName,"height=400,width=510,scrollbars=yes,resizable=yes");
myWin.focus();
myLink.target=windowName;
}


function openTables(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName,"width=540,scrollbars=yes,resizable=yes");
myWin.focus();
myLink.target=windowName;
}


function openSmallscreens(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName,"height=470,width=570,scrollbars=yes,resizable=yes");
myWin.focus();
myLink.target=windowName;
}


function openWindow(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName,"height=490,width=490,scrollbars=yes,resizable=yes");
myWin.focus();
myLink.target=windowName;
}

function openCmsiq2charts(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName,"height=500,width=900,scrollbars=yes,resizable=yes");
myWin.focus();
myLink.target=windowName;
}

//\//////////////////////////////////////////////////////////////////////////////////
// here are functions are called by text inserted into a .doc by using
// the "Yellow Highlight" Gallery item. In that text insert, you specify the date on
// which yellow highlighting (created by the span tag in the first function and
// turned off by the /span tag in the second function) no longer appears in the
// browser. Note that you must have a space after the begin and end scripts
// inserted by the Gallery entry, otherwise the first character of the
// the text that follows it gets cut off.
//
// You could use the revisionGIF function to insert a graphic in front of
// the txet, indicating the text is new or revised or whatever. The .GIF is
// called on.gif, so you'll need to change the filename of the picture you use.
// The revisionGIF function isn't called by Gallery text, but the Yellow Highlight
// entry can be modified: revise the beginrevision(date) function call and
// delete the endrevision(date) function call since it is not needed.
//
// The beginHide and endHide functions allow you to specify the date on which a
// certain block of text should be hidden; i.e., it no longer is displayed by the
// browser.

function beginrevision(date) {
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("<span class=\"Revised\">");
}

function endrevision(date) {
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("</span>");
}

function revisionGIF(date) {
var pic = "on.gif";
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("<img src=" + pic + ">");
}

function beginHide(date) {
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() < curdate.getTime())
document.write("<span class=\"Markup\">");
}

function endHide(date) {
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() < curdate.getTime())
document.write("</span>");
}

// This function is used in H&W documentation since its revisions depend on
// release number, not date. Whenever a particular version no longer needs
// to be identified as new in the text, change the function below (not the
// text) to reflect the latest versions.

function revisionHW(number) {
var pic45 = "ver4_5.gif";
var pic50 = "ver5_0.gif";
var pic55 = "ver5_5.gif";
var pic60 = "ver6_0.gif";
version = (number);
if (version == "4.5")
  document.write("<img src=" + pic45 + ">");
  else {
       if (version == "5.0")
           document.write("<img src=" + pic50 + ">");
       else {
            if (version == "5.5")
                document.write("<img src=" + pic55 + ">");
            else {
                 if (version == "6.0")
                     document.write("<img src=" + pic60 + ">");
              else
                document.write ();
                }
             }
        }
}




