// browser.js 10-05-2009

	var flgIE5 = false;
	var flgIE6_8 = false;
	var flgNN4 = false;
	var flgNN6 = false;
	var flgMoz = false;
	var strAgent = navigator.userAgent.toLowerCase();

	function testForBrowserType() {
		if (strAgent.indexOf("msie 5") != -1) { // IExplorer 5.x
			flgIE5 = true;
		} else if (document.getElementById) { // IExplorer 6.x - 8.x, Netscape 6.2.2 or Mozilla 1.x - 3.x
			if (strAgent.indexOf("msie 6") != -1 || strAgent.indexOf("msie 7") != -1 || strAgent.indexOf("msie 8") != -1) { // IExplorer 6.x, IExplorer 7.x, IExplorer 8.x
				flgIE6_8 = true;
			} else if (navigator.userAgent.indexOf("Netscape") >= 0) { // Netscape 6.2.2
				flgNN6 = true;
			} else { // Mozilla
				flgMoz = true;
			}
		} else if (document.layers && (parseFloat(navigator.appVersion) >= 4.5)) { // Netscape 4.7
			// alert(parseFloat(navigator.appVersion))
			// Note: this does NOT work if called from a frameset page / there must be a body tag on the calling page
			flgNN4 = true;
		} else {
			alert("Unsupported browser error.");
			window.close();
		}
		// alert("flgNN4: " + flgNN4 + "\nflgNN6: " + flgNN6 + "\nflgIE5: " + flgIE5 + "\nflgIE6_8: " + flgIE6_8 + "\nflgMoz: " + flgMoz);
	} // end of function

/*
	if (flgIE5) { // IExplorer 5.x
	} else if (flgNN4) { // Netscape 4.7
	} else if (flgIE6_8) { // IExplorer 6.x - 8.x
	} else if (flgMoz) { // Mozilla 1.x - 3.x
	} else if (flgNN6) { // Netscape 6.2.2
	}
*/