		var agt = navigator.userAgent.toLowerCase();
		var browserok = true;
		var mozillaok = true;
		var operaok = true;
		var isIE = false;
		var isMac = false;

		//alert(agt)
		//alert(navigator.appName)
		//alert(parseInt(navigator.appVersion))

		if (agt.indexOf('mac ') != -1) {
			isMac = true;
		}

		if (agt.indexOf('netscape') != -1) {
			alert("This facility does not support the Netscape browser. Please re-connect using Internet Explorer or Mozilla/Firefox");
			browserok = false;
		}

		if (agt.indexOf('safari') != -1) {
			alert("This facility does not support the Safari browser. Please re-connect using Internet Explorer or Mozilla/Firefox");
			browserok = false;
		}
		
		if (agt.indexOf('opera') != -1) {
			pos = agt.indexOf('opera')
			vers = parseInt(agt.substr(pos+5,5))
			if (parseInt(vers) < 8){
				alert("You have an outdated version of the Opera Browser. Please update your browser to the current version.")
				operaok = false;
				browserok = false;
			}
		}


		if (navigator.appName == "Microsoft Internet Explorer") {
			isIE = true;
		}

		if (!isIE){
			if (agt.indexOf('mozilla') != -1) {
				pos = agt.indexOf('mozilla')
				vers = parseInt(agt.substr(pos+8,5))
				if (parseInt(vers) < 4){
					//alert(vers + ";" + agt)
					alert("You have an outdated or uunsupported version of the Mozilla Browser. Please update your browser to the current version.")
					mozillaok = false;
					browserok = false;
				}
			}
		}

		if (!mozillaok) {
			parent.location.href = 'http://training.ntsionline.com/includes/upgrade_mozilla.html';
		}else{

			if (!operaok) {
				parent.location.href = 'http://training.ntsionline.com/includes/upgrade_opera.html';
			}else{

				if (!browserok) {
				alert("Your browser is unsupported by this application.");
				parent.location.href = 'http://training.ntsionline.com/includes/different_browser.html';
				}
			}
		}
