home *** CD-ROM | disk | FTP | other *** search
- // JScript source code
- var bEnableBT = true;
- var ProdType;
-
- function LaunchBackTrace(address)
- {
- if (bEnableBT == false)
- return;
-
- // Find the actually IP address (xxx.xxx.xxx.xxx).
-
- var begin = address.indexOf('(');
- var end = address.indexOf(')');
- var szIPAddress = address;
-
- if (begin < end && begin != -1)
- szIPAddress = address.substring(begin+1, end);
-
- // Determine the product ID.
-
- switch(ProdType)
- {
- case "PT_NPF":
- ProdID = "NPF2004";
- break;
- case "PT_SCF":
- case "PT_SDF":
- ProdID = "SCF2004";
- break;
- case "PT_PRO":
- ProdID = "NISPro2004";
- break;
- default:
- ProdID = "NIS2004";
- break;
- }
-
- // Format the URL.
-
- var szURL = "http://visualtracking.symantec.com/default.asp?productid=" + ProdID + "&langid=" + navigator.systemLanguage + "&venid=sym" + "&go=" + szIPAddress;
-
- // window.open(szURL, "_blank");
- window.open(szURL, "_blank", "toolbar=no, menubar=no, location=no, directories=no, resizable=yes, scrollbars=yes");
- }
-
- function NisEvtEventOnLoad()
- {
- // Determine the product ID.
-
- var WrapUM = new ActiveXObject("WrapUM.WrapNISUM");
- ProdType = WrapUM.ProductType;
- delete WrapUM;
-
- // If the product is NPF, SDF, or SCF, hide the user row.
-
- switch(ProdType)
- {
- case "PT_NPF":
- case "PT_SDF":
- case "PT_SCF":
- UserRow.style.display = "none";
- break;
-
- default:
- break;
- }
- }
-
- function IDSEventOnLoad()
- {
- // Determine the product ID.
-
- var WrapUM = new ActiveXObject("WrapUM.WrapNISUM");
- ProdType = WrapUM.ProductType;
- delete WrapUM;
-
- // If the product is SDF or SCF, hide all BackTrace features.
-
- switch(ProdType)
- {
- case "PT_SDF":
- case "PT_SCF":
- {
- // Hide the BackTrace description row if it exists.
-
- if (BTDescriptionRow != null)
- BTDescriptionRow.style.display = "none";
-
- // Change all BackTrace links to normal text.
-
- if (BTLink.length)
- {
- for (i = 0; i < BTLink.length; i++)
- {
- BTLink[i].className = "";
- }
- }
- else
- BTLink.className = "";
-
- // Turn off all BackTrace link onclick handler.
-
- bEnableBT = false;
- }
- break;
-
- default:
- break;
- }
- }
-