/* 6,0,0,201
--------------------------------------------------------------------------

Copyright (c) 2001-9 Corporate Practical Solutions and Partners.

This software is the property of Corporate Practical Solutions and Partners.

No part of this software may be reproduced in any form,
without the prior consent of Corporate Practical Solutions.

--------------------------------------------------------------------------
*/
  var ProductVersion = "6.0";  function HideMenu(MenuName) { if (! GB_MaintenanceMode) { if ((MenuName == "Main") || (MenuName == "All")) { if ((MenuObject = myGetElementById("AWMEL0_X"))) MenuObject.style.display = "none"; if ((MenuObject = myGetElementById("AWMEL0"))) MenuObject.style.display = "none"; } } if ((MenuName == "Machine" || MenuName == "All")) { if ((MenuObject = myGetElementById("AWMEL27_X"))) MenuObject.style.display = "none"; if ((MenuObject = myGetElementById("AWMEL27"))) MenuObject.style.display = "none"; } if (MenuObject = myGetElementById("MachineSpacerSpan")) MenuObject.style.display = "none"; }  function ShowMenu() { if (! GB_MaintenanceMode) { if ((MenuObject = myGetElementById("AWMEL0_X"))) MenuObject.style.display = ""; if ((MenuObject = myGetElementById("AWMEL0"))) MenuObject.style.display = ""; } if ((GB_MaintenanceMode) || (SH_Report.indexOf("Machine") != -1)) { if ((MenuObject = myGetElementById("AWMEL27_X"))) MenuObject.style.display = ""; if ((MenuObject = myGetElementById("AWMEL27"))) MenuObject.style.display = ""; }
 if (MenuObject = myGetElementById("MachineSpacerSpan")) MenuObject.style.display = ""; }  function ListMenus() { var coll = document.getElementsByTagName("DIV");  for (i=0; i<coll.length; i++) { if (coll[i].id.indexOf("AWMEL") != -1) alert(coll[i].id); } }  function MenuClick(MainMenu, SubMenu) { var	NewPage;  switch (MainMenu) { case 0 : document.location.href = DP_RootPath + "/Index.htm"; break; case 1 : URL = DP_RootPath + "/Hardware/Hardware.htm"; Name = "Master Hardware"; NewPage = (Name != SH_Report); switch (SubMenu) { case 1 : View = "Machines"; if (NewPage) { Argument = "MAN|any|SC|1"; NavigateToPage(URL, Name, View, Argument); break; } if (View != DP_CurrentView) SetView(View, false); break; case 2 : View = "Manufacturers"; if (NewPage) { Argument = "MAN|any|SC|10"; NavigateToPage(URL, Name, View, Argument); break; } if (View != DP_CurrentView) SetView(View, false); break; case 3 : View = "Operating Systems"; if (NewPage) { Argument = "MAN|any|SC|3"; NavigateToPage(URL, Name, View, Argument); break; } if (View != DP_CurrentView) SetView(View, false); break;
 case 4 : View = "Blacklisted machines"; if (NewPage) { Argument = "MAN|any|SC|11"; NavigateToPage(URL, Name, View, Argument); break; } if (View != DP_CurrentView) SetView(View, false); break; case 7 : URL = DP_RootPath + "/Hardware/EX/Hardware_exception.htm"; window.location.href = URL; break; case 8 : View = "Possible duplicates"; if (NewPage) { Argument = "MAN|any|SC|11"; NavigateToPage(URL, Name, View, Argument); break; } if (View != DP_CurrentView) SetView(View, false); break; case 9 : View = "Users"; if (NewPage) { Argument = "MAN|any|SC|14"; NavigateToPage(URL, Name, View, Argument); break; } if (View != DP_CurrentView) SetView(View, false); break; case 10 : View = "Networking"; if (NewPage) { Argument = "MAN|any|SC|1"; NavigateToPage(URL, Name, View, Argument); break; } if (View != DP_CurrentView) SetView(View, false); break; case 11 : View = "Custom information"; if (NewPage) { Argument = "MAN|any|SC|16"; NavigateToPage(URL, Name, View, Argument); break; } if (View != DP_CurrentView) SetView(View, false); break; case 12 : View = "System drive"; if (NewPage) {
 Argument = "MAN|any|SC|1"; NavigateToPage(URL, Name, View, Argument); break; } if (View != DP_CurrentView) SetView(View, false); break; } break; case 2 : URL = DP_RootPath + "/Software/Software.htm"; Name = "Master Software"; NewPage = (Name != SH_Report); if (SubMenu == 4) { if (! GB_ShowWUP) NewPage = true; } else { if (GB_ShowWUP) NewPage = true; } switch (SubMenu) { case 1 : View = "All applications"; if (NewPage) { Argument = "SC|1|GRP|None"; NavigateToPage(URL, Name, View, Argument); break; } DP_DisplayGroup = ""; SetView(View, false); break; case 2 : View = "Grouped applications"; if (NewPage) { Argument = "SC|1|GRP|None"; NavigateToPage(URL, Name, View, Argument); break; } DP_DisplayGroup = ""; SetView(View, false); break; case 3 : View = "Licensed applications"; if (NewPage) { Argument = "SC|1|GRP|None"; NavigateToPage(URL, Name, View, Argument); break; } DP_DisplayGroup = ""; SetView(View, false); break; case 4 : View = "Microsoft Windows Updates"; if (NewPage) { Argument = "SC|6|GRP|None"; NavigateToPage(URL, Name, View, Argument); break; } DP_DisplayGroup = "";
 SetView(View, false); break; case 5 : View = "v4 (default)"; if (NewPage) { Argument = "SC|1|GRP|None"; NavigateToPage(URL, Name, View, Argument); break; } DP_DisplayGroup = ""; SetView(View, false); break; case 6 : URL = DP_RootPath + "/Software/EX/Software_exception.htm"; window.location.href = URL; break; } break; case 3 : switch (SubMenu) { case 1 : if (SH_Report != "Master Hardware") { if (GB_AnyChanges) CheckNavigate("Changes have not been saved", "If you view the hardware page before saving by pressing the \"Update database\" button you will lose any software changes you have made.<br><br>Please confirm that you want to go ahead or press 'Cancel' to return to the software page.", "Event:ViewHardware"); else window.location.href = "Event:ViewHardware"; } break; case 2 : if (SH_Report != "Master Software") { if (GB_AnyChanges)
 CheckNavigate("Changes have not been saved", "If you view the software page before saving by pressing the \"Update database\" button you will lose any hardware changes you have made.<br><br>Please confirm that you want to go ahead or press 'Cancel' to return to the hardware page.", "Event:ViewSoftware"); else window.location.href = "Event:ViewSoftware"; } break; case 3 : if (GB_AnyChanges) if (SH_Report == "Master Hardware") DoHardwareUpdate(); if (SH_Report == "Master Software") DoSoftwareUpdate(); break; case 4 : if (GB_AnyChanges) CheckNavigate("Changes have not been saved", "If you exit the console application before saving by pressing the \"Update database\" button you will lose any changes you have made.<br><br>Please confirm that you want to go ahead or press 'Cancel' to return.", "Event:Quit"); else window.location.href = "Event:Quit"; break; case 5 : if (GB_AnyChanges) if (SH_Report == "Master Hardware")
 CheckNavigate("Changes have not been saved", "If you return to the home page before saving by pressing the \"Update database\" button you will lose any hardware changes you have made.<br><br>Please confirm that you want to go ahead or press 'Cancel' to return to the hardware page.", "Event:ViewHome"); else if (SH_Report == "Master Software") CheckNavigate("Changes have not been saved", "If you return to the home page before saving by pressing the \"Update database\" button you will lose any software changes you have made.<br><br>Please confirm that you want to go ahead or press 'Cancel' to return to the software page.", "Event:ViewHome"); else window.location.href = "Event:ViewHome"; else window.location.href = "Event:ViewHome"; break; } break; case 4 : switch (SubMenu) { case 1 : FurtherInformation("systemhound Forums", "' + systemhoundLinks + '?LinkID=5001", "systemhound"); break; case 2 : FurtherInformation("Documentation", "' + systemhoundLinks + '?LinkID=5002", "systemhound"); break; } break; case 10 : switch (SubMenu) {
 case 1 : URL = DP_RootPath + "/Hardware/" + HW_GUID.substr(34) + "/" + HW_GUID + ".htm"; window.location.href = URL; break; case 2 : URL = DP_RootPath + "/Software/" + HW_GUID.substr(34) + "/" + HW_GUID + ".htm"; window.location.href = URL; break; case 3 : URL = DP_RootPath + "/Hardware/" + HW_GUID.substr(34) + "/" + HW_GUID + "_exception.htm"; window.location.href = URL; break; case 4 : URL = DP_RootPath + "/Software/" + HW_GUID.substr(34) + "/" + HW_GUID + "_exception.htm"; window.location.href = URL; break; } break; } }