home *** CD-ROM | disk | FTP | other *** search
- //********************* Flag to select TXT or XML Glossary ************************************
- var xmlGloss = true;
-
- //************************** LOCALIZATION VARIABLES ****************************
- //******************************************************************************
- //*************************** EDIT THESE VARIABLES *****************************
- //******************************************************************************
- //******************************************************************************
-
- //SETS THE EXPAND/COLLAPSES ALT TEXT********************************************
- //******************************************************************************
- var L_ExpandCollapseAlt_ToolTip = "Expand or collapse text";
-
- //SETS THE GLOSSARY POPUPS ALT TEXT*********************************************
- //******************************************************************************
- var L_GlossaryAlt_ToolTip = "View definition";
-
- //BROWSER ALERT FOR GLOSSARY POPUPS*********************************************
- //******************************************************************************
- var L_BrowserAlert_Message = "You must use IE4 or greater in order to view popup glossary definitions";
-
- //TIP GIFS ALT TEXT*************************************************************
- //******************************************************************************
- var L_TipImgAlt_AlternativeText = "Tip";
-
- //NOTE GIFS ALT TEXT************************************************************
- //******************************************************************************
- var L_NoteImgAlt_AlternativeText = "Note";
-
- //IMPORTANT GIFS ALT TEXT*******************************************************
- //******************************************************************************
- var L_ImportantImgAlt_AlternativeText = "Important";
-
- //CAUTION GIFS ALT TEXT*********************************************************
- //******************************************************************************
- var L_CautionImgAlt_AlternativeText = "Caution";
-
- //WARNING GIFS ALT TEXT*********************************************************
- //******************************************************************************
- var L_WarningImgAlt_AlternativeText = "Warning";
-
- //CONCEPT GIFS ALT TEXT*********************************************************
- //******************************************************************************
- var L_ConceptImgAlt_ToolTip = "Concept";
-
- //PROCEDURE GIFS ALT TEXT*******************************************************
- //******************************************************************************
- var L_ProcedureImgAlt_ToolTip = "How to ...";
-
- //URL GIFS ALT TEXT*************************************************************
- //******************************************************************************
- var L_UrlImgAlt_ToolTip = "Web link";
-
- //RELATED TOPICS ALT TEXT*******************************************************
- //******************************************************************************
- var L_RelTopAlt_AlternativeText = "View Related Topics";
- var L_RelTopHeader_Text = "<P><B>Related Topics</B></P>";
-
- //GRAPHICS TEXT - HOT TEXT UNDER THE GRAPHIC************************************
- //******************************************************************************
- var L_GraphicClickText_Text = "Enlarge figure";
-
- //IF THE GLOSSARY DOESN'T CONTAIN THE TERM THIS IS THE USER ALERT***************
- //******************************************************************************
- var L_NoDefAlertTitle_Text = "definition unavailable";
- var L_NoDefAlert_Text = "The glossary term and definition do not exist in the glossary file at this time.";
-
- //ERROR TEXT USED WHEN A LINKED FILE DOESN'T LOAD PROPERLY**********************
- //******************************************************************************
- var L_Error_Text = "There was an error loading the HTML file";
-
- //NOTES ALIGNMENT PROPERTIES****************************************************
- //******************************************************************************
- var L_NotesAlign_Style = "STYLE='MARGIN-LEFT:0EM;'";
-
- //RELATED TOPICS POPUP ALIGNMENT PROPERTIES*************************************
- //******************************************************************************
- var L_RelPopAlign1_Style = "STYLE='MARGIN-TOP:-1.4EM; MARGIN-RIGHT:1.6EM;'";
- var L_RelPopAlign1RTL_Style = "STYLE='MARGIN-TOP:-1.4EM; MARGIN-LEFT:1.6EM;'";
- var L_RelPopAlign1A_Style = "STYLE='MARGIN-TOP:-1.4EM;'";
- var L_RelPopAlign2_Style = "STYLE='MARGIN-TOP:-1.7EM; MARGIN-RIGHT:1.6EM;'";
- var L_RelPopAlign2A_Style = "STYLE='MARGIN-TOP:-1.7EM;'";
-
- //RELATED TOPICS: TOP RIGHT OF PAGE ********************************************
- //******************************************************************************
- var L_RelPopPClassRight_Style = "STYLE='TEXT-ALIGN:RIGHT;'";
- var L_RelPopPClassLeft_Style = "STYLE='TEXT-ALIGN:LEFT;'";
-
- //NOTES ************************************************************************
- //******************************************************************************
- var L_NotesLTR_Style = "STYLE='MARGIN-LEFT:1.5EM; MARGIN-TOP:-1.1EM;'";
- var L_NotesRTL_Style = "STYLE='MARGIN-RIGHT:1.5EM; MARGIN-TOP:-1.1EM;'";
-
- //RELATED TOPICS POPUP WINDOWS FONT SIZE VARIABLE*******************************
- //******************************************************************************
- var L_RelPopFontSize_Style = "100%";
-
- //FAQ EXPAND/COLLAPSE ALIGNMENT PROPERTIES**************************************
- //******************************************************************************
- var L_ParentFAQStyle_Style = "10PX";
- var L_ExCoImgAlign_Style = "MARGIN-LEFT:-10PX";
- var L_ExCoImgAlignRTL_Style = "MARGIN-RIGHT:-10PX;";
-
- //GLOSSARY AND RELATED TOPICS POPUP BOX STYLE***********************************
- //******************************************************************************
- var L_PopUpBoxStyle_Style = "VISIBILITY:HIDDEN; POSITION:ABSOLUTE; TOP:0PX; LEFT:0PX; WIDTH:200PX; Z-INDEX:2; PADDING:10PX; BACKGROUND-COLOR:#FFFFCC; BORDER:SOLID 1 #333333;";
-
- //SHORTCUTS - SMJ_F*************************************************************
- //******************************************************************************
- var L_ShortcutDIV_Text = "<P>HTML Help was unable to open the snap-in. You can manually open it by following these instructions:</P>";
- var L_ShortcutImgAlt_AlternativeText = "Start the snap-in now";
- var L_ShortcutAlign_Style = "";
-
-
- // XML Popup Code Begin
- // Added loc variable for "See:"
- var L_See_Text = "<B>See: </B>"
- // Added loc variable for "See also:"
- var L_SeeAlso_Text = "<B>See Also: </B>"
- // XML Popup Code End
-
-
-
-
-
-
-
- //*************************** !!! LOCALIZATION !!! *****************************
- //******************************************************************************
- //************************* DO NOT EDIT ANY FURTHER ****************************
- //******************************************************************************
- //******************************************************************************
-
-
-
-
-
-
-
-
-
- //****************************** BASE VARIABLES ********************************
- //******************************************************************************
- //******************************************************************************
-
-
-
- //********************** TURN ON AND OFF FEATURES HERE *************************
- //******************************************************************************
-
- //TRUE = INLINE GIFS WILL APPEAR LEFT OF GLOSSARY AND EXPAND/COLLAPSE LINKS*****
- //******************************************************************************
- var InlineImgOn = true;
-
-
-
- //***************** SET THE CHM THAT IS CALLED BY THE SCRIPT *******************
- //******************************************************************************
- var moniker = "MS-ITS:";
- var BaseReference = "tblshsp2.chm::/";
- var BeforeReference = moniker + BaseReference;
-
- // XML Popup Code Begin
- // Negated unnecessary hard-coded file name reference
- // Also needs to be removed from all .htm files
- var BeforeReference = ""
- // XML Popup Code End
-
- //SPACER IMAGE******************************************************************
- //******************************************************************************
- var SpacerGiffy = BeforeReference + "Basics/spacer.gif";
-
- //NAVIGATION TREE GRAPHIC ******************************************************
- //******************************************************************************
- var elleRTL = "<IMG STYLE='FILTER: flipH;' SRC='"+BeforeReference+"Basics/elle.gif' HEIGHT='13' WIDTH='11' ALT='' BORDER='0'>"
- var elleLTR = "<IMG SRC='"+BeforeReference+"Basics/elle.gif' HEIGHT='13' WIDTH='11' ALT='' BORDER='0'>"
-
- //MOUSEOUT TEXT COLOR***********************************************************
- //******************************************************************************
- var _Cold = "#00309C";
-
- //MOUSEOVER TEXT COLOR**********************************************************
- //******************************************************************************
- var _Hot = "#FF9A00";
-
- //GLOSSARY CLICK TEXT COLOR*****************************************************
- //******************************************************************************
- var _Click = "#666666";
-
- //HTML HELP OCX CLASS INFORMATION - FOR GRAPHIC AND PROCESS WINDOWS*************
- //******************************************************************************
- var ActX = "TYPE='application/x-oleobject' CLASSID='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'";
-
- //LINKED FILE VARIABLE**********************************************************
- //******************************************************************************
- var inCr = 0;
-
- //LINKED FILE VARIABLE**********************************************************
- //******************************************************************************
- var theObjectIdS = new Array();
-
- //LINKED FILE VARIABLE**********************************************************
- //******************************************************************************
- theObjectIdS[0] = "Scriptlet0";
-
- //PICKS UP AND HOLDS GLOSSARY DEFINITION FROM TXT FILE**************************
- //******************************************************************************
- var defContent = "";
-
- //GLOBAL VARIABLE DECLARATIONS**************************************************
- //******************************************************************************
- var specialCheck, theTimeOut, ReltopicS, TermDef, tiC, WorkText, AnotherTagIndex;
- var noPopups, noPopupsMsg, ieX, ieY, popOpen, theImg, theDiv, PopUp_InAPopUp, e;
- var AnotherCheck, WindowOne, WindowTwo, theTagIndex, theTagIndex2, sParamFILE;
- var lastClickedPopUp, IE4, IE5, checkIt2, checkIt, LiNker, HoldBookTitLe;
- var HoldBookTitLe2;
-
- //XML Popup Code begin
- var xmlTermRoot; //XML term root variable (move into function later)
- var xmlPopupContent; //XML content formatted for popup
- var xmlDOM; //The XMLDOM ActiveX object model
- var xmlDOMLoaded = false; //Not loaded until first glossary popup,
- // then persists for see alsos in popup
- var xmlFile = "Basics/Gloss.xml"; //File containing glossary XML
- //XML Popup Code end
-
-
- //************************ EXPAND/COLLAPSE GIF VARIABLES ***********************
- //******************************************************************************
- if (InlineImgOn){
- //SETS INITIAL HEIGHT AND WIDTH ON THE GIFS*********************************
- //**************************************************************************
- if (document.dir == "rtl"){
- var initialClosed = "<IMG CLASS='ExPand' STYLE='FILTER: flipH;' SRC='"+BeforeReference+"Basics/coe.gif' HEIGHT='9' WIDTH='12' ALT='"+L_ExpandCollapseAlt_ToolTip+"' BORDER='0'>";}
- else{
- var initialClosed = "<IMG CLASS='ExPand' SRC='"+BeforeReference+"Basics/coe.gif' HEIGHT='9' WIDTH='12' ALT='"+L_ExpandCollapseAlt_ToolTip+"' BORDER='0'>";}
- if (document.dir == "rtl"){
- var initialClosed_B = "<IMG CLASS='ExPand' STYLE='"+L_ExCoImgAlignRTL_Style+" FILTER: flipH;' SRC='"+BeforeReference+"Basics/coe.gif' HEIGHT='9' WIDTH='12' ALT='"+L_ExpandCollapseAlt_ToolTip+"' BORDER='0'>";}
- else{
- var initialClosed_B = "<IMG CLASS='ExPand' STYLE='"+L_ExCoImgAlign_Style+"' SRC='"+BeforeReference+"Basics/coe.gif' HEIGHT='9' WIDTH='12' ALT='"+L_ExpandCollapseAlt_ToolTip+"' BORDER='0'>";}
-
- //SETS GIFS FOR THE VARIOUS EXPAND/COLLAPSE STATES**************************
- //**************************************************************************
- var closed = BeforeReference + "Basics/coe.gif";
- var expand = BeforeReference + "Basics/coc.gif";
- var closedHot = BeforeReference + "Basics/coeb.gif";
- var expandHot = BeforeReference + "Basics/cocb.gif";}
-
-
-
- //*************************** GLOSSARY GIF VARIABLES ***************************
- //******************************************************************************
- if (InlineImgOn){
- //SETS INITIAL HEIGHT AND WIDTH ON THE GIFS*********************************
- //**************************************************************************
- if (document.dir == "rtl"){
- var glossInitial = "<IMG CLASS='PopUp' STYLE='FILTER: flipH;' SRC='"+BeforeReference+"Basics/glossarycold.gif' HEIGHT='9' WIDTH='12' ALT='"+L_GlossaryAlt_ToolTip+"' BORDER='0'>";}
- else{
- var glossInitial = "<IMG CLASS='PopUp' SRC='"+BeforeReference+"Basics/glossarycold.gif' HEIGHT='9' WIDTH='12' ALT='"+L_GlossaryAlt_ToolTip+"' BORDER='0'>";}
-
- //SETS GIFS FOR THE VARIOUS GLOSSARY STATES*********************************
- //**************************************************************************
- var glossaryCold = BeforeReference + "Basics/glossarycold.gif";
- var glossaryHot = BeforeReference + "Basics/glossaryhot.gif";
- var glossaryClick = BeforeReference + "Basics/glossaryclick.gif";}
-
- //GLOSSARY POPUP WINDOW VARIABLE************************************************
- //******************************************************************************
- var popupDIV = "<DIV ID='popUpWindow' STYLE='"+L_PopUpBoxStyle_Style+"'>" + "</DIV>";
-
- //GLOSSARY POPUP BROWSER CHECK VARIABLE*****************************************
- //******************************************************************************
- var browser = navigator.appName + " " + parseInt(navigator.appVersion);
-
-
-
- //**************** RELATED TOPICS POPUP FUNCTIONALITY VARIABLES ****************
- //******************************************************************************
-
- //RELATED TOPICS POPUP WINDOW VARIABLE******************************************
- //******************************************************************************
- var RelPopupDiV = "<DIV ID='RelpopUpWindow' STYLE='"+L_PopUpBoxStyle_Style+"'>" + "</DIV>";
-
- //RELATED TOPICS POPUP INITIAL GIF IMG******************************************
- //******************************************************************************
- if (document.dir == "rtl"){
- var InnerNavInitial = "<IMG CLASS='HIDEREL' STYLE='FILTER: flipH;' SRC='"+BeforeReference +"Basics/relglyph.gif' HEIGHT='18' WIDTH='26' ALT='"+L_RelTopAlt_AlternativeText+"' BORDER='0'>";}
- else{
- var InnerNavInitial = "<IMG CLASS='HIDEREL' SRC='"+BeforeReference +"Basics/relglyph.gif' HEIGHT='18' WIDTH='26' ALT='"+L_RelTopAlt_AlternativeText+"' BORDER='0'>";}
-
- //NO RELATED TOPICS POPUP - SPACE GIF HOLDS POSITION FOR H1 AND PROCLABEL*******
- //******************************************************************************
- var RelPopSpacerGif = "<IMG CLASS='HIDEREL' SRC='"+SpacerGiffy+"' HEIGHT='18' WIDTH='26' ALT='' BORDER='0'>";
-
- //RELATED TOPICS POPUP MOUSEOUT GIF*********************************************
- //******************************************************************************
- var InnerNavCold = BeforeReference + "Basics/relglyph.gif";
-
- //RELATED TOPICS POPUP MOUSEOVER GIF********************************************
- //******************************************************************************
- var InnerNavHot = BeforeReference + "Basics/relglyph_.gif";
-
- //RELATED TOPICS POPUP CLICKED GIF**********************************************
- //******************************************************************************
- var InnerNavClick = BeforeReference + "Basics/relglyph_c.gif";
-
-
-
- //************************ RELATED TOPICS GIF VARIABLES ************************
- //******************************************************************************
-
- //SPACER GIF FOR THE RELATED TOPICS LINKS AT THE BOTTOM OF THE PAGE*************
- //******************************************************************************
- var RelTOpSpacerGif = "<IMG STYLE='DISPLAY:NONE;' SRC='"+SpacerGiffy+"' HEIGHT='14' WIDTH='20' ALT='' BORDER='0'>";
-
-
-
- //***************************** NOTES GIF VARIABLES ****************************
- //******************************************************************************
-
- //SETS TIP GIF******************************************************************
- //******************************************************************************
- var tipImg = "<IMG "+L_NotesAlign_Style+" SRC='"+BeforeReference+"Basics/tip.gif' HEIGHT='11' WIDTH='12' ALT='"+L_TipImgAlt_AlternativeText+"' BORDER='0'>";
-
- //SETS NOTE GIF*****************************************************************
- //******************************************************************************
- var noteImg = "<IMG "+L_NotesAlign_Style+" SRC='"+BeforeReference+"Basics/note.gif' HEIGHT='11' WIDTH='12' ALT='"+L_NoteImgAlt_AlternativeText+"' BORDER='0'>";
-
- //SETS IMPORTANT GIF************************************************************
- //******************************************************************************
- var importantImg = "<IMG "+L_NotesAlign_Style+" SRC='"+BeforeReference+"Basics/important.gif' HEIGHT='11' WIDTH='12' ALT='"+L_ImportantImgAlt_AlternativeText+"' BORDER='0'>";
-
- //SETS CAUTION GIF**************************************************************
- //******************************************************************************
- var cautionImg = "<IMG "+L_NotesAlign_Style+" SRC='"+BeforeReference+"Basics/caution.gif' HEIGHT='11' WIDTH='12' ALT='"+L_CautionImgAlt_AlternativeText+"' BORDER='0'>";
-
- //SETS WARNING GIF**************************************************************
- //******************************************************************************
- var warningImg = "<IMG "+L_NotesAlign_Style+" SRC='"+BeforeReference+"Basics/warning.gif' HEIGHT='11' WIDTH='12' ALT='"+L_WarningImgAlt_AlternativeText+"' BORDER='0'>";
-
-
-
-
- //**************************** LINKED FILE VARIABLES ***************************
- //******************************************************************************
-
- //ENABLES LINKED FILE TO WORK***************************************************
- //******************************************************************************
- function public_get_innerHTML(){return document.body.innerHTML;}
-
- //FOR THE LINKED FILE - STORES INITIAL TIMEOUT**********************************
- //******************************************************************************
- var tiC = 0;
-
-
-
- //**************************** SHORTCUT GIF VARIABLES **************************
- //************************************ SMJ_F ***********************************
-
- //SETS SHORTCUT GIFS************************************************************
- //******************************************************************************
- var shortcutIMG_Hot = "<IMG "+L_ShortcutAlign_Style+" SRC='"+BeforeReference+"Basics/shortcuthot.gif' HEIGHT='9' WIDTH='12' ALT='"+L_ShortcutImgAlt_AlternativeText+"' BORDER='0'>";
- var shortcutIMG_Cold = "<IMG "+L_ShortcutAlign_Style+" SRC='"+BeforeReference+"Basics/shortcutcold.gif' HEIGHT='9' WIDTH='12' ALT='"+L_ShortcutImgAlt_AlternativeText+"' BORDER='0'>";
- var shortcutIMG_Selected = "<IMG "+L_ShortcutAlign_Style+" SRC='"+BeforeReference+"Basics/shortcutclick.gif' HEIGHT='9' WIDTH='12' ALT='"+L_ShortcutImgAlt_AlternativeText+"' BORDER='0'>";
-
-
-
-
-
-
-
-
-
- //******************************** FUNCTIONS ***********************************
- //******************************************************************************
- //******************************************************************************
-
-
-
- //******************* WRITES ALTERED/ADDITIONAL CSS VALUES *********************
- //******************************************************************************
- if (!InlineImgOn){
- var CSSInsertion = "<STYLE><!--";
- CSSInsertion += "DIV.EXPAND {MARGIN-LEFT:1EM; MARGIN-RIGHT:1EM;}";
- CSSInsertion += "DIV.EXPAND2 {MARGIN-LEFT:1EM; MARGIN-RIGHT:1EM;}";
- CSSInsertion += "@FONT-FACE {FONT-FAMILY:MYFONTONE; FONT-STYLE:NORMAL;";
- CSSInsertion += "FONT-WEIGHT:NORMAL; SRC:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/FRANKLI1.eot);}";
- CSSInsertion += "@FONT-FACE {FONT-FAMILY:MYFONTTWO; FONT-STYLE:NORMAL;";
- CSSInsertion += "FONT-WEIGHT:NORMAL; SRC:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/FRANKLI0.eot);}";
- CSSInsertion += ".BOOKTITLEA {BACKGROUND-IMAGE:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/banner.gif);}";
- CSSInsertion += ".BOOKTITLEB {BACKGROUND-IMAGE:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/banner_.gif);}";
- CSSInsertion += ".RTLIMAGEARTL {BACKGROUND-IMAGE:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/banner2.gif);}";
- CSSInsertion += ".RTLIMAGEBRTL {BACKGROUND-IMAGE:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/banner_2.gif);}";
- CSSInsertion += "//--></STYLE>";
- document.write(CSSInsertion);}
- else{
- var CSSInsertion = "<STYLE><!--";
- CSSInsertion += "@FONT-FACE {FONT-FAMILY:MYFONTONE; FONT-STYLE:NORMAL;";
- CSSInsertion += "FONT-WEIGHT:NORMAL; SRC:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/FRANKLI1.eot);}";
- CSSInsertion += "@FONT-FACE {FONT-FAMILY:MYFONTTWO; FONT-STYLE:NORMAL;";
- CSSInsertion += "FONT-WEIGHT:NORMAL; SRC:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/FRANKLI0.eot);}";
- CSSInsertion += ".BOOKTITLEA {BACKGROUND-IMAGE:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/banner.gif);}";
- CSSInsertion += ".BOOKTITLEB {BACKGROUND-IMAGE:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/banner_.gif);}";
- CSSInsertion += ".RTLIMAGEARTL {BACKGROUND-IMAGE:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/banner2.gif);}";
- CSSInsertion += ".RTLIMAGEBRTL {BACKGROUND-IMAGE:URL";
- CSSInsertion += "(" +BeforeReference+ "Basics/banner_2.gif);}";
- CSSInsertion += "//--></STYLE>";
- document.write(CSSInsertion);}
-
-
-
- //********************* BROWSER CHECK FOR GLOSSARY POPUPS **********************
- //******************************************************************************
- if ((browser == 'Microsoft Internet Explorer 4') || (browser == 'Microsoft Internet Explorer 5')){
- IE4 = true;}
-
- else{
- noPopups = true;}
-
-
-
- //********************* BROWSER CHECK FOR GLOSSARY POPUPS **********************
- //******************************************************************************
- if ((navigator.appVersion.indexOf("MSIE 5") > 0) || ((navigator.appVersion.indexOf("MSIE") > 0 && parseInt(navigator.appVersion) >= 5))){
- IE5 = true;}
-
-
-
- //****************************** INITIALIZATION ********************************
- //******************************************************************************
- function loadInitialThings(){
-
- //THIS SECTION EXAMINES ALL SPAN TAGS*****************************************
- //****************************************************************************
- var GetTheSpans = document.all.tags('SPAN');
- for (var a = 0; a < GetTheSpans.length; a++){
-
- //THIS WRITES THE LINKED FILE OBJECTS TO THE PAGE***************************
- //**************************************************************************
- if (GetTheSpans[a].id.indexOf('linkedFile') != -1){
- inCr += 1;
- var theIdIs = "Scriptlet" + inCr;
-
- //THIS VARIABLE CAPTURES AND STORES THE PROPER HTML PAGE****************
- //**********************************************************************
- var theUrlIs;
-
- //THIS SECTION GRABS THE PROPER HREF - XXX.HTM**************************
- //**********************************************************************
- var aaa;
- var GetTheAs = GetTheSpans[a].all.tags('A');
- for (var b = 0; b < GetTheAs.length; b++){
- aaa = GetTheAs[b].href.toLowerCase();
- var bbb = aaa.lastIndexOf('/');
- var ccc = aaa.substring(aaa, (bbb + 1));
- aaa = aaa.replace(ccc,'');
- break;}
-
- //IF IT'S IE5 ADD REFERENCE TO CHM SO IT CAN PRINT - WONT PRINT IN IE4**
- //**********************************************************************
- if (IE5){
- theUrlIs = BeforeReference + aaa;}
- else{
- theUrlIs = aaa;}
-
- //THIS SECTION BUILDS THE OBJECTS THAT HOLD THE PROPER HTML PAGES*******
- //**********************************************************************
- var h = "<OBJECT ID='"+theIdIs+"' STYLE='display:none'";
- h = h + "TYPE='text/x-scriptlet' DATA='"+theUrlIs+"'>";
- h = h + "</OBJECT>";
-
- //NOW ADD LINKED FILE OBJECTS TO THE DOCUMENT***************************
- //**********************************************************************
- document.body.insertAdjacentHTML('beforeEnd', h);
-
- //COLLECT ALL NEWLY WRITTEN OBJECT ID'S*********************************
- //**********************************************************************
- theObjectIdS[inCr] = "Scriptlet" + inCr;
- GetTheSpans[a].outerHTML = "<SPAN ID='linkedFile"+inCr+"' CLASS='linkedfile'></SPAN>";
- LiNker = true;}}
-
- //IF THERE ARE NO LINKED FILES FINISH LOADING THE PAGE**********************
- //**************************************************************************
- finishOnLoad();
-
-
- return;}
-
-
-
- //**************************** CALL TO A LINKED FILE ***************************
- //******************************************************************************
- function displayLinkedDocument(){
-
- //SCAN OBJECT ARRAY - GRAB OBJECT ID AND OBJECT TO ADD CONTENT TO***********
- //**************************************************************************
- var a = theObjectIdS.length;
- for (var b = 1; b < a; b++){
- var ItsIt = "linkedFile" + b;
- var theSpot = theObjectIdS[b];
- var seeme;
-
- if (document.all[theSpot].object.innerHTML != null){
- seeme = document.all[theSpot].object.innerHTML;
- //alert(seeme);
-
- //THIS REMOVES EXTRANEOUS CONTENT FROM THE LINKED FILE****************
- //(a-bryanf)**********************************************************
- //********************************************************************
- var bbb = seeme.indexOf('<A name');
- //alert("bbb="+bbb);
- if (seeme.indexOf('<!--REL') != -1){
- var ccc = seeme.lastIndexOf('<!--REL');}
- //alert("relYes="+ccc);
- else{
- var ccc= (seeme.lastIndexOf('<CENTER><B>This information is preliminary.')-4);}
- //alert("relNo="+ccc);
- if ((bbb != -1) && (ccc != -1)){
- var aaa = seeme.substring((bbb-4), ccc);
- seeme = aaa;}}
- //alert(seeme);
-
-
- //IF PAGE RETURNS UNDEFINED THE TIMEOUT IS UPPED AND IT'S TRIED AGAIN***
- //**********************************************************************
- else{
- for (theTimeOut = 1; theTimeOut < 5; theTimeOut++){
- if (theTimeOut != 5){
- tiC =+ 1000;
- window.setTimeout('displayLinkedDocument()', tiC);}
- if (theTimeOut == 5){
- seeme = L_Error_Text;}}}
-
- //THIS WRITES THE OBJECT'S INNERHTML TO THE PROPER LOCATION***********
- //********************************************************************
- var theDocument = document.all[ItsIt];
- theDocument.innerHTML = seeme;
-
- LiNker = false;}
-
-
- return;}
-
-
-
- //**************************** FINISH LOADING THE PAGE *************************
- //******************************************************************************
- function finishOnLoad(){
-
- //THIS FIRST SECTION EXAMINES ALL ANCHOR TAGS*********************************
- //****************************************************************************
- var GetTheAs = document.all.tags('A');
- for (var a = 0; a < GetTheAs.length; a++){
-
- //THIS WRITES THE THUMBNAIL GIFS********************************************
- //**************************************************************************
- var LtrOrRtlFloat;
- if (document.dir == "rtl"){
- LtrOrRtlFloat = "float: right;";}
- else{
- LtrOrRtlFloat = "float: left;";}
-
- if (GetTheAs[a].id.indexOf('ThumbNail') != -1){
- var sThumbnailImg = GetTheAs[a].href.toLowerCase();
- var sAltText = GetTheAs[a].title;
- sThumbnailImg = get_TheUrL(sThumbnailImg);
- GetTheAs[a].innerHTML = "<IMG CLASS='thumbnail' SRC='"+moniker+sThumbnailImg+"' VSPACE='4' ALT='"+sAltText+"'><BR>"+ L_GraphicClickText_Text +"<BR>";
- GetTheAs[a].outerHTML = "<DIV CLASS='thumbnail' STYLE='" + LtrOrRtlFloat +"' >"+ GetTheAs[a].outerHTML +"</DIV>";}
-
- //THIS WRITES THE SHORTCUT GIFS - SMJ_J*************************************
- //**************************************************************************
- else if (GetTheAs[a].id.indexOf('shortcutA') != -1){
- var theA = GetTheAs[a];
- if (InlineImgOn){
- theA.innerHTML = shortcutIMG_Cold + theA.innerHTML;}
- theA.title = L_ShortcutImgAlt_AlternativeText;}
-
-
- //THIS WRITES THE GLOSSARY GIFS*********************************************
- //**************************************************************************
- else if (GetTheAs[a].id.indexOf('PopUp') != -1){
- GetTheAs[a].title = L_GlossaryAlt_ToolTip;
- if (InlineImgOn){
- GetTheAs[a].innerHTML = glossInitial + GetTheAs[a].innerHTML;}}
-
- //THIS WRITES THE EXPAND/COLLAPSE GIFS**************************************
- //**************************************************************************
- else if (GetTheAs[a].id.indexOf('ExPand') != -1){
- GetTheAs[a].title = L_ExpandCollapseAlt_ToolTip;
- if (InlineImgOn){
- GetTheAs[a].innerHTML = initialClosed + GetTheAs[a].innerHTML;}}
-
- //THIS WRITES THE FAQ EXPAND/COLLAPSE GIFS AND HTML*************************
- //**************************************************************************
- else if (GetTheAs[a].id.indexOf('FAQExPanD') != -1){
- if (InlineImgOn){
- if (document.dir == "rtl"){
- GetTheAs[a].parentElement.style.marginRight = L_ParentFAQStyle_Style;
- GetTheAs[a].outerHTML = "<A ID='ExPand' HREF='#'>" + initialClosed_B + GetTheAs[a].innerHTML + "</A>";}
- else{
- GetTheAs[a].parentElement.style.marginLeft = L_ParentFAQStyle_Style;
- GetTheAs[a].outerHTML = "<A ID='ExPand' HREF='#'>" + initialClosed_B + GetTheAs[a].innerHTML + "</A>";}}
- else{
- GetTheAs[a].outerHTML = "<A ID='ExPand' HREF='#'>" + GetTheAs[a].innerHTML + "</A>";}
- GetTheAs[a].title = L_ExpandCollapseAlt_ToolTip;}
-
- //THIS WRITES THE CONCEPT HTML**********************************************
- //**************************************************************************
- else if (GetTheAs[a].id.indexOf('Concept_Gif') != -1){
- GetTheAs[a].outerHTML = RelTOpSpacerGif + "<P CLASS='margin'><FONT TITLE='"+L_ConceptImgAlt_ToolTip+"'>" + GetTheAs[a].outerHTML + "</FONT></P>";}
-
- //THIS WRITES THE PROCEDURE HTML********************************************
- //**************************************************************************
- else if (GetTheAs[a].id.indexOf('Procedure_Gif') != -1){
- GetTheAs[a].outerHTML = RelTOpSpacerGif + "<P CLASS='margin'><FONT TITLE='"+L_ProcedureImgAlt_ToolTip+"'>" + GetTheAs[a].outerHTML + "</FONT></P>";}
-
- //THIS WRITES THE WORLD WIDE WEB HTML***************************************
- //**************************************************************************
- else if (GetTheAs[a].id.indexOf('Url_Gif') != -1){
- GetTheAs[a].outerHTML = RelTOpSpacerGif + "<P CLASS='margin'><FONT TITLE='"+L_UrlImgAlt_ToolTip+"'>" + GetTheAs[a].outerHTML + "</FONT></P>";}}
-
-
- //THIS SECOND SECTION EXAMINES ALL OL TAGS************************************
- //****************************************************************************
- var GetTheOls = document.all.tags('OL');
- for (var a = 0; a < GetTheOls.length; a++){
-
- //THIS WRITES THE INDENTS FOR THE NAVIGATION TREE***************************
- //**************************************************************************
- if (GetTheOls[a].id.indexOf('Indent_Tree') != -1){
- var caught = GetTheOls[a];
- var iNum = -.25;
- for (var c = 0; c < caught.all.length; c++){
- if (caught.all[c].id.indexOf('SpacE') != -1){
- if (document.dir == "rtl"){
- caught.all[c].innerHTML = elleRTL + caught.all[c].innerHTML
- caught.all[c].style.marginRight = (iNum + 'em');}
- else{
- caught.all[c].innerHTML = elleLTR + caught.all[c].innerHTML
- caught.all[c].style.marginLeft = (iNum + 'em');}
- iNum += .75;}}}}
-
-
- //THE THIRD SECTION EXAMINES ALL DIV TAGS*************************************
- //****************************************************************************
- var GetTheDivs = document.all.tags('DIV');
- for (var a = 0; a < GetTheDivs.length; a++){
-
- //THIS SETS UP THE BOOK TITLES FOR THE TOP LEVEL BOOK***********************
- //**************************************************************************
- if (GetTheDivs[a].id.indexOf('BookTopTitlE') != -1){
- var c = GetTheDivs[a].innerHTML;
-
- //HOLDS BOOKTITLE INFORMATION*********************************************
- //************************************************************************
- HoldBookTitLe = c;
-
- //THIS SECTION REMOVES HTML HELP SEARCH HTML******************************
- //************************************************************************
- if (c.indexOf('BACKGROUND-COLOR:') != -1){
- var aa = "</FONT>";
- c = c.replace(aa, '');
- var bb = c.indexOf('<');
- var cc = c.indexOf('>');
- var dd = c.substring(bb, (cc + 1));
- c = c.replace(dd,'');
-
- //HOLDS BOOKTITLE INFORMATION*******************************************
- //**********************************************************************
- HoldBookTitLe = c;
-
- //THE STRING "C" IS FREE OF HTML HELP ADDED MATERIAL********************
- //**********************************************************************
- var d, f, g, h, test;
- if(HoldBookTitLe.length > 60){
- d = (parseInt(c.length/3));
- f = (parseInt(c.length/8));
- g = ((d) + (f));
- h = c.substring(0, g);
- test = h.lastIndexOf(' ');}
- else{
- d = (parseInt(c.length/3));
- f = (parseInt(c.length/10));
- g = ((d) + (f));
- h = c.substring(0, g);
- test = h.lastIndexOf(' ');}
-
- if (document.dir == "rtl"){
- if(test == -1){
- var firstString = c;
- GetTheDivs[a].outerHTML = "<SPAN CLASS='PrintBookTitle' STYLE='TEXT-ALIGN:LEFT;'>" +HoldBookTitLe+ "<HR WIDTH='100%' NOSHADE STYLE='HEIGHT:1PX; WIDTH:100%;'></SPAN>\n\n<DIV CLASS='booktitleARTL'><DIV CLASS='rtlimageARTL'></DIV><DIV CLASS='booktitletextoneARTL' ID='booktitletextoneARTL'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='booktitletexttwoARTL' ID='booktitletexttwoARTL'><NOBR><IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='booktitlespecialspacerRTL'></DIV><DIV CLASS='booktitlespacerARTL'></DIV>\n\n";}
- else{
- var firstString = h.substring(0, test);
- var secondString = c.substring(((firstString.length) + (1)), c.length);
- GetTheDivs[a].outerHTML = "<SPAN CLASS='PrintBookTitle' STYLE='TEXT-ALIGN:LEFT;'>" +HoldBookTitLe+ "<HR WIDTH='100%' NOSHADE STYLE='HEIGHT:1PX; WIDTH:100%;'></SPAN>\n\n<DIV CLASS='booktitleARTL'><DIV CLASS='rtlimageARTL'></DIV><DIV CLASS='booktitletextoneARTL' ID='booktitletextoneARTL'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='booktitletexttwoARTL' ID='booktitletexttwoARTL'><NOBR>"+ secondString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='booktitlespecialspacerRTL'></DIV><DIV CLASS='booktitlespacerARTL'></DIV>\n\n";}}
- else{
- if(test == -1){
- var firstString = c;
- GetTheDivs[a].outerHTML = "<SPAN CLASS='PrintBookTitle' STYLE='TEXT-ALIGN:RIGHT;'>" +HoldBookTitLe+ "<HR WIDTH='100%' NOSHADE STYLE='HEIGHT:1PX; WIDTH:100%;'></SPAN>\n\n<DIV CLASS='BookTitleA'><DIV CLASS='BookTitleTextOneA' ID='BookTitleTextOneA'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='BookTitleTextTwoA' ID='BookTitleTextTwoA'><NOBR><IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='BookTitleSpecialSpacer'></DIV><DIV CLASS='BookTitleSpacerA'></DIV>\n\n";}
- else{
- var firstString = h.substring(0, test);
- var secondString = c.substring(((firstString.length) + (1)), c.length);
- GetTheDivs[a].outerHTML = "<SPAN CLASS='PrintBookTitle' STYLE='TEXT-ALIGN:RIGHT;'>" +HoldBookTitLe+ "<HR WIDTH='100%' NOSHADE STYLE='HEIGHT:1PX; WIDTH:100%;'></SPAN>\n\n<DIV CLASS='BookTitleA'><DIV CLASS='BookTitleTextOneA' ID='BookTitleTextOneA'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='BookTitleTextTwoA' ID'BookTitleTextTwoA'><NOBR>"+ secondString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='BookTitleSpecialSpacer'></DIV><DIV CLASS='BookTitleSpacerA'></DIV>\n\n";}}}
-
- //THIS OCCURS WHEN HTML HELP DOESN'T ADD HTML*****************************
- //************************************************************************
- else{
- var d, f, g, h, test;
- if(HoldBookTitLe.length > 60){
- d = (parseInt(c.length/3));
- f = (parseInt(c.length/8));
- g = ((d) + (f));
- h = c.substring(0, g);
- test = h.lastIndexOf(' ');}
- else{
- d = (parseInt(c.length/3));
- f = (parseInt(c.length/10));
- g = ((d) + (f));
- h = c.substring(0, g);
- test = h.lastIndexOf(' ');}
-
- if (document.dir == "rtl"){
- if(test == -1){
- var firstString = c;
- GetTheDivs[a].outerHTML = "<SPAN CLASS='PrintBookTitle' STYLE='TEXT-ALIGN:LEFT;'>" +HoldBookTitLe+ "<HR WIDTH='100%' NOSHADE STYLE='HEIGHT:1PX; WIDTH:100%;'></SPAN>\n\n<DIV CLASS='booktitleARTL'><DIV CLASS='rtlimageARTL'></DIV><DIV CLASS='booktitletextoneARTL' ID='booktitletextoneARTL'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='booktitletexttwoARTL' ID='booktitletexttwoARTL'><NOBR><IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='booktitlespecialspacerRTL'></DIV><DIV CLASS='booktitlespacerARTL'></DIV>\n\n";}
- else{
- var firstString = h.substring(0, test);
- var secondString = c.substring(((firstString.length) + (1)), c.length);
- GetTheDivs[a].outerHTML = "<SPAN CLASS='PrintBookTitle' STYLE='TEXT-ALIGN:LEFT;'>" +HoldBookTitLe+ "<HR WIDTH='100%' NOSHADE STYLE='HEIGHT:1PX; WIDTH:100%;'></SPAN>\n\n<DIV CLASS='booktitleARTL'><DIV CLASS='rtlimageARTL'></DIV><DIV CLASS='booktitletextoneARTL' ID='booktitletextoneARTL'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='booktitletexttwoARTL' ID='booktitletexttwoARTL'><NOBR>"+ secondString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='booktitlespecialspacerRTL'></DIV><DIV CLASS='booktitlespacerARTL'></DIV>\n\n";}}
- else{
- if(test == -1){
- var firstString = c;
- GetTheDivs[a].outerHTML = "<SPAN CLASS='PrintBookTitle' STYLE='TEXT-ALIGN:RIGHT;'>" +HoldBookTitLe+ "<HR WIDTH='100%' NOSHADE STYLE='HEIGHT:1PX; WIDTH:100%;'></SPAN>\n\n<DIV CLASS='BookTitleA'><DIV CLASS='BookTitleTextOneA' ID='BookTitleTextOneA'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='BookTitleTextTwoA' ID='BookTitleTextTwoA'><NOBR><IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='BookTitleSpecialSpacer'></DIV><DIV CLASS='BookTitleSpacerA'></DIV>\n\n";}
- else{
- var firstString = h.substring(0, test);
- var secondString = c.substring(((firstString.length) + (1)), c.length);
- GetTheDivs[a].outerHTML = "<SPAN CLASS='PrintBookTitle' STYLE='TEXT-ALIGN:RIGHT;'>" +HoldBookTitLe+ "<HR WIDTH='100%' NOSHADE STYLE='HEIGHT:1PX; WIDTH:100%;'></SPAN>\n\n<DIV CLASS='BookTitleA'><DIV CLASS='BookTitleTextOneA' ID='BookTitleTextOneA'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='BookTitleTextTwoA' ID='BookTitleTextTwoA'><NOBR>"+ secondString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='BookTitleSpecialSpacer'></DIV><DIV CLASS='BookTitleSpacerA'></DIV>\n\n";}}}
- if(HoldBookTitLe.length > 60){
- if(document.dir == "rtl"){
- booktitletextoneARTL.style.fontSize = "10PT"
- booktitletexttwoARTL.style.fontSize = "8PT";
- booktitletexttwoARTL.style.letterSpacing = "-.2MM";
- booktitletextoneARTL.style.top = "2PX";
- booktitletexttwoARTL.style.top = "14PX";}
- else{
- BookTitleTextOneA.style.fontSize = "10PT"
- BookTitleTextTwoA.style.fontSize = "8PT";
- BookTitleTextTwoA.style.letterSpacing = "-.2MM";
- BookTitleTextOneA.style.top = "2PX";
- BookTitleTextTwoA.style.top = "14PX";}}}
-
-
- //THIS SETS UP THE BOOK TITLES FOR ALL OTHER THAN THE TOP LEVEL BOOK********
- //**************************************************************************
- else if (GetTheDivs[a].id.indexOf('BooKTitlE') != -1){
- var c = GetTheDivs[a].innerHTML;
-
- //HOLDS BOOKTITLE INFORMATION*********************************************
- //************************************************************************
- HoldBookTitLe = c;
-
- //THIS SECTION REMOVES HTML HELP SEARCH HTML******************************
- //************************************************************************
- if (c.indexOf('BACKGROUND-COLOR:') != -1){
- var aa = "</FONT>";
- c = c.replace(aa, '');
- var bb = c.indexOf('<');
- var cc = c.indexOf('>');
- var dd = c.substring(bb, (cc + 1));
- c = c.replace(dd,'');
-
- //HOLDS BOOKTITLE INFORMATION*******************************************
- //**********************************************************************
- HoldBookTitLe = c;
-
- //THE STRING "C" IS FREE OF HTML HELP ADDED MATERIAL********************
- //**********************************************************************
- var d, f, g, h, test;
- if(HoldBookTitLe.length > 60){
- d = (parseInt(c.length/3));
- f = (parseInt(c.length/8));
- g = ((d) + (f));
- h = c.substring(0, g);
- test = h.lastIndexOf(' ');}
- else{
- d = (parseInt(c.length/3));
- f = (parseInt(c.length/10));
- g = ((d) + (f));
- h = c.substring(0, g);
- test = h.lastIndexOf(' ');}
-
- if (document.dir == "rtl"){
- if(test == -1){
- var firstString = c;
- GetTheDivs[a].outerHTML = "<DIV CLASS='booktitleBRTL'><DIV CLASS='rtlimageBRTL'></DIV><DIV CLASS='booktitletextoneBRTL' ID='booktitletextoneBRTL'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='booktitletexttwoBRTL' ID='booktitletexttwoBRTL'><NOBR><IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='booktitlespacerBRTL'></DIV>\n\n";}
- else{
- var firstString = h.substring(0, test);
- var secondString = c.substring(((firstString.length) + (1)), c.length);
- GetTheDivs[a].outerHTML = "<DIV CLASS='booktitleBRTL'><DIV CLASS='rtlimageBRTL'></DIV><DIV CLASS='booktitletextoneBRTL' ID='booktitletextoneBRTL'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='booktitletexttwoBRTL' ID='booktitletexttwoBRTL'><NOBR>"+ secondString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='booktitlespacerBRTL'></DIV>\n\n";}}
- else{
- if(test == -1){
- var firstString = c;
- GetTheDivs[a].outerHTML = "<DIV CLASS='BookTitleB'><DIV CLASS='BookTitleTextOneB' ID='BookTitleTextOneB'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='BookTitleTextTwoB' ID='BookTitleTextTwoB'><NOBR><IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='BookTitleSpacerB'></DIV>\n\n";}
- else{
- var firstString = h.substring(0, test);
- var secondString = c.substring(((firstString.length) + (1)), c.length);
- GetTheDivs[a].outerHTML = "<DIV CLASS='BookTitleB'><DIV CLASS='BookTitleTextOneB' ID='BookTitleTextOneB'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='BookTitleTextTwoB' ID='BookTitleTextTwoB'><NOBR>"+ secondString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='BookTitleSpacerB'></DIV>\n\n";}}}
-
- //THIS OCCURS WHEN HTML HELP DOESN'T ADD HTML*****************************
- //************************************************************************
- else{
- var d, f, g, h, test;
- if(HoldBookTitLe.length > 60){
- d = (parseInt(c.length/3));
- f = (parseInt(c.length/8));
- g = ((d) + (f));
- h = c.substring(0, g);
- test = h.lastIndexOf(' ');}
- else{
- d = (parseInt(c.length/3));
- f = (parseInt(c.length/10));
- g = ((d) + (f));
- h = c.substring(0, g);
- test = h.lastIndexOf(' ');}
-
- if (document.dir == "rtl"){
- if(test == -1){
- var firstString = c;
- GetTheDivs[a].outerHTML = "<DIV CLASS='booktitleBRTL'><DIV CLASS='rtlimageBRTL'></DIV><DIV CLASS='booktitletextoneBRTL' ID='booktitletextoneBRTL'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='booktitletexttwoBRTL' ID='booktitletexttwoBRTL'><NOBR><IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='booktitlespacerBRTL'></DIV>\n\n";}
- else{
- var firstString = h.substring(0, test);
- var secondString = c.substring(((firstString.length) + (1)), c.length);
- GetTheDivs[a].outerHTML = "<DIV CLASS='booktitleBRTL'><DIV CLASS='rtlimageBRTL'></DIV> <DIV CLASS='booktitletextoneBRTL' ID='booktitletextoneBRTL'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='booktitletexttwoBRTL' ID='booktitletexttwoBRTL'><NOBR>"+ secondString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='booktitlespacerBRTL'></DIV>\n\n";}}
- else{
- if(test == -1){
- var firstString = c;
- GetTheDivs[a].outerHTML = "<DIV CLASS='BookTitleB'><DIV CLASS='BookTitleTextOneB' ID='BookTitleTextOneB'><NOBR>"+ firstString +"<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='BookTitleTextTwoB' ID='BookTitleTextTwoB'><NOBR><IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='BookTitleSpacerB'></DIV>\n\n";}
- else{
- var firstString = h.substring(0, test);
- var secondString = c.substring(((firstString.length) + (1)), c.length);
- GetTheDivs[a].outerHTML = "<DIV CLASS='BookTitleB'><DIV CLASS='BookTitleTextOneB' ID='BookTitleTextOneB'><NOBR>"+ firstString + "<IMG SRC='"+SpacerGiffy+"' WIDTH='58' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERA'></NOBR></DIV><DIV CLASS='BookTitleTextTwoB' ID='BookTitleTextTwoB'><NOBR>"+ secondString + "<IMG SRC='"+SpacerGiffy+"' WIDTH='75' HEIGHT='1' ALT='' BORDER='0' CLASS='SPACERB'></NOBR></DIV></DIV><DIV CLASS='BookTitleSpacerB'></DIV>\n\n";}}}
- if(HoldBookTitLe.length > 60){
- if(document.dir == "rtl"){
- booktitletextoneBRTL.style.fontSize = "10PT"
- booktitletexttwoBRTL.style.fontSize = "8PT";
- booktitletexttwoBRTL.style.letterSpacing = "-.2MM";
- booktitletextoneBRTL.style.top = "2PX";
- booktitletexttwoBRTL.style.top = "14PX";}
- else{
- BookTitleTextOneB.style.fontSize = "10PT"
- BookTitleTextTwoB.style.fontSize = "8PT";
- BookTitleTextTwoB.style.letterSpacing = "-.2MM";
- BookTitleTextOneB.style.top = "2PX";
- BookTitleTextTwoB.style.top = "14PX";}}}
-
- //THIS GOES TO THE SECTION THAT CHECKS IF AN HTML HELP SEARCH OCCURRED******
- //**************************************************************************
- else if ((GetTheDivs[a].className.toLowerCase() == 'expand') || (GetTheDivs[a].className.toLowerCase() == 'expand2')){
- var c = document.all(GetTheDivs[a].sourceIndex);
- var d = GetTheDivs[a].innerHTML;
- if ((d.indexOf('<FONT') != -1) && (d.indexOf('BACKGROUND-COLOR:') != -1)){
- c.style.display = "block";}}}
-
-
- //THE FOURTH SECTION EXAMINES ALL P TAGS**************************************
- //****************************************************************************
- var GetThePs = document.all.tags('P');
- for (var a = 0; a < GetThePs.length; a++){
-
- //THIS WRITES THE PROPER NOTE GIFS******************************************
- //**************************************************************************
- if (document.dir == "rtl"){
- var NewClass = L_NotesRTL_Style;}
- else{
- var NewClass = L_NotesLTR_Style;}
-
- if (GetThePs[a].id.indexOf('Alert_Tip') != -1){
- GetThePs[a].outerHTML = tipImg + "<P "+NewClass+">" + GetThePs[a].innerHTML + "</P>";}
- else if (GetThePs[a].id.indexOf('Alert_Note') != -1){
- GetThePs[a].outerHTML = noteImg + "<P "+NewClass+">" + GetThePs[a].innerHTML + "</P>";}
- else if (GetThePs[a].id.indexOf('Alert_Important') != -1){
- GetThePs[a].outerHTML = importantImg + "<P "+NewClass+">" + GetThePs[a].innerHTML + "</P>";}
- else if (GetThePs[a].id.indexOf('Alert_Caution') != -1){
- GetThePs[a].outerHTML = cautionImg + "<P "+NewClass+">" + GetThePs[a].innerHTML + "</P>";}
- else if (GetThePs[a].id.indexOf('Alert_Warning') != -1){
- GetThePs[a].outerHTML = warningImg + "<P "+NewClass+">" + GetThePs[a].innerHTML + "</P>";}}
-
-
- //THIS SETS UP THE RELATED TOPICS POPUPS - WRITES TEXT AND STORES POPUP INFO**
- //****************************************************************************
-
- //DETERMINE RTL OR LTR DOCUMENT AND SET THE P CLASS ACCORDINGLY***************
- //****************************************************************************
- var PClassSet, H1TitleStyle
- if (document.dir == "rtl"){
- PClassSet = L_RelPopPClassLeft_Style;
- H1TitleStyle = L_RelPopAlign1RTL_Style;}
- else{
- PClassSet = L_RelPopPClassRight_Style;
- H1TitleStyle = L_RelPopAlign1_Style;}
-
- if (document.all.item('TiTLE') != null){
- if (((IE4) && (document.all.item('LinKs')) != null)){
- ReltopicS = LinKs.innerHTML;
- if (TiTLE.tagName == 'H1'){
- TiTLE.outerHTML = "<P "+PClassSet+"><A HREF='#' ID='InnerNav' TITLE='"+L_RelTopAlt_AlternativeText+"'>" +InnerNavInitial+ "</A></P><H1 "+ H1TitleStyle +">" + TiTLE.innerHTML + "</H1>";}
- else{
- TiTLE.outerHTML = "<P "+PClassSet+"><A HREF='#' ID='InnerNav' TITLE='"+L_RelTopAlt_AlternativeText+"'>" +InnerNavInitial+ "</A></P><P CLASS='PROCLABEL' "+L_RelPopAlign2_Style+">" + TiTLE.innerHTML + "</P>";}}
- else{
- if (TiTLE.tagName == 'H1'){
- TiTLE.outerHTML = "<P "+PClassSet+">"+RelPopSpacerGif+"</P><H1 "+L_RelPopAlign1A_Style+">" + TiTLE.innerHTML + "</H1>";}
- else{
- TiTLE.outerHTML = "<P "+PClassSet+">"+RelPopSpacerGif+"</P><P CLASS='PROCLABEL' "+L_RelPopAlign2A_Style+">" + TiTLE.innerHTML + "</P>";}}}
-
-
- //SEPARATE SHORTCUT PASS TO INSERT ADDITIONAL A TAGS FOR ERRORS -SMJ_M******
- //**************************************************************************
- var collnA = document.all('shortcutA');
- if (collnA != null){
- var tempname = '#ShortcutError';
- var temppre = '<A id=shortcutError onfocus="doShortcutError();" onblur="shortcutError_doOnBlur();" '
- + 'href="REQUIRED_FOR_ONFOCUS_CATCH" name="'+tempname;
- var temppost = '"></A>';
- if (collnA.length == null){
- collnA.errorName = tempname+'0';
- collnA.onblur = shortcutA_doOnBlur;
- collnA.insertAdjacentHTML('BeforeBegin',temppre+'0'+temppost);}
- else{
- for (var i=0; i<collnA.length; i++){
- collnA(i).errorName = tempname+i;
- collnA(i).onblur = shortcutError_doOnBlur;
- collnA(i).insertAdjacentHTML('BeforeBegin',temppre+i+temppost);}}}
-
- //DIV TAG PASS TO INSERT STANDARD PREFACE TEXT******************************
- //**************************************************************************
- var collnDIV = document.all('shortcutDIV');
- if (collnDIV != null){
- if (collnDIV.length == null){
- collnDIV.insertAdjacentHTML('AfterBegin',L_ShortcutDIV_Text);
- collnDIV.className = 'shortcutDIV_Inactive';}
- else{
- for (var i=0; i<collnDIV.length; i++){
- collnDIV(i).insertAdjacentHTML('AfterBegin',L_ShortcutDIV_Text);
- collnDIV(i).className = 'shortcutDIV_Inactive';}}}
-
-
- //IF THE USER HAS IE4+ THEY WILL BE ABLE TO VIEW POPUP BOXES****************
- //**************************************************************************
- if (IE4){
- document.body.insertAdjacentHTML('beforeEnd', popupDIV);
- document.body.insertAdjacentHTML('beforeEnd', RelPopupDiV);}
-
- //THIS GOES TO THE SECTION THAT WRITES LINK OBJECT'S INNER HTML*************
- //**************************************************************************
- if ((IE4) && (LiNker)){
- window.setTimeout('displayLinkedDocument()', 0);}
-
- return;}
-
-
-
- //********************************* ONMOUSE-OVER *******************************
- //******************************************************************************
- function gettingHot(){
- e = window.event.srcElement;
-
-
- //DETERMINES WHETHER THE USER ROLLED OVER AN HREF TAG*************************
- //****************************************************************************
- for (var a = 0; a < 5; a++){
- if ((e.tagName != 'A') && (e.parentElement != null)){e = e.parentElement;}
- var eID = e.id;
-
-
- //DETERMINES WHETHER THE USER ROLLED OVER A SHORTCUT ITEM - SMJ_H***********
- //**************************************************************************
- if ((eID == 'shortcutA') && (e.style.color != _Click)){ //className != 'shortcutA_Selected')){
- shortcutIMG_Change(e,'Hot');
- e.style.color = _Hot;
- break;}
-
-
- //DETERMINES WHETHER THE USER ROLLED OVER AN EXPAND/COLLAPSE ITEM***********
- //**************************************************************************
- else if (eID.indexOf('ExPand') != -1){
- if (InlineImgOn){
- expandGoesHot(e); break;}
- else{
- GoesHot(e); break;}}
-
-
- //DETERMINES WHETHER THE USER ROLLED OVER A GLOSSARY POPUP ITEM*************
- //**************************************************************************
- else if (eID.indexOf('PopUp') != -1){
- if (InlineImgOn){
- //DOESN'T SEND IF GLOSSARY TERM CLICKED AND ROLLED OVER*************
- //******************************************************************
- if ((theTagIndex) != (e.sourceIndex)){
- glossaryGoesHot(e); break;}}
- else{
- //DOESN'T SEND IF GLOSSARY TERM CLICKED AND ROLLED OVER*************
- //******************************************************************
- if ((theTagIndex) != (e.sourceIndex)){
- GoesHot(e); break;}}}
-
- //DETERMINES WHETHER THE USER ROLLED OVER A RELATED TOPIC LINK**************
- //**************************************************************************
- else if (eID.indexOf('InnerNav') != -1){
- //DOESN'T SEND IF RELTOPIC ICON CLICKED AND ROLLED OVER*****************
- //**********************************************************************
- if ((theTagIndex2) != (e.sourceIndex)){
- InnerNavGoesHot(e); break;}}}
-
-
- return;}
-
-
-
- //********************************* ONMOUSE-OUT ********************************
- //******************************************************************************
- function gettingCold() {
- e = window.event.srcElement;
-
-
- //DETERMINES WHETHER THE USER ROLLED OUT OF AN HREF TAG***********************
- //****************************************************************************
- for (var a = 0; a < 5; a++){
- if ((e.tagName != 'A') && (e.parentElement != null)){e = e.parentElement;}
- var eID = e.id;
-
-
- //SMJ_I begin
-
- if ( (eID == 'shortcutA') && (e.style.color != _Click)) //(e.className != 'shortcutA_Selected') )
- {
- shortcutIMG_Change(e,'Cold');
- e.style.color = _Cold;
- break;
- }
- else
-
- //SMJ_I end
-
-
-
- //DETERMINES WHETHER THE USER ROLLED OUT OF AN EXPAND/COLLAPSE ITEM*********
- //**************************************************************************
- if (eID.indexOf('ExPand') != -1){
- if (InlineImgOn){
- expandGoesCold(e); break;}
- else{
- GoesCold(e); break;}}
-
-
- //DETERMINES WHETHER THE USER ROLLED OUT OF A GLOSSARY POPUP ITEM***********
- //**************************************************************************
- else if (eID.indexOf('PopUp')!= -1){
- if (InlineImgOn){
- //DOESN'T SEND IF GLOSSARY TERM CLICKED AND ROLLED OVER*************
- //******************************************************************
- if ((theTagIndex) != (e.sourceIndex)){
- glossaryGoesCold(e); break;}}
- else{
- //DOESN'T SEND IF GLOSSARY TERM CLICKED AND ROLLED OUT OF***********
- //******************************************************************
- if ((theTagIndex) != (e.sourceIndex)){
- GoesCold(e); break;}}}
-
-
- //DETERMINES WHETHER THE USER ROLLED OUT OF A RELATED TOPIC LINK************
- //**************************************************************************
- else if (eID.indexOf('InnerNav') != -1){
- //DOESN'T SEND IF RELTOPIC ICON CLICKED AND ROLLED OUT OF***************
- //**********************************************************************
- if ((theTagIndex2) != (e.sourceIndex)){
- InnerNavGoesCold(e); break;}}}
-
-
- return;}
-
-
-
- //********************************** ONCLICK ***********************************
- //******************************************************************************
- function clickAndDo(){
- e = window.event.srcElement;
-
- //CAUSES A CLICK ON THE PAGE TO HIDE THE POPUP WINDOWS************************
- //****************************************************************************
- document.all.RelpopUpWindow.style.visibility = "hidden";
- document.all.popUpWindow.style.visibility = "hidden";
-
-
- //SETS POPUP WINDOW'S RESIZE VARIABLES TO FALSE*******************************
- //****************************************************************************
- WindowOne = false; //TRUE IF USER CLICKS ON THE ID POPUP***********
- WindowTwo = false; //TRUE IF USER CLICKS ON THE ID INNERNAV********
-
-
- //SETS GLOSSARY POPUP'S NEEDED VARIABLES TO FALSE*****************************
- //****************************************************************************
- popOpen = false; //TRUE IF A GLOSSARY POPUP IS VISIBLE***********
- PopUp_InAPopUp = false; //TRUE IF USER CLICKS A SEE ALSO GLOSSARY TERM**
- specialCheck = false; //TRUE IF THE GLOSSARY TERM ISN'T IN TXT FILE***
- AnotherCheck = false; //TRUE IF INLINE GIFS OFF AND HELP ADDED HTML***
-
- //DETERMINES IF A CLICK IS ON AN HREF TAG*************************************
- //****************************************************************************
- for (var a = 0; a < 5; a++){
- if ((e.tagName != 'A') && (e.parentElement != null)){e = e.parentElement;}
- eID = e.id;
-
- //XML Popup Code begin
- // This code not needed except to coexist with existing tdc code
- xmlTermRoot = "" // glossary popup uses HREF='#' + scope + ":" + termID for lookup
- if (e.hash != null)
- {
- xmlTermRoot = e.hash;
- }
- //XML Popup Code end
-
-
- //VARIABLES USED TO CONTROL CLICK COLOR OF GLOSSARY LINK TEXT***************
- //**************************************************************************
- if (((eID.indexOf('PopUp') == -1) || (eID.indexOf('In_PopuP') == -1)) && (checkIt2)){
- var changeBack = document.all(theTagIndex);
- changeBack.style.color = _Cold;
- changeBack.style.textDecoration = "none";
- if (InlineImgOn){
- theImg = getImage2(theTagIndex);
- theImg.src = glossaryCold;}
- theTagIndex = false;
- checkIt2 = false;}
-
-
- //VARIABLES USED TO CONTROL CLICK COLOR OF RELATED TOPICS ICON**************
- //**************************************************************************
- if ((eID.indexOf('InnerNav') == -1) && (checkIt) && (theTagIndex2 != -1)){
- theImg = getImage2(theTagIndex2);
- theImg.src = InnerNavCold;
- theTagIndex2 = false;
- checkIt = false;}
-
-
- //DETERMINES IF A CLICK IS ON A THUMBNAIL***********************************
- //**************************************************************************
- if (eID.indexOf('ThumbNail') != -1){callThumbnail(e); break;}
-
-
- //DETERMINES IF A CLICK IS ON A PROCEDURE LINK******************************
- //**************************************************************************
- else if (eID.indexOf('ProCedure') != -1){callProcedure(e); break;}
-
-
- //SMJ_D begin
-
-
- else if (eID == 'shortcutA')
- {
- callShortcut(e);
- break;
- }
-
-
- //SMJ_D end
-
-
- //DETERMINES IF A CLICK IS ON AN EXPAND/COLLAPSE ITEM***********************
- //**************************************************************************
- else if (eID.indexOf('ExPand') != -1){
- if (InlineImgOn){
- callExpand(e); break;}
- else{
- callExpand2(e); break;}}
-
-
- //DETERMINES IF A CLICK IS ON A RELATED TOPIC LINK**************************
- //**************************************************************************
- if (eID.indexOf('InnerNav') != -1){
- lastClickedPopUp = e; //USED BY THE WINDOW RESIZE FUNCTION************
- WindowTwo = true;
- checkIt = true;
- theTagIndex2 = e.sourceIndex;
- theImg = getImage2(theTagIndex2);
- theImg.src = InnerNavClick;
- callRelatedTopicS(e); break;}
-
-
- //DETERMINES IF A CLICK IS ON A GLOSSARY POPUP ITEM*************************
- //**************************************************************************
- else if (eID.indexOf('PopUp') != -1){
- lastClickedPopUp = e; //USED BY THE WINDOW RESIZE FUNCTION************
- WindowOne = true;
-
- //THIS IS WHAT HAPPENS IF THE GLOSSARY IMAGE IS ON**********************
- //**********************************************************************
- if (InlineImgOn){
- //THIS CONTROLS THE ONCLICK COLOR OF THE GLOSSARY TEXT**************
- //******************************************************************
- checkIt2 = true;
- theTagIndex = true;
- theTagIndex = e.sourceIndex;
- AnotherTagIndex = parseInt(theTagIndex);
- e.style.color = _Click;
- theImg = getImage2(theTagIndex);
- theImg.src = glossaryClick;
-
- //THIS CAPTURES THE HTML THAT CONTAINS THE TERM*********************
- //******************************************************************
- WorkText = e.innerHTML;
-
- //THIS CHECKS FOR ADDED HTML FROM HTMLHELP SEARCH ENGINE************
- //******************************************************************
- if (WorkText.indexOf('BACKGROUND-COLOR:') != -1){
- GetTheRealTerm();}
-
- //IF THERE IS NO ADDED HTML FROM HTMLHELP THIS IS WHAT HAPPENS******
- //******************************************************************
- else{
- GetTheRealTerm2();}}
-
- //IF THE GLOSSARY IMAGE ISN'T ON THIS IS WHAT HAPPENS*******************
- //**********************************************************************
- else{
- //THIS CONTROLS THE ONCLICK COLOR OF THE GLOSSARY TEXT**************
- //******************************************************************
- checkIt2 = true;
- theTagIndex = true;
- theTagIndex = e.sourceIndex;
- AnotherTagIndex = parseInt(theTagIndex);
- e.style.color = _Click;
- e.style.textDecoration = "underline";
-
- //THIS CAPTURES THE HTML THAT CONTAINS THE TERM*********************
- //******************************************************************
- WorkText = e.innerHTML;
-
- //THIS CHECKS FOR ADDED HTML FROM HTMLHELP SEARCH ENGINE************
- //******************************************************************
- if (WorkText.indexOf('BACKGROUND-COLOR:') != -1){
- AnotherCheck = true;
- GetTheRealTerm();}
- else{
- TermDef = e.innerHTML;}}
-
- //AFTER GRABBING THE PRECISE TERM THE NEXT FUNCTION IS INVOKED******
- //******************************************************************
- callGlossary(e, TermDef); break;}
-
-
- //DETERMINES WHETHER A CLICK IS ON A SEE ALSO GLOSSARY POPUP ITEM***********
- //**************************************************************************
- else if (eID.indexOf('In_PopuP') != -1){
- //THIS CONTROLS THE ONCLICK COLOR OF THE GLOSSARY TEXT**************
- //******************************************************************
- checkIt2 = true;
- theTagIndex = parseInt(AnotherTagIndex);
- var changeBack = document.all(theTagIndex);
- changeBack.style.color = _Click;
- if (InlineImgOn){
- theImg = getImage2(theTagIndex);
- theImg.src = glossaryClick;}
- if (!InlineImgOn){
- changeBack.style.textDecoration = "underline";}
-
- //A NEEDED VARIABLE IS SET TO TRUE AND THE TERM IS PICKED UP************
- //**********************************************************************
- PopUp_InAPopUp = true;
- TermDef = e.innerHTML;
-
- //AFTER GRABBING THE PRECISE TERM THE NEXT FUNCTION IS INVOKED**********
- //**********************************************************************
- callGlossary(e, TermDef); break;}}
-
- return;}
-
-
-
- //********************************* ONKEYPRESS *********************************
- //******************************************************************************
- function ieKey(){
- if (window.event.keyCode == 27){closeIE4();}
-
-
- return;}
-
-
-
- //*********************************** ONRESIZE *********************************
- //******************************************************************************
- function fixPopUps(){
-
- //SMJ_Z begin
-
- var collnDIV = document.all('shortcutDIV');
- if (collnDIV != null)
- {
- var theA = null;
- var theDIV = null;
-
- if ( (collnDIV.length == null) && (collnDIV.className == 'shortcutDIV_Active') )
- {
- theA = document.all('shortcutA'); //only one shortcut
- theDIV = collnDIV;
- }
- else
- for (var i=0; i<collnDIV.length; i++)
- {
- if (collnDIV(i).className == 'shortcutDIV_Active')
- {
- theA = document.all('shortcutA')(i);
- theDIV = collnDIV(i);
- break;
- }
- }
- if (theA != null) // (always come in pairs)
- {
- theDIV.style.left = Math.min(theA.children.tags('IMG')(0).offsetLeft,
- (document.body.clientWidth-theDIV.offsetWidth-(1*document.body.leftMargin)) );
- theDIV.style.top = theA.offsetTop+theA.offsetHeight+1;
-
- /* collnDIV(i).style.left = Math.min(theA.children.tags('IMG')(0).offsetLeft,
- (document.body.clientWidth-collnDIV(i).offsetWidth-(1*document.body.leftMargin)) );
- collnDIV(i).style.top = theA.offsetTop+theA.offsetHeight+1;
- */
- }
- }
-
- // theDIV.style.left = Math.min(theA.children.tags('IMG')(0).offsetLeft,
- // (document.body.clientWidth-theDIV.offsetWidth-(1*document.body.leftMargin)) );
- // theDIV.style.top = theA.offsetTop+theA.offsetHeight+1;
-
- //SMJ_Z end
-
-
- //THIS FUNCTION AFFECTS POPUP WINDOWS ONLY**********************************
- //**************************************************************************
- if(lastClickedPopUp){
- var DecrementMarkerWidth = document.body.clientWidth;
-
-
- //THIS AFFECTS GLOSSARY POPUPS******************************************
- //**********************************************************************
- if (WindowOne){
-
- if (lastClickedPopUp.offsetParent.tagName.toLowerCase() == 'body'){
- if(((popUpWindow.style.pixelWidth) + (lastClickedPopUp.offsetLeft)) <= (DecrementMarkerWidth)){
- popUpWindow.style.pixelLeft = (lastClickedPopUp.offsetLeft);}
- else if(((DecrementMarkerWidth) - (10)) > (popUpWindow.style.pixelWidth)){
- popUpWindow.style.pixelLeft = ((DecrementMarkerWidth) - (popUpWindow.style.pixelWidth));}
- else{
- popUpWindow.style.pixelLeft = (10);}
- popUpWindow.style.pixelTop = ((lastClickedPopUp.offsetTop) + (lastClickedPopUp.offsetHeight) + (1));}
-
- else if (lastClickedPopUp.offsetParent.offsetParent.tagName.toLowerCase() == 'body'){
- if(((popUpWindow.style.pixelWidth) + (lastClickedPopUp.offsetLeft) + (lastClickedPopUp.offsetParent.offsetLeft)) <= (DecrementMarkerWidth)){
- popUpWindow.style.pixelLeft = ((lastClickedPopUp.offsetLeft) + (lastClickedPopUp.offsetParent.offsetLeft));}
- else if(((DecrementMarkerWidth) - (10)) > (popUpWindow.style.pixelWidth)){
- popUpWindow.style.pixelLeft = ((DecrementMarkerWidth) - (popUpWindow.style.pixelWidth));}
- else{
- popUpWindow.style.pixelLeft = (10);}
- popUpWindow.style.pixelTop = ((lastClickedPopUp.offsetHeight) + (lastClickedPopUp.offsetTop) + (lastClickedPopUp.offsetParent.offsetTop) + (1));}
-
- else if (lastClickedPopUp.offsetParent.offsetParent.offsetParent.tagName.toLowerCase() == 'body'){
- if(((popUpWindow.style.pixelWidth) + (lastClickedPopUp.offsetLeft) + (lastClickedPopUp.offsetParent.offsetLeft) + (lastClickedPopUp.offsetParent.offsetParent.offsetLeft)) <= (DecrementMarkerWidth)){
- popUpWindow.style.pixelLeft = ((lastClickedPopUp.offsetLeft) + (lastClickedPopUp.offsetParent.offsetLeft) + (lastClickedPopUp.offsetParent.offsetParent.offsetLeft));}
- else if(((DecrementMarkerWidth) - (10)) > (popUpWindow.style.pixelWidth)){
- popUpWindow.style.pixelLeft = ((DecrementMarkerWidth) - (popUpWindow.style.pixelWidth));}
- else{
- popUpWindow.style.pixelLeft = (10);}
- popUpWindow.style.pixelTop = ((lastClickedPopUp.offsetHeight) + (lastClickedPopUp.offsetTop) + (lastClickedPopUp.offsetParent.offsetTop) + (lastClickedPopUp.offsetParent.offsetParent.offsetTop) + (1));}
-
- else{
- if (((popUpWindow.style.pixelTop) + (popUpWindow.style.pixelHeight)) > (document.body.clientHeight)){
- popUpWindow.style.pixelTop = ((document.body.clientHeight) - (popUpWindow.style.pixelHeight));}
- if (((popUpWindow.style.pixelLeft) + (popUpWindow.style.pixelWidth)) > (document.body.clientWidth)){
- popUpWindow.style.pixelLeft = ((document.body.clientWidth) - (popUpWindow.style.pixelWidth));}}}
-
-
- //THIS AFFECTS RELATED TOPICS POPUPS************************************
- //**********************************************************************
- else if (WindowTwo){
-
- //FIND OUT IF THIS IS AN RTL OR LTR DOCUMENT************************
- //******************************************************************
- if (document.dir=="rtl"){
- RelpopUpWindow.style.pixelLeft = 10;}
- else{
- RelpopUpWindow.style.pixelLeft = ((DecrementMarkerWidth) - (RelpopUpWindow.style.pixelWidth) - (10));}
-
- RelpopUpWindow.style.pixelTop = ((lastClickedPopUp.offsetTop) + (lastClickedPopUp.offsetHeight) + (1));}}
-
-
- return;}
-
-
-
- //******************** SPECIAL PARSING FOR GLOSSARY POPUP TERM *****************
- //******************************************************************************
- function GetTheRealTerm(){
- var c, d, f;
-
- //IN THIS CASE WE DONT NEED TO REMOVE ANY IMAGES, INLINE IMGS ARE OFF, SO..***
- //****************************************************************************
- if (AnotherCheck){
-
- //THIS REMOVES ALL BUT THE TERM AND THE HTML FROM HTMLHELP******************
- //**************************************************************************
- d = "</FONT>";
- f = WorkText;
- f = f.replace(d,'');}
- else{
- c = WorkText.indexOf('width=12>');
- if (c == -1){return;}
- d = "</FONT>";
-
- //THIS REMOVES ALL BUT THE TERM AND THE HTML FROM HTMLHELP******************
- //**************************************************************************
- f = WorkText.substring((c+9),WorkText.length);
- f = f.replace(d,'');}
-
- //THIS REMOVES THE HTML ADDED BY HTMLHELP LEAVING THE TERM******************
- //**************************************************************************
- var g = f.indexOf('<');
- if (g == -1){return;}
-
- var h = f.indexOf('>');
- if (h == -1){return;}
-
- var i = f.substring(g,(h+1));
- f = f.replace(i,'');
- TermDef = f;
-
-
- return TermDef;}
-
-
- //THIS REMOVES THE IMAGE IF HTMLHELP HASN'T ADDED HTML AND LEAVES THE TERM****
- //****************************************************************************
- function GetTheRealTerm2(){
- var c = WorkText.lastIndexOf('width=12>');
- if (c == -1){return;}
- else {TermDef = WorkText.substring((c+9),WorkText.length);}
-
-
- return TermDef;}
-
-
-
- //********************* SHORTCUT'S MOUSEOVER, MOUSEOUT, ETC... *****************
- //******************************************************************************
- function shortcutIMG_Change(theA,newstate){
- var t;
- switch (newstate){
- case 'Hot' : t = BeforeReference + 'Basics/shortcuthot.gif'; break;
- case 'Selected' : t = BeforeReference + 'Basics/shortcutclick.gif'; break;
- case 'Cold' :
- default : t = BeforeReference + 'Basics/shortcutcold.gif'; break;}
- theA.children.tags('IMG')(0).src = t;}
-
-
-
- //******************************** EXPAND'S MOUSEOVER **************************
- //******************************************************************************
- function expandGoesHot(){
- e.style.color = _Hot;
-
- //FIND THE EXPAND/COLLAPSE PORTION AND ASCERTAIN BLOCK VS NONE**************
- //**************************************************************************
- var theDiv = GrabtheExpandDiv(e);
-
- if (theDiv.style.display == 'block'){
- theImg = getImage(e);
- theImg.src = expandHot;}
- else{
- theImg = getImage(e);
- theImg.src = closedHot;}
-
-
- return;}
-
-
-
- //******************************** EXPAND'S MOUSEOUT ***************************
- //******************************************************************************
- function expandGoesCold(){
- e.style.color = _Cold;
-
- //FIND THE EXPAND/COLLAPSE PORTION AND ASCERTAIN BLOCK VS NONE**************
- //**************************************************************************
- var theDiv = GrabtheExpandDiv(e);
-
- if (theDiv.style.display == 'block'){
- theImg = getImage(e);
- theImg.src = expand;}
- else {
- theImg = getImage(e);
- theImg.src = closed;}
-
-
- return;}
-
-
-
- //****************************** GLOSSARY'S MOUSEOVER **************************
- //******************************************************************************
- function glossaryGoesHot(){
- e.style.color = _Hot;
- theImg = getImage(e);
- theImg.src = glossaryHot;
-
-
- return;}
-
-
-
- //******************************* GLOSSARY'S MOUSEOUT **************************
- //******************************************************************************
- function glossaryGoesCold(){
- e.style.color = _Cold;
- theImg = getImage(e);
- theImg.src = glossaryCold;
-
-
- return;}
-
-
- //**************************** RELATED TOPICS MOUSEOVER ************************
- //******************************************************************************
- function InnerNavGoesHot(){
- theImg = getImage(e);
- theImg.src = InnerNavHot;
-
-
- return;}
-
-
-
- //***************************** RELATED TOPICS MOUSEOUT ************************
- //******************************************************************************
- function InnerNavGoesCold(){
- theImg = getImage(e);
- theImg.src = InnerNavCold;
-
-
- return;}
-
-
-
- //********************************* GENERIC MOUSEOVER **************************
- //******************************************************************************
- function GoesHot(){
- e.style.color = _Hot;
- e.style.textDecoration = "underline";
-
-
- return;}
-
-
-
- //********************************** GENERIC MOUSEOUT **************************
- //******************************************************************************
- function GoesCold(){
- e.style.color = _Cold;
- e.style.textDecoration = "none";
-
-
- return;}
-
-
-
- //***************************** FIND AREA TO EXPAND/COLLAPSE *******************
- //******************************************************************************
- function GrabtheExpandDiv(){
- var theExpandDiv;
-
- for (var a = 0; a < 5; a++){
- var theTag = e.sourceIndex + e.children.length + a;
- theExpandDiv = document.all(theTag);
- if ((((theExpandDiv.tagName == 'DIV') || (theExpandDiv.tagName == 'SPAN')) && ((theExpandDiv.className.toLowerCase() == 'expand') || (theExpandDiv.className.toLowerCase() == 'expand2'))) || theTag == document.all.length){break;}}
-
-
- return theExpandDiv;}
-
-
-
- //***************** ROLLOVERS'S AND EXPAND/COLLAPSE GET IMAGE *****************
- //******************************************************************************
- function getImage(){
- var TheSpot;
- TheSpot = e;
-
- //DETERMINES IF A CLICK IS ON AN HREF TAG***********************************
- //**************************************************************************
- for (var a = 0; a < 5; a++){
- if ((TheSpot.tagName != 'A') && (TheSpot.parentElement != null)){TheSpot = TheSpot.parentElement;}
- var elemImg = TheSpot;
- if(elemImg.tagName == 'A'){elemImg = TheSpot.all.tags('IMG')(0); break;}}
-
-
- return elemImg;}
-
-
-
- //************ HANDLES GREY STATE OF GLOSSARY AND RELTOPIC POPUPS **************
- //******************************************************************************
- function getImage2(){
- var TheSpot;
-
- //FOR THE RELATED TOPICS POPUP**********************************************
- //**************************************************************************
- if ((checkIt) && (theTagIndex2 != -1)){
- TheSpot = document.all(theTagIndex2);}
-
- //FOR THE GLOSSARY POPUP****************************************************
- //**************************************************************************
- else if ((checkIt2) && (theTagIndex != -1)){
- TheSpot = document.all(theTagIndex);}
- else{return;}
-
- //DETERMINES IF A CLICK IS ON AN HREF TAG***********************************
- //**************************************************************************
- for (var a = 0; a < 5; a++){
- if ((TheSpot.tagName != 'A') && (TheSpot.parentElement != null)){TheSpot = TheSpot.parentElement;}
- var elemImg = TheSpot;
- if(elemImg.tagName == 'A'){elemImg = TheSpot.all.tags('IMG')(0); break;}}
-
-
- return elemImg;}
-
-
-
- //************************* CALL THE THUMBNAIL WINDOW **************************
- //******************************************************************************
- function callThumbnail(){
-
- //PREVENTS NAVIGATION ON HREF TAGS********************************************
- //****************************************************************************
- event.returnValue = false;
-
- var eH = e.href.toLowerCase();
- sParamFILE = get_TheUrL(eH);
-
- //IF THE THUMBNAIL OBJECT EXISTS IT IS NOW REMOVED FROM THE PAGE************
- //**************************************************************************
- if (document.hhThumbnail){document.hhThumbnail.outerHTML = "";}
-
- //THIS PART BUILDS THE THUMBNAIL OBJECT*************************************
- //**************************************************************************
- var h = "";
- h = h + "<OBJECT ID='hhThumbnail' "+ActX+" STYLE='display:none'>";
- h = h + "<PARAM NAME='Command' VALUE='Related Topics'>";
- h = h + "<PARAM NAME='Window' VALUE='$global_largeart'>";
- h = h + "<PARAM NAME='Item1'";
- h = h + "VALUE='$global_largeart;"+moniker+sParamFILE+"'>";
- h = h + "</OBJECT>";
-
- //THIS PART ADDS THE OBJECT TO THE BOTTOM OF THE PAGE***********************
- //**************************************************************************
- document.body.insertAdjacentHTML('beforeEnd', h);
-
- //THIS PART CLICKS THE OBJECT SO THE POPUP WINDOW WILL APPEAR***************
- //**************************************************************************
- document.hhThumbnail.hhclick();
-
-
- return;}
-
-
-
- //**************************** CALL THE PROCESS WINDOW *************************
- //******************************************************************************
- function callProcedure(){
-
- //PREVENTS NAVIGATION ON HREF TAGS********************************************
- //****************************************************************************
- event.returnValue = false;
-
- var eH = e.href.toLowerCase();
- sParamFILE = get_TheUrL(eH);
-
- //IF THE PROCEDURE OBJECT EXISTS IT IS NOW REMOVED FROM THE PAGE************
- //**************************************************************************
- if (document.hhProcedure){document.hhProcedure.outerHTML = "";}
-
- //THIS PART BUILDS THE PROCEDURE OBJECT*************************************
- //**************************************************************************
- var h = "";
- h = h + "<OBJECT ID='hhProcedure' "+ActX+" STYLE='display:none'>";
- h = h + "<PARAM NAME='Command' VALUE='Related Topics'>";
- h = h + "<PARAM NAME='Window' VALUE='$global_processtask'>";
- h = h + "<PARAM NAME='Item1'";
- h = h + "VALUE='$global_processtask;"+moniker+sParamFILE+"'>";
- h = h + "</OBJECT>";
-
- //THIS PART ADDS THE OBJECT TO THE BOTTOM OF THE PAGE***********************
- //**************************************************************************
- document.body.insertAdjacentHTML('beforeEnd', h);
-
- //THIS PART CLICKS THE OBJECT SO THE POPUP WINDOW WILL APPEAR***************
- //**************************************************************************
- document.hhProcedure.hhclick();
-
-
- return;}
-
-
- //**************************** GET THE URL OUT OF HREF *************************
- //******************************************************************************
-
- //SMJ_C begin
-
- // Borrowing code from NT shared.js... the iEND variable in callShortcut() is
- // declared as a harmless local variable if the call isn't from callShortcut()
- // Update: Usage of custom HTML tags make this function unnecessary for callShortcut();
-
-
- function get_TheUrL(sHREF)
- {
- var spaces = /\s/g;
- var eH = unescape(sHREF);
- eH = eH.replace(spaces,'');
- eH_ = eH.toLowerCase(); //added
-
- var sParamFILE = '';
- var sParamCHM = '';
-
- var iFILE = eH_.lastIndexOf('file='); // mod
- if (iFILE != -1)
- {
- iEND = iFILE+1; // see callShortcut()
- sParamFILE = eH.substring(iFILE+5, eH.length);
- }
-
- var iCHM = eH_.lastIndexOf('chm='); // mod
- if (iCHM != -1)
- {
- iEND = iCHM+1; // see callShortcut()
- sParamCHM = eH.substring(iCHM+4, iFILE);
- sParamFILE= sParamCHM+"::/"+sParamFILE;
- }
- return sParamFILE;
- }
-
- /* // original code (7/27/99):
-
- function get_TheUrL(sAHREF){
- var spaces = /\s/g;
- var eH = unescape(sAHREF);
- eH = eH.replace(spaces,'');
-
- var sParamFILE= "";
- var sParamCHM= "";
-
- var iFILE = eH.lastIndexOf('file=');
- if (iFILE != -1){
- sParamFILE = eH.substring(iFILE+5, eH.length);}
-
- var iCHM = eH.lastIndexOf('chm=');
- if (iCHM != -1){
- sParamCHM = eH.substring(iCHM+4, iFILE);
- sParamFILE= sParamCHM+"::/"+sParamFILE;}
-
-
- return sParamFILE;}
- */
-
- //SMJ_C end
-
-
- //SMJ_A begin
-
- // callShortcut ////////////////////////////////////////////////////
- //
- // Creates an HTML Help object to send a window message to another
- // application (in this case to open it to a specific dialog box
- // or similar UI destination. On failure the object navigates to an
- // <A> error handler on the same page, #ShortcutErrorX, which is added
- // during onload(). When the errorhandler A tag receives focus, it
- // applies correct error styles to the link and the corresponding
- // error-message DIV. When the errorhandler A tag loses focus, it
- // resets these styles to normal, hiding the DIV again.
- //
- //////////////////////////////////////////////////////////////////////
-
- function callShortcut(theA)
- {
- event.returnValue = false; //kill bubble
-
- if (theA.APPLICATION == null)
- return;
- var pmItem1 = '<PARAM name="Item1" value="'+theA.APPLICATION+'">';
- var pmItem2 = (theA.WINDOW_MSG == null)?'':(
- '<PARAM name="Item2" value="'+theA.WINDOW_MSG)+'">';
- var pmWindow = '<PARAM name="Window" value="'+theA.errorName+'">';
-
- var sObjectText =
- '<OBJECT id=objShortcut type="application/x-oleobject"'
- +' classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"'
- +' codebase="hhctrl.ocx#Version=4,73,8412,0">'
- +' <PARAM name="Command" value="ShortCut">'
- +pmItem1
- +pmItem2
- +pmWindow
- +'</OBJECT>';
-
- if (document.objShortcut != null)
- document.objShortcut.outerHTML = ''; //delete any existing object
- document.body.insertAdjacentHTML('beforeEnd',sObjectText);
-
- shortcutIMG_Change(theA,'Selected');
- theA.style.color = _Click; //theA.className = 'shortcutA_Selected';
-
- objShortcut.Click();
- }
-
- //SMJ_A end
-
-
- //********************** STARTS THE RELATED TOPICS PROCESS *********************
- //******************************************************************************
- function callRelatedTopicS(){
-
- //PREVENTS NAVIGATION ON HREF TAGS********************************************
- //****************************************************************************
- event.returnValue = false
-
- document.all.RelpopUpWindow.innerHTML = L_RelTopHeader_Text + ReltopicS;
- document.all.RelpopUpWindow.style.fontSize = L_RelPopFontSize_Style;
-
- //FIND OUT IF THIS IS AN RTL OR LTR DOCUMENT********************************
- //**************************************************************************
- if (document.dir == "rtl"){
- document.all.RelpopUpWindow.style.left = 10;}
- else{
- document.all.RelpopUpWindow.style.left = ((document.body.clientWidth) - (RelpopUpWindow.style.pixelWidth) - (10));}
-
- document.all.RelpopUpWindow.style.top = ((document.all.InnerNav.offsetTop) + (document.all.InnerNav.offsetHeight) + 1);
- document.all.RelpopUpWindow.style.visibility = "visible";
-
-
- return;}
-
-
-
- //************************* STARTS THE GLOSSARY PROCESS ************************
- //******************************************************************************
- function callGlossary(){
-
- //PREVENTS NAVIGATION ON HREF TAGS********************************************
- //****************************************************************************
- event.returnValue = false;
-
- //THIS SECTION SETS THE X AND Y COORDINATES OF THE POPUP BOX****************
- //**************************************************************************
- if (PopUp_InAPopUp){
- ieX = document.all.popUpWindow.style.left;
- ieY = document.all.popUpWindow.style.top;}
- else{
- if (e.offsetParent.tagName.toLowerCase() == 'body'){
- ieX = e.offsetLeft;
- ieY = ((e.offsetTop) + (e.offsetHeight) + 1);}
- else if (e.offsetParent.offsetParent.tagName.toLowerCase() == 'body'){
- ieX = ((e.offsetLeft) + (e.offsetParent.offsetLeft));
- ieY = ((e.offsetHeight) + (e.offsetTop) + (e.offsetParent.offsetTop) + (1));}
- else if (e.offsetParent.offsetParent.offsetParent.tagName.toLowerCase() == 'body'){
- ieX = ((e.offsetLeft) + (e.offsetParent.offsetLeft) + (e.offsetParent.offsetParent.offsetLeft));
- ieY = ((e.offsetHeight) + (e.offsetTop) + (e.offsetParent.offsetTop) + (e.offsetParent.offsetParent.offsetTop) + (1));}
- else{
- ieX = window.event.clientX;
- ieY = window.event.clientY + document.body.scrollTop;}}
-
- //IF A POPUP WINDOW IS OPEN PAUSE AND THEN RESTART THIS PROCESS*************
- //**************************************************************************
- if (popOpen){window.setTimeout('callGlossary()', 50);}
-
- //IF THE USER DOESN'T HAVE IE4+ THIS SENDS A CUSTOM ERROR MESSAGE***********
- //**************************************************************************
- if (noPopups){
- alert (L_BrowserAlert_Message);
- noPopupsMsg = true;
- noPopups = false;}
-
- //IF THE USER DOESN'T HAVE IE4+ THIS KILLS THE REST OF THE POPUP SCRIPT ****
- //**************************************************************************
- if (noPopupsMsg){return;}
-
- //IF IE4+ AND NO POPUP OPEN WE GO TO THE NEXT PART OF THE SCRIPT************
- //**************************************************************************
- if ((IE4) && (!popOpen)){iePopup();}
-
-
- return;}
-
-
-
- //********************** START TO BUILD THE POPUP WINDOW ***********************
- //******************************************************************************
- function iePopup(){
-
- //DETERMINE IF THE POPUP WILL BE OFFSCREEN AND FIX THIS*********************
- //**************************************************************************
- var rightlimit = ieX + document.all.popUpWindow.offsetWidth;
-
- //IF IT'S OFF SCREEN THIS PART MOVES IT SO IT'S ON SCREEN*******************
- //**************************************************************************
- if (rightlimit >= document.body.clientWidth){ieX -= (rightlimit - document.body.clientWidth);}
-
- //Set And Position PopUpWindow**********************************************
- //**************************************************************************
- document.all.popUpWindow.innerHTML = "";
- document.all.popUpWindow.style.height = 0;
-
- //XML Popup Code begin
- if (xmlGloss) // test for XML or TXT glossary
- {
- // Get the formatted popup content (entry or "not found" message)
- xmlPopupContent = getXMLPopupContent(xmlTermRoot);
-
- // (Remaining code in this part copied from existing code.)
- // Load the popup window
- document.all.popUpWindow.innerHTML = xmlPopupContent;
-
- // Let the popup fill
- window.setTimeout ('iePopHeight()', 0);
-
- // Set popup window X, Y coordinates
- document.all.popUpWindow.style.top = ieY;
- document.all.popUpWindow.style.left = ieX;
-
- // Tell the world the popup is ready
- popOpen = true;
-
- // To prevent event bubble
- return (false);
- }
- else
- { // Surround following existing code into the "else" with {}
- //XML Popup Code end
-
-
- //IF THE GLOSSARY OBJECT EXISTS IT IS REMOVED FROM THE PAGE*****************
- //**************************************************************************
- if (document.tdcGloss){document.tdcGloss.outerHTML = "";}
-
- //THIS PART BUILDS THE GLOSSARY OBJECT**************************************
- //**************************************************************************
- var h = "";
- h = h + "<OBJECT ID='tdcGloss' CLASSID='clsid:333C7BC4-460F-11D0-BC04-0080C7055A83' VIEWASTEXT>";
- h = h + "<PARAM NAME='DataURL' VALUE='"+BeforeReference+"Basics/gloss.txt'>";
- h = h + "<PARAM NAME='UseHeader' VALUE='True'>";
- h = h + "<PARAM NAME='FieldDelim' VALUE=','>";
- h = h + "<PARAM NAME='EscapeChar' VALUE='#'>";
- h = h + "</OBJECT>";
-
- //THIS PART ADDS THE OBJECT TO THE BOTTOM OF THE PAGE***********************
- //**************************************************************************
- document.body.insertAdjacentHTML('beforeEnd', h);
-
- //IF THE GLOSSARY TERM LIVES IN THE GLOSSARY TEXT FILE GET IT***************
- //**************************************************************************
- var CheckTermDef = tdcGloss.recordset;
- CheckTermDef.moveFirst();
- while (!CheckTermDef.EOF){
- if ((TermDef.toLowerCase()) == (CheckTermDef.fields('Term').value.toLowerCase())){
- specialCheck = true;
- GoToWork();
- break;}
- CheckTermDef.moveNext();}
-
- //THIS PART PICKS UP AND STORES THE PROPER DEFINITION***********************
- //**************************************************************************
- function GoToWork(){
- defContent = tdcGloss.recordset.fields('Definition').value;
-
- //IF THERE ARE SEE ALSO'S THEY'RE PICKED UP AND THE HTML IS WRITTEN*****
- //**********************************************************************
- if (tdcGloss.recordset.fields('SeeAlso').value){
- if (tdcGloss.recordset.fields('SeeAlso').value.indexOf('~') != -1){
- ParseOtherDefs();}
- else{
- var seeAlsoContent = "";
- seeAlsoContent = tdcGloss.recordset.fields('SeeAlso').value;
- document.all.popUpWindow.innerHTML = "<H3 CLASS='GLOSSARY_ITEM'>" +TermDef+ "</H3><P>" +defContent+ "</P><P ID='OtherDefs'><B>See Also: </B><A ID='In_PopuP' HREF='#'>" +seeAlsoContent+ "</A></P>";}}
- else{
- document.all.popUpWindow.innerHTML = "<H3 CLASS='GLOSSARY_ITEM'>" +TermDef+ "</H3><P>" +defContent+ "</P>";}
-
- //TIMEOUT ALLOWS POPUP CONTENT TO FILL AND THEN GET POPUP HEIGHT********
- //**********************************************************************
- window.setTimeout ('iePopHeight()', 0);}
-
- //IF THE GLOSSARY DOESN'T CONTAIN THE TERM THIS ALERTS THE USER*************
- //**************************************************************************
- if (!specialCheck){
- document.all.popUpWindow.innerHTML = "<H3 CLASS='GLOSSARY_ITEM'>" +L_NoDefAlertTitle_Text+ "</H3><P>" +L_NoDefAlert_Text+ "</P>";
-
- //TIMEOUT ALLOWS POPUP CONTENT TO FILL AND THEN GET POPUP HEIGHT************
- //**************************************************************************
- window.setTimeout ('iePopHeight()', 0);}
-
- //THIS PART SETS THE X AND Y COORDS OF THE POPUP WINDOW*********************
- //**************************************************************************
- document.all.popUpWindow.style.top = ieY;
- document.all.popUpWindow.style.left = ieX;
-
- //NOW THIS VARIABLE IS SET TO TRUE BECAUSE THE POPUP IS READY***************
- //**************************************************************************
- popOpen = true;
-
-
- //THIS KILLS THE BUBBLING OF THE EVENT******************************************
- //******************************************************************************
- return false;}
-
- //XML Popup Code begin
- } // Ends the "else" of the "if" introduced above
-
- //Note: Next function ParseOtherDefs not needed for XML
- //XML Popup Code end
-
-
- //********************* HANDLE CASE OF MULTIPLE SEE ALSO'S *********************
- //******************************************************************************
- function ParseOtherDefs(){
- var AimPnt = "";
- var FstStop = 0;
- var FstWrd = "";
- var DefsString = "";
- AimPnt = tdcGloss.recordset.fields('SeeAlso').value;
- DefsString = "<B>See Also: </B>";
-
- //THIS LOOPS GRABS ALL OF THE SEE ALSOS*************************************
- //**************************************************************************
- while (AimPnt.indexOf('~') != -1){
- FstStop = AimPnt.indexOf('~');
- FstWrd = AimPnt.substring(0, FstStop);
- DefsString = DefsString + "<A ID='In_PopuP' HREF='gloss_all.htm#def_" + FstWrd + "'>" + FstWrd + "</a>, ";
-
- AimPnt = AimPnt.substring(FstStop + 1, AimPnt.length);}
-
- //THIS PART WRITES THE PROPER DEFINITIONS WITH THE SEE ALSOS****************
- //**************************************************************************
- DefsString = DefsString + "<A ID='In_PopuP' HREF='gloss_all.htm#def_" + AimPnt + "'>" + AimPnt + "</a>";
- document.all.popUpWindow.innerHTML = "<H3 CLASS='GLOSSARY_ITEM'>" +TermDef+ "</H3><P>" +defContent+ "</P><P ID='OtherDefs'>" + DefsString + "</P>";
-
-
- return;}
-
-
-
- //*********************** GET THE HEIGHT OF POPUP WINDOW ***********************
- //******************************************************************************
- function iePopHeight(){
- var pageBottom = document.body.scrollTop + document.body.clientHeight;
- var popHeight = document.all.popUpWindow.offsetHeight;
- document.all.popUpWindow.style.height = popHeight - 2 * (parseInt(document.all.popUpWindow.style.borderWidth));
-
- //IF THE POPUP IS LONGER THAN THE VISIBLE WINDOW IT WRITES IT AT COORDS 00**
- //**************************************************************************
- if (popHeight + ieY >= pageBottom){
- if (popHeight <= pageBottom){
- document.all.popUpWindow.style.top = pageBottom - popHeight;}
- else{document.all.popUpWindow.style.top = 0;}}
-
- //THE POPUP WINDOW IS MADE VISIBLE HERE*************************************
- //**************************************************************************
- document.all.popUpWindow.style.visibility = "visible";
-
-
- return;}
-
-
-
- //*************************** CLOSE THE POPUP WINDOW ***************************
- //******************************************************************************
- function closeIE4(){
- document.all.popUpWindow.style.visibility = "hidden";
- popOpen = false;
-
-
- return;}
-
-
-
- //******************************* DO EXPAND/COLLAPSE ***************************
- //******************************************************************************
- function callExpand(){
-
- //PREVENTS NAVIGATION ON HREF TAGS********************************************
- //****************************************************************************
- event.returnValue = false;
-
- //FIND THE EXPAND/COLLAPSE PORTION AND ASCERTAIN BLOCK VS NONE**************
- //**************************************************************************
- var theDiv = GrabtheExpandDiv(e);
-
- //THIS PART WRITES THE PROPER IMAGE BESIDE THE TEXT*************************
- //**************************************************************************
- if (theDiv.style.display == 'block'){
- var theImg = getImage(e);
- theImg.src = closed;
- theDiv.style.display = "none";}
- else {
- var theImg = getImage(e);
- theImg.src = expand;
- theDiv.style.display = "block";}
-
-
- return;}
-
- function callExpand2(){
-
- //PREVENTS NAVIGATION ON HREF TAGS********************************************
- //****************************************************************************
- event.returnValue = false;
-
- //FIND THE EXPAND/COLLAPSE PORTION AND ASCERTAIN BLOCK VS NONE**************
- //**************************************************************************
- var theDiv = GrabtheExpandDiv(e);
-
- //THIS PART WRITES THE PROPER IMAGE BESIDE THE TEXT*************************
- //**************************************************************************
- if (theDiv.style.display == 'block'){
- theDiv.style.display = "none";}
- else {
- theDiv.style.display = "block";}
-
-
- return;}
-
-
- //SMJ_G begin
-
- // (helper function)
- function fLookupShortcutDIV(Index) // returns ptr to the corresponding DIV element
- { // invariant: equal number of A and DIV elements
- var collnDIV = document.all('shortcutDIV');
- if (collnDIV == null) // at least one A/DIV pair?
- return null;
- var bIsACollection = (collnDIV.length != null); // more than one?
- if ( (Index < 0)
- || ( (!bIsACollection) && (Index != 0) )
- || ( (bIsACollection) && (Index >= collnDIV.length) ) )
- return null; // out of bounds
- return (bIsACollection)?collnDIV(Index):collnDIV;
- }
-
- // document.ondblclick=doOnDoubleClick;
- // function doOnDoubleClick(){alert(document.body.innerHTML);}
-
- function doShortcutError()
- {
- var e = window.event.srcElement;
-
- var collnA = document.all('shortcutA');
- var theA;
- if (collnA.length == null)
- theA = collnA;
- else
- for (var i=0; i<collnA.length; i++)
- if (collnA(i).errorName == e.name)
- {
- theA = collnA(i);
- break;
- }
- shortcutIMG_Change(theA,'Selected');
- theA.style.color = _Click; //theA.className = 'shortcutA_Selected';
-
- var theDIV = fLookupShortcutDIV(1*e.name.substr(14));
-
- //position div
- theDIV.className = 'shortcutDIV_Active';
- theDIV.style.top = theA.offsetTop+theA.offsetHeight+1;
- theDIV.style.left = Math.min(theA.children.tags('IMG')(0).offsetLeft,
- (document.body.clientWidth-theDIV.offsetWidth-(1*document.body.leftMargin)) );
-
- }
-
- function shortcutA_doOnBlur()
- {
- CommonBlur();
- return;
-
- /////////
- var e = window.event.srcElement;
- var collnA = document.all('shortcutA');
- var theA;
- if (collnA.length == null)
- theA = collnA;
- else
- for (var i=0; i<collnA.length; i++)
- if (collnA(i).errorName == e.name)
- {
- theA = collnA(i);
- break;
- }
- shortcutIMG_Change(theA,'Cold');
- theA.style.color = _Cold;
-
- var theDIV = fLookupShortcutDIV(1*e.name.substr(14));
- theDIV.className = 'shortcutDIV_Inactive';
-
- window.event.cancelBubble = true;
-
- }
-
- function shortcutError_doOnBlur()
- {
- CommonBlur();
- return;
-
- /////////
- var theA = window.event.srcElement;
- // var theA = document.all(e.sourceIndex+1);
-
- if (theA.id != 'shortcutA')
- theA = document.all(theA.sourceIndex+1);
- shortcutIMG_Change(theA,'Cold');
- theA.style.color = _Cold;
-
- window.event.cancelBubble = true;
- }
-
- function CommonBlur()
- {
- var theA = window.event.srcElement;
- if (theA.id != 'shortcutA')
- theA = document.all(theA.sourceIndex+1);
-
- shortcutIMG_Change(theA,'Cold');
- theA.style.color = _Cold;
-
- var theDIV = fLookupShortcutDIV(1*theA.errorName.substr(14));
- theDIV.className = 'shortcutDIV_Inactive';
-
- window.event.cancelBubble = true;
- }
-
-
- //SMJ_G end
-
- //XML Popup Code begin
- function getXMLPopupContent(theXMLTermRoot)
- {
- var theXMLTerm, theXMLTermID;
- var theEntry;
- var theScopeDefs;
- var theScopes;
- var theDefinition;
- var theSeeAlsos, seeAlsoID, seeAlsoTerm;
- var theSeeEntry, seeID, seeTerm;
- var outText;
- var i, j, k, l, m;
- var scopeFound;
- var noDef = "<H3 CLASS='GLOSSARY_ITEM'>" + L_NoDefAlertTitle_Text + "</H3><P>" + L_NoDefAlert_Text + "</P>";
-
- // Check the term root exists
- if (theXMLTermRoot.length > 1)
- {
- theXMLTermID = theXMLTermRoot.substring(1, theXMLTermRoot.length);
- i = theXMLTermID.indexOf(":");
- if (i > 0)
- {
- theXMLTerm = theXMLTermID.substring(i+1, theXMLTermID.length);
- }
- else
- return (noDef);
- }
- else
- {
- return (noDef);
- }
-
- // If XML Object Model not loaded, load it
- if (!xmlDOMLoaded)
- {
- xmlDOM = new ActiveXObject("Microsoft.XMLDOM");
- // Force object to finish loading the XML file before returning
- xmlDOM.async = false;
- // Load the XML file into the object model
- xmlDOM.load(xmlFile); //("basics/gloss.xml");
- // Set the persisted flag
- xmlDOMLoaded = true;
- }
-
- outText = noDef;
-
- // Go to the entry node for the desired term
- theEntry = xmlDOM.nodeFromID(theXMLTerm);
- if (theEntry != null)
- {
- // found the entry, examine the scopeDefs
- theScopeDefs = theEntry.selectNodes("scopeDef");
- scopeFound = false;
- for (i = 0; i < theScopeDefs.length && !scopeFound; i++)
- {
- theScopes = theScopeDefs(i).selectNodes("scope");
- // check for our scope in this scopeDef
- for (j = 0; j < theScopes.length; j++)
- {
- if (theScopes(j).attributes.getNamedItem("scopeTermID").text == theXMLTermID)
- {
- // Found our scope in this entry - get and format the term and def data
- scopeFound = true;
- outText = formatXMLTerm(theEntry.selectSingleNode("term").text);
- if (theScopeDefs(i).selectSingleNode("def") != null)
- {
- theDefinition = formatXMLDef(theScopeDefs(i).selectSingleNode("def"));
- outText = outText + theDefinition;
-
- // Format the see alsos, if any
- theSeeAlsos = theScopeDefs(i).selectNodes("seeAlso");
- seeAlsoID = "";
- seeAlsoTerm = "";
- for (k = 0; k < theSeeAlsos.length; k++)
- {
- seeAlsoID = theSeeAlsos(k).attributes.getNamedItem("seeAlsoID").text;
- l = seeAlsoID.indexOf(":");
- if (l > 0)
- {
- seeAlsoScope = seeAlsoID.substring(0, l + 1);
- seeAlsoID = seeAlsoID.substring(l + 1, seeAlsoID.length);
- }
- else
- seeAlsoScope = "";
-
- seeAlsoTerm = xmlDOM.nodeFromID(seeAlsoID).selectSingleNode("term").text;
- // If k is zero, format first see also
- outText = outText + formatXMLSeeAlso(seeAlsoScope + seeAlsoID, seeAlsoTerm, (k == 0));
- }
- if (k > 0)
- {
- // If there were see alsos, add the trailing paragraph mark
- outText = outText + "</P>";
- }
- }
- else
- {
- theSeeEntry = theScopeDefs(i).selectSingleNode("seeEntry");
- seeID = theSeeEntry.attributes.getNamedItem("seeID").text;
- k = seeID.indexOf(":");
- if (k > 0)
- {
- seeScope = seeID.substring(0, k + 1);
- seeID = seeID.substring(k + 1, seeID.length);
- }
- else
- seeScope = "";
- seeTerm = xmlDOM.nodeFromID(seeID).selectSingleNode("term").text;
- outText = outText + formatXMLSee(seeScope + seeID, seeTerm);
- } // end see term
- } // found our scope
- } // end for j
- } // end for i
- }
- else
- {
- // Term not found - just tell the user we forgot to test this glossary reference
- outText = noDef;
- }
- xmlTermRoot = ""; // Clean up the global
- return (outText);
-
- // for debugging: return ("XML - " + xmlTermRoot + " / " + theXMLTerm + " termText: " + termText + " defText: " + defText + outText);
- }
-
- function formatXMLTerm(theTerm)
- {
- return ("<H3 CLASS='GLOSSARY_ITEM'>" + theTerm + "</H3>");
- }
-
- function formatXMLDef(theDef)
- {
- var theParas;
- var i;
- var theDefOut;
-
- theParas = theDef.selectNodes("para");
- theDefOut = "";
- for (i = 0; i < theParas.length; i++)
- {
- theDefOut = theDefOut + "<P>" + theParas(i).text + "</P>";
- }
- return (theDefOut);
- }
-
- function formatXMLSee(theSeeTermID, theSeeTerm)
- {
- var theSeeText;
-
- theSeeText = "<A ID='In_PopuP' HREF='#" + theSeeTermID + "'>" + theSeeTerm + "</A>";
- return ("<P ID='SeeDef'>" + L_See_Text + theSeeText);
- }
-
- function formatXMLSeeAlso(theSeeAlsoTermID, theSeeAlsoTerm, bFirstOne)
- {
- var theSeeAlsoText;
- theSeeAlsoText = "<A ID='In_PopuP' HREF='#XML" + theSeeAlsoTermID + "'>" + theSeeAlsoTerm + "</A>";
- if (bFirstOne)
- {
- return ("<P ID='OtherDefs'>" + L_SeeAlso_Text + theSeeAlsoText);
- }
- else
- {
- return (", " + theSeeAlsoText);
- }
- }
-
- //XML Popup Code end
-
-
-
-
- //******************************* EVENT HANDLERS *******************************
- //******************************************************************************
- window.onload = loadInitialThings;
- document.onmouseover = gettingHot;
- document.onmouseout = gettingCold;
- document.onclick = clickAndDo;
- document.onkeypress = ieKey;
- window.onresize = fixPopUps;
-
-