function display() {

window.onerror=null;

function checkIt(s) {
place = detect.indexOf(s) + 1;
thestring = s;
return place;
}



/* Get browser name */
var detect = navigator.userAgent.toLowerCase();
var OS, browser, version, thestring, place;
if (checkIt('konqueror')) {
browser = "Konqueror";
OS = "Linux";
} else if (checkIt('safari')) browser = "Safari";
else if (checkIt('omniweb')) browser = "OmniWeb";
else if (checkIt('k-meleon')) {
browser = "K-Meleon";
var rv = detect.match(/k-meleon ([\w.]+)/);
if (rv) {
rv = rv[0];
version = rv.substr(3);
}
}
else if (checkIt('opera')) browser = "Opera";
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab";
else if (checkIt('msie')) browser = "Internet Explorer";
else if (checkIt('msie 7')) browser = "Internet Explorer 7";
else if (checkIt('msie 6')) browser = "Internet Explorer 6";
else if (checkIt('msie 5.5')) browser = "Internet Explorer 5.5";
else if (checkIt('firefox')) browser = "Firefox";
else if (checkIt('chrome')) browser = "Chrome";
else if (!checkIt('compatible')) {
browser = "Netscape Navigator";
version = detect.charAt(8);
if (typeof(navigator.product) != "undefined") {
browser = "Mozilla";
rv = navigator.userAgent.match(/([Mozilla ]?Fire\w+)\/([\w|\+.]+)/);
if (rv) {
browser = rv[1];
version = rv[2];
} else {
rv = navigator.userAgent.match(/rv:([\w|\+.]+)/);
if (rv) {
rv = rv[0];
version = rv.substr(3);
}
}
}
}else browser = "An unknown browser";
if (!version) {
version = detect.charAt(place + thestring.length);
}


if (checkIt('chrome')) {
browser = "Chrome";
detect_array = detect.split("chrome/");
var x = detect_array[1];
x_array = x.split(" ");
version = x_array[0];
}


var browsername = "";
if (browser) browsername += browser;
var ie = false;
if (browsername == 'Internet Explorer') ie = true;
if (version) browsername += " " + version;
document.form.browser.value = browsername;


/* Get appName */
document.form.appName.value = (typeof(navigator.appName) != "undefined") ? navigator.appName : "Not defined";


/* Get appCodeName */
document.form.appCodeName.value = (typeof(navigator.appCodeName) != "undefined") ? navigator.appCodeName : "Not defined";


/* Get appVersion */
document.form.appVersion.value = (typeof(navigator.appVersion) != "undefined") ? navigator.appVersion : "Not defined";


/* Get UserAgent */
document.form.UserAgent.value = (typeof(navigator.userAgent) != "undefined") ? navigator.userAgent : "Not defined";


/* Get Operating system */
var i_win;
var v_win;
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("win")!=-1 || agt.indexOf("16bit")!=-1)
i_win = true;
if (i_win) {
if (agt.indexOf("win95")!=-1 || agt.indexOf("windows 95")!=-1)
v_win = "Windows 95";
if (agt.indexOf("win98")!=-1 || agt.indexOf("windows 98")!=-1)
v_win = "Windows 98";
if (agt.indexOf("win 9x 4.90")!=-1)
v_win = "Windows ME";
if (agt.indexOf("winnt")!=-1 || agt.indexOf("windows nt")!=-1)
v_win = "Windows NT";
if (agt.indexOf("windows nt 5.0")!=-1)
v_win = "Windows 2000";
if (agt.indexOf("windows nt 5.1")!=-1)
v_win = "Windows XP";
if (!v_win)
v_win = "Unknown Windows";
}
if (!OS) {
if (checkIt('linux')) OS = "Linux";
else if (checkIt('x11')) OS = "Unix";
else if (checkIt('mac')) OS = "Mac";
else if (checkIt('win')) OS = "Windows";
else OS = "an unknown operating system";
}
var opsys = (typeof(navigator.oscpu) != "undefined" && navigator.oscpu != "") ? navigator.oscpu : OS;
if (i_win) opsys = opsys + " - " + v_win;
document.form.opsys.value = opsys;


/* Get Platform */
if (typeof(navigator.platform) != "undefined") {
var platform = navigator.platform;
switch (navigator.platform) {
case "Win32" : platform = platform + " - Windows 32-bit platform";break;
case "Windows" : platform = platform + " - Windows 32-bit platform";break;
case "Win16" : platform = platform + " - Windows 16-bit platform";break;
case "WinCE" : platform = platform + " - Windows CE platform";break;
default : platform = platform + " - Other platform";break;
}
} else platform = "Not defined";
document.form.platform.value = platform;


/* Report current screen resolution */
document.form.width.value = window.screen.width;
document.form.height.value = window.screen.height;


/* Report size of client area - available width and height */
if(document.all){
  if (ie) {
	document.form.maxwidth.value = document.documentElement.clientWidth;
	document.form.maxheight.value = document.documentElement.clientHeight;
  }
  else {
	document.form.maxwidth.value = document.body.clientWidth;
	document.form.maxheight.value = document.body.clientHeight;
  }
}
else {
  document.form.maxwidth.value = window.innerWidth;
  document.form.maxheight.value = window.innerHeight;
}


/* Report size of document - width and height */

document.form.docwidth.value = (document.width || document.body.offsetWidth);
if (ie) document.form.docheight.value = document.body.offsetHeight;
else
  if (!op)
    document.form.docheight.value = document.height;
  else
    document.form.docheight.value = document.documentElement.scrollHeight


/* Report colour depth */
document.form.colordepth.value = window.screen.colorDepth;


/* Report number of colours */
colors = window.screen.colorDepth;
document.form.color.value = Math.pow (2, colors);



/* Report if Java enabed in browser */
document.form.java.value = (navigator.javaEnabled()) ? "Yes" : "No";


/* Report anti-aliasing for Internet Explorer */
if (ie) {
if (window.screen.fontSmoothingEnabled == true) document.form.fonts.value = "Yes";
else document.form.fonts.value = "No";
}
else document.form.fonts.value = "";

}