home *** CD-ROM | disk | FTP | other *** search
- var L_ShowAll_message, L_HideAll_message, L_ShowAlt_message, L_HideAlt_message
- L_ShowAll_message = "Show All" ;
- L_HideAll_message = "Hide All" ;
- L_ShowAlt_message = "Show all contracted text" ;
- L_HideAlt_message = "Hide all expanded text" ;
-
- var sections;
- sections = 0 ;
- for (var i=0; i< document.all.tags("DIV").length; i++) {
- if (document.all.tags("DIV").style.display=="none") {
- sections = sections + 1 ;
- }
- }
-
-
- if(document.images) {
- var right = new Image();
- right.src = "media/images/right.gif";
- var down = new Image();
- down.src = "media/images/down.gif";
-
- function doColor() {
- var i;
- var posend ;
- posend = document.all.tags("A").length ;
- for (i = 0; i< posend; i++) {
- if (document.all.tags("A")[i].className == "anchorclass") {
- document.all.tags("A")[i].style.color = "#990099" ;
- }
- }
- var divcount = document.all.tags("DIV").length ;
- var allshown = 1 ;
- for(var i = 0; i < divcount; i++) {
- if(document.all.tags("DIV")[i].className == "divclass") {
- if(document.all.tags("DIV")[i].style.display=="none") {
- allshown = 0;
- }
- if(document.all.tags("DIV")[i].style.display=="") {
- var divvy = document.all.tags("DIV")[i].id ;
- var pos = divvy.lastIndexOf("_") + 1 ;
- var thenum = divvy.slice(pos) ;
- var thebutton = "Button" + thenum ;
- document.all.tags("IMG")(thebutton).src = "Media/Images/down.gif" ;
- }
-
- }
- }
-
- var acount = document.all.tags("A").length ;
- for (var i = 0; i < acount; i++) {
- if (document.all.tags("A")[i].id == "clickshowall") {
- if (allshown == 1) {
- clickshowall.innerHTML = L_HideAll_message ;
- expcon.alt = L_HideAlt_message ;
- expcon.src = "Media/Images/hideallright.gif" ;
- }
- }
-
- }
-
-
- }
-
-
-
-
- function doSection (secNum, button){
- var count = 0
- var divcount = document.all.tags("DIV").length ;
- if (secNum.style.display=="none"){
- secNum.style.display = ""
- button.src = down.src;
- }else{
- secNum.style.display = "none"
- button.src = right.src;
- }
- for (var i=0; i< divcount; i++) {
- if (document.all.tags("DIV")[i].style.display=="none") {
- count = count + 1 ;
- }
- }
-
- if (count > 0) {
- clickshowall.innerHTML = L_ShowAll_message ;
- expcon.alt = L_ShowAlt_message ;
- expcon.src = "Media/Images/showalldown.gif" ;
- } else {
- clickshowall.innerHTML = L_HideAll_message ;
- expcon.alt = L_HideAlt_message ;
- expcon.src = "Media/Images/hideallright.gif"
- }
-
- }
-
- function noSection (secNum, button){
- if (secNum.style.display==""){
- secNum.style.display = "none"
- button.src = right.src;
- }
- }
- }
-
- function roll(ID, NewImage) {
- ID.src = NewImage;
- }
-
- function MoveIt(ID, source) {
- ID.src = source;
- }
-
- function Redirect(chmname,htmname){
- holding.innerHTML="<" + "OBJECT ID=" +
- '"DirSearch"' +
- " WIDTH=1" +
- " HEIGHT=1" +
- " CLASSID=" + '"CLSID:A55A00C1-FD6C-11D2-A922-00C04F69D235"' +
- "></OBJECT>" ;
-
- if(DirSearch.FileFound(chmname)==true){
- location.href="ms-its:" + chmname + "::/" + htmname ;
- }
- else {
- location.href="ms-its:Vis_VM.chm::/VM_Solutions and eVisio2.htm" ;
- }
-
-
- }
-
-
- function winJump(term, help) {
- holding.innerHTML="<" + "OBJECT id=" +
- '"hhctrl"' + " type=" +
- '"application/x-oleobject"' +
- " classid = " +
- '"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
- "><PARAM name=" +
- '"Command"' +
- " value=" +
- '"WinHelp, Popup"'+
- ">" + "<PARAM name=" +
- '"Item1"' +
- " value="+
- help +
- ">" +
- "<PARAM name="+
- '"Item2"'+
- " value="+
- term + ">"+
- "</OBJECT>";
-
- hhctrl.Click();
-
- }
-
- function secwin(wintype,chmname,htmname) {
-
- holding.innerHTML="<" + "OBJECT id=" +
- '"hhctrl3"' + " type=" +
- '"application/x-oleobject"' +
- " classid = " +
- '"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
- ">" +
- "<PARAM name=" +
- '"Command"' +
- " value=" +
- '"Related Topics"'+
- ">" + "<PARAM name=" +
- '"Window"' +
- " value="+
- '"' + wintype + '"' + ">" +
- "<PARAM name=" +
- '"Item1"' +
- " value="+
- '"' + "Title;" + chmname + "::/" + htmname + '"' + ">" +
- "</OBJECT>";
-
- hhctrl3.Click() ;
- }
-
-
-
- function closewin() {
-
- holding.innerHTML="<" + "OBJECT id=" +
- '"hhctrlclose"' + " type=" +
- '"application/x-oleobject"' +
- " classid = " +
- '"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
- "><PARAM name=" +
- '"Command"' +
- " value=" +
- '"Close"' + ">" +
- "</OBJECT>";
-
-
- hhctrlclose.Click() ;
-
-
- }
-
-
-
-
- function RelTopics(winname,target) {
-
-
- holding.innerHTML="<" + "OBJECT id=" +
- '"hhctrl3"' + " type=" +
- '"application/x-oleobject"' +
- " classid = " +
- '"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
- ">" +
- "<PARAM name=" +
- '"Command"' +
- " value=" +
- '"Related Topics"'+
- ">" + "<PARAM name=" +
- '"Window"' +
- " value="+
- '"' + winname + '"' + ">" +
- "<PARAM name=" +
- '"Item1"' +
- " value="+
- '"' + "Title;" + target + '"' + ">" +
- "</OBJECT>";
-
- hhctrl3.Click() ;
- }
-
-
- function BrowserWin(site,alternative) {
-
- holding.innerHTML="<" + "OBJECT id=" +
- '"ShtCt"' + " type=" +
- '"application/x-oleobject"' +
- " classid = " +
- '"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
- ">" +
- "<PARAM name=" +
- '"Command"' +
- " value=" +
- '"ShortCut"'+
- ">" +
- "<PARAM name=" +
- '"Item1"' +
- " value="+
- '"' + "," + site + "," + '"' + ">" +
- "<PARAM name=" + '"' + "Window" + '"' +
- " value=" + alternative + '"' + ">" +
- "</OBJECT>";
-
- ShtCt.Click() ;
- }
-
- function showall() {
-
-
- clickshowall.style.cursor = "wait" ;
- expcon.style.cursor = "wait" ;
- if (clickshowall.innerHTML==L_ShowAll_message) {
- clickshowall.innerHTML = L_HideAll_message ;
- expcon.alt = L_HideAlt_message ;
- expcon.src = "Media/Images/hideallright.gif"
- var divcount = document.all.tags("DIV").length ;
- for(var i = 0; i < divcount; i++)
- if(document.all.tags("DIV")[i].className == "divclass") {
- document.all.tags("DIV")[i].style.display="" ;
- }
- var imgcount = document.all.tags("IMG").length ;
- for(var i = 0; i < imgcount; i++)
- if(document.all.tags("IMG")[i].className == "Btn") {
- document.all.tags("IMG")[i].src = "Media/Images/down.gif" ;
- }
-
- }
- else {
- clickshowall.innerHTML = L_ShowAll_message ;
- expcon.alt = L_ShowAlt_message ;
- expcon.src = "Media/Images/showalldown.gif" ;
- var divcount = document.all.tags("DIV").length ;
- for(var i = 0; i < divcount; i++)
- if(document.all.tags("DIV")[i].className == "divclass") {
- document.all.tags("DIV")[i].style.display="none" ;
- }
- var imgcount = document.all.tags("IMG").length ;
- for(var i = 0; i < imgcount; i++)
- if(document.all.tags("IMG")[i].className == "Btn") {
- document.all.tags("IMG")[i].src = "Media/Images/right.gif" ;
- }
-
- }
- clickshowall.style.cursor = "auto" ;
- expcon.style.cursor = "auto" ;
-
- }
-
- function ShowSharedText() {
- var TheText ;
- var framenum = self.frames.length ;
- for( var i=0; i< framenum; i++) {
- TheText = document.frames[0].document.body.innerHTML ;
- var StartHere = TheText.indexOf("</H1>",0) ;
- if (StartHere < 0 ) {
- Starthere = TheText.indexOf("</h1>",0) ;
- }
- var EndHere = TheText.length ;
- var LessHeading = TheText.slice(StartHere,EndHere) ;
-
- var divname = "<DIV id=holding>" ;
- EndHere = LessHeading.search(divname) ;
-
- var LessDiv = LessHeading.slice(0,EndHere) ;
- var divtext= document.all.tags("IFRAME")[0].parentElement ;
- divtext.innerHTML = LessDiv ;
- }
-
-
- }
-
-
-
-