/* 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 Mozilla = (window.Event != null); var IS_IE4 = (navigator.appVersion.indexOf("MSIE 4") != -1); var IS_IE50 = (navigator.appVersion.indexOf("MSIE 5.0") != -1); var IS_IE = (navigator.appVersion.indexOf("MSIE") != -1); var is_Flash = false; var is_FlashVersion = 0; var InternetConnection = 0;  String.prototype.LTrim = new Function("return this.replace(/^\\s+/,'')"); String.prototype.RTrim = new Function("return this.replace(/\\s+$/,'')"); String.prototype.Trim = new Function("return this.replace(/^\\s+|\\s+$/g,'')");  var	SlowPage = 10;  function myGetElementById(ElementId) { if (document.getElementById) return(document.getElementById(ElementId)); else return(document.all(ElementId)); }  function ProtectReservedCharacters(buffer) { buffer = buffer.replace(/</g, "&#60;"); buffer = buffer.replace(/\(/g, "&#40;"); buffer = buffer.replace(/\)/g, "&#41;"); buffer = buffer.replace(/\[/g, "&#91;"); buffer = buffer.replace(/\]/g, "&#93;"); buffer = buffer.replace(/\{/g, "&#123;"); buffer = buffer.replace(/\}/g, "&#125;");
 buffer = buffer.replace(/,/g, "&#44;"); return(buffer); }  function UnProtectReservedCharacters(buffer) { buffer = buffer + ""; buffer = buffer.replace(/&#60;/g, "<"); buffer = buffer.replace(/&#40;/g, "("); buffer = buffer.replace(/&#41;/g, ")"); buffer = buffer.replace(/&#91;/g, "["); buffer = buffer.replace(/&#93;/g, "]"); buffer = buffer.replace(/&#123;/g, "{"); buffer = buffer.replace(/&#125;/g, "}"); buffer = buffer.replace(/&#44;/g, ","); return(buffer); }  function doPrint(Type) { if (! IS_IE4) window.print(); else vbPrintPage(); }  function GetCookieValue(CookieName, DefaultValue) { var	Value;  if (document.cookie != "") { DocumentCookie = document.cookie.split("; "); for (i=0; i<DocumentCookie.length; i++) { items = DocumentCookie[i].split(","); for (u=0; u<items.length; u++) { if (CookieName == items[u].split("=")[0]) { Value = UnProtectCookie(items[u].split("=")[1]); return(Value); } } } } return(DefaultValue); }  function CookieVal(cookieName, DefaultValue) { if (document.cookie != "") { thisCookie = document.cookie.split("; ");
 for (i=0;i<thisCookie.length;i++) { if (cookieName == thisCookie[i].split("=")[0]) { return(thisCookie[i].split("=")[1]); } } } return(DefaultValue); }  function FirstTime() { var expireDate, Value;  if ((window.navigator.cookieEnabled) && (document.cookie != "") && (! GB_MaintenanceMode)) { Value = eval(GetCookieValue("GB_FT", true)); if (Value) { expireDate = new Date; expireDate.setHours(expireDate.getHours()+24); document.cookie = "GB_FT=" + false + "; path=/; expires=" + expireDate.toGMTString(); return(Value); } } return(false); }  function AsciiDateTime(nsecs) { var holding = ""; var now = new Date; var update_date = new Date; var LastUpdateLocal = nsecs; var position; var date_string;  now.setTime(LastUpdateLocal); holding = now.toGMTString(); position = holding.length - 1; while (holding.charAt(position) != ' ') position--; date_string = holding.substring(0, position); if (date_string.length > 3) date_string = date_string.substring(0, date_string.length-3); return(date_string); }  function AsciiDate(nsecs) { var holding = ""; var now = new Date;
 var update_date = new Date; var LastUpdateLocal = nsecs; var position; var date_string;  now.setTime(LastUpdateLocal); holding = now.toGMTString(); position = holding.length - 1; while (holding.charAt(position) != ' ') position--; date_string = holding.substring(0, position); if (date_string.length > 9) date_string = date_string.substring(0, date_string.length-9); return(date_string); }  function UpdateCheckBox(CheckBoxID, Value) { myGetElementById(CheckBoxID).checked = Value; }  function MaxWidth() { Width = screen.width; if (document.body.scrollWidth > Width) Width = document.body.scrollWidth; return(Width); }  function MaxHeight() { Height = screen.height; if (document.body.scrollHeight > Height) Height = document.body.scrollHeight; return(Height); }  function CheckFlash() { if (Mozilla) { var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0; 
 if (plugin && plugin.description) { is_Flash = true; is_FlashVersion = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)); } } else { document.write('<scr' + 'ipt language=VBScript>' + '\n' + 'Dim hasPlayer, playerversion' + '\n' + 'hasPlayer = false' + '\n' + 'playerversion = 10' + '\n' + 'Do While playerversion > 0' + '\n' +	'On Error Resume Next' + '\n' +	'hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion)))' + '\n' + 'If hasPlayer = true Then Exit Do' + '\n' +	'playerversion = playerversion - 1' + '\n' + 'Loop' + '\n' + 'is_FlashVersion = playerversion' + '\n' +	'is_Flash = hasPlayer' + '\n' +	'<\/sc' + 'ript>'); } }  function FlashMessage() {
 myGetElementById("PleaseWait").innerHTML = '<table width="775"><tr><td><img src="' + DP_ImagePath + '/Assets/9000.jpg"></td></tr><tr height="20"><td></td></tr><tr height="20"><td align="center"><span class="ArticleHeading">Adobe (Macromedia) Flash is required to view the systemhound reporting pages</span></td></tr><tr><td align="center"><span class="ArticleText GreyText">The Flash Player can be downloaded direct from Adobe <a href="#" onclick="ShowExternalPage(\'' + FlashCodeBase2 + '\', false);" class="BlueText">here</a></span></td></tr><tr height="60"><td align="center"><img src="' + DP_ImagePath + '/Assets/5037.jpg" onclick="window.location.reload();return false;" title="Try again"></td></tr></table>'; }  CheckFlash();  function MatchString(String1, String2) { var	Items, Pos;  Items = String2.split("*"); if (Items.length == 1) return(String1 == String2); Pos = 0; for (Count=0; Count<Items.length; Count++) { if (Count == 0) { if ((Pos = String1.indexOf(Items[Count], Pos)) != 0) return(false); } else {
 if ((Pos = String1.indexOf(Items[Count], Pos)) == -1) return(false); } Pos = Pos + Items[Count].length; } return(true); }  function MatchString2(String1, String2) { var Pattern = "";  Pattern = '/^' + String2 + '$/'; return(!!String1.match(eval(Pattern))); }  function ProtectCookie(CookieValue) { CookieValue = CookieValue.replace(/;/g, "<<SEMI>>"); return(CookieValue); }  function UnProtectCookie(CookieValue) { CookieValue = CookieValue.replace(/<<SEMI>>/g, ";"); return(CookieValue); }  function HotFixName(ApplicationName) { var	Pos, Buffer;  if ((Pos = ApplicationName.indexOf("(KB")) != -1) { Buffer = ApplicationName.substr(Pos+1); Buffer = Buffer.substr(0, Buffer.indexOf(")")); return(Buffer); } else if ((Pos = ApplicationName.indexOf("- KB ")) != -1) { Buffer = ApplicationName.substr(Pos+5); if (Buffer.indexOf(" ") != -1) Buffer = Buffer.substr(0, Buffer.indexOf(" ")); return("KB" + Buffer); } else if ((Pos = ApplicationName.indexOf(": KB")) != -1) { Buffer = ApplicationName.substr(Pos+4); if (Buffer.indexOf(" ") != -1)
 Buffer = Buffer.substr(0, Buffer.indexOf(" ")); return("KB" + Buffer); } else if ((Pos = ApplicationName.indexOf("- KB")) != -1) { Buffer = ApplicationName.substr(Pos+2); if (Buffer.indexOf(" ") != -1) Buffer = Buffer.substr(0, Buffer.indexOf(" ")); return(Buffer); } else if ((Pos = ApplicationName.indexOf("&#40;KB")) != -1) { Buffer = ApplicationName.substr(Pos+5); Buffer = Buffer.substr(0, Buffer.indexOf("&#41;")); return(Buffer); } else if ((Pos = ApplicationName.indexOf("Hotfix &#40;SP2&#41;")) != -1) { Buffer = "_None"; return(Buffer); } else if (ApplicationName.substr(6, 1) == ":") { return("KB" + ApplicationName.substr(0, 6)); } else if ((ApplicationName.substr(7, 1) == ":") && (ApplicationName.substr(0, 1) == "Q")) { return("KB" + ApplicationName.substr(1, 6)); } else if ((ApplicationName.substr((ApplicationName.length - 16), 5) == "&#40;") && (ApplicationName.substr((ApplicationName.length - 5), 5) == "&#41;")) { return("KB" + ApplicationName.substr(ApplicationName.length - 11, 6)); } return(""); }