home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / 01_03.iso / software / snpf / NPF / NPF.MSI / AlertAst.exe / HTML / INTERNETACCESS.JS < prev    next >
Encoding:
Text File  |  2002-09-21  |  2.2 KB  |  118 lines

  1. function OnLoad()
  2. {
  3.     //Internal replacable strings
  4.     //oPROGNAME
  5.     //oREMADDR
  6.     //oREMPORT
  7.     //oLOCPORT
  8.     //oTRUSTEDCOMPANY
  9.  
  10.     var args = getArgs();
  11.  
  12.     if (args.ProgName)
  13.     {
  14.       //oPROGNAME.innerText = args.ProgName;
  15.       DrawProgramName(args.ProgName);
  16.     }    
  17.  
  18.     if (args.remaddr)
  19.     {
  20.       oREMADDR.innerHTML = DrawVisualTrackingLink(args.remaddr);
  21.     }
  22.     
  23.     if (args.remport)
  24.     {
  25.       oREMPORT.innerText = args.remport;
  26.     }
  27.     
  28.     if (args.locport)
  29.     {
  30.       oLOCPORT.innerText = args.locport;
  31.     }
  32.     
  33.     if (args.risk)
  34.     {
  35.       switch(args.risk)
  36.       {
  37.          case "0":
  38.             idstrRiskLow.style.display = "";
  39.             break;
  40.          case "1":
  41.             idstrRiskMedium.style.display = "";
  42.             break;
  43.          default:
  44.             idstrRiskHigh.style.display = "";
  45.             break;
  46.       }
  47.     }
  48.     
  49.     if (args.virscan)
  50.     {
  51.       switch(args.virscan)
  52.       {
  53.         case "0":
  54.             idstr_VIRUSResult0.style.display = "";
  55.             idimg_VSIcon_Check.style.display = "";
  56.             break;
  57.         case "1":
  58.             idstr_VIRUSResult1.style.display = "";
  59.             idimg_VSIcon_Warning.style.display = "";
  60.             break;
  61.         case "2":
  62.             idstr_VIRUSResult2.style.display = "";
  63.             idimg_VSIcon_Warning.style.display = "";
  64.             break;        
  65.         case "3":
  66.             idstr_VIRUSResult3.style.display = "";
  67.             idimg_VSIcon_Warning.style.display = "";
  68.             break;
  69.             
  70.         case "4"://Same as default
  71.         default:
  72.             idstr_VIRUSResult4.style.display = "";
  73.             idimg_VSIcon_Urgent.style.display = "";
  74.             break;
  75.       }
  76.     }
  77.     else
  78.     {
  79.       //Error state
  80.       idstr_VIRUSResult3.style.display = "";
  81.       idimg_VSIcon_Urgent.style.display = "";
  82.     }
  83.             
  84.     if (args.digisign)
  85.     {
  86.       switch(args.digisign)
  87.       {
  88.         case "1":
  89.             idstr_SignatureResult1.style.display = "";
  90.             idimg_DSIcon_Check.style.display = "";
  91.             break;
  92.         case "0"://Same as default
  93.         default:
  94.             idstr_SignatureResult0.style.display = "";
  95.             idimg_DSIcon_Warning.style.display = "";
  96.             break;
  97.       }
  98.     }
  99.     else
  100.     {
  101.       idimg_DSIcon_Urgent.style.display = "";
  102.       idstr_SignatureResult2.style.display = "";
  103.     }
  104.             
  105.     if (args.company)
  106.     {
  107.       oTRUSTEDCOMPANY.innerText = args.company;
  108.       idimg_KCIcon_Check.style.display = "";
  109.     }
  110.     else
  111.     {
  112.       //Unknown application.
  113.       idimg_KCIcon_Warning.style.display = "";
  114.     }
  115.             
  116.     CollapseSections();
  117. }
  118.