		var agt=navigator.userAgent.toLowerCase();
		var windowFeatures;
		
		windowFeatures = "width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";    
		
		// *** BROWSER VERSION ***
		// Note: On IE5, these return 4, so use is_ie5up to detect IE5.
		// userAgent string for Safari browser - Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/48 (like Gecko) Safari/48
		var is_major = parseInt(navigator.appVersion);
		var is_minor = parseFloat(navigator.appVersion);
		var bPlatform = navigator.platform.toUpperCase();
		var PLATFORM = bPlatform.slice(0,3);
/*		
		document.writeln("navigator.userAgent: " + String(navigator.userAgent) + "<br>");
		document.writeln("agt: " + String(agt) + "<br>");
		document.writeln("is_minor: " + is_minor + "<br>");
		document.writeln("is_major: " + is_major + "<br>");
		document.writeln("PLATFORM: " + PLATFORM + "<br>");
*/

		// Note: Opera and WebTV spoof Navigator.  We do strict client detection.
		// If you want to allow spoofing, take out the tests for opera and webtv.
    
		var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
		var is_nav2 = (is_nav && (is_major == 2));
		var is_nav3 = (is_nav && (is_major == 3));
		var is_nav4 = (is_nav && (is_major == 4));
		var is_nav4up = (is_nav && (is_major >= 4));
		var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) || (agt.indexOf("; nav") != -1)) );
		var is_nav6 = (is_nav && (is_major == 5));
		var is_nav6up = (is_nav && (is_major >= 5));

		var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
		var is_ie3    = (is_ie && (is_major < 4));
		var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
		var is_ie4up  = (is_ie && (is_major >= 4));
		var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
		var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
		var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
		var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
		var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
		var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);

		var is_safari     = (agt.indexOf("safari") != -1);
		var is_safari1    = (is_safari && (is_major >= 5));
	/*
		document.writeln("agt.indexOf('safari'): " + agt.indexOf("safari") + "<br>");		
		document.writeln("is_safari1: " + is_safari1 + "<br>");
	
		document.writeln("is_nav: " + is_nav + "<br>");
		document.writeln("is_nav2: " + is_nav2 + "<br>");
		document.writeln("is_nav3: " + is_nav3 + "<br>");
		document.writeln("is_nav4: " + is_nav4 + "<br>");
		document.writeln("is_nav4up: " + is_nav4up + "<br>");
		document.writeln("is_navonly: " + is_navonly + "<br>");
		document.writeln("is_nav6: " + is_nav6 + "<br>");
		document.writeln("is_nav6up: " + is_nav6up + "<br>");
	
		document.writeln("is_ie: " + is_ie + "<br>");
		document.writeln("is_ie3: " + is_ie3 + "<br>");
		document.writeln("is_ie4: " + is_ie4 + "<br>");
		document.writeln("is_ie4up: " + is_ie4up + "<br>");
		document.writeln("is_ie5: " + is_ie5 + "<br>");
		document.writeln("is_ie5_5: " + is_ie5_5 + "<br>");
		document.writeln("is_ie5up: " + is_ie5up + "<br>");
		document.writeln("is_ie5_5up: " + is_ie5_5up + "<br>");
		document.writeln("is_ie6: " + is_ie6 + "<br>");
		document.writeln("is_ie6up: " + is_ie6up + "<br>");
		
		document.writeln("PLATFORM: " + PLATFORM + "<br>");
		*/
		
		function checkbrower()
		{
		vReturn = true;

		if (is_nav == true && is_nav6up == false && PLATFORM == 'WIN')
			{
			blnContinue = confirm("You are using an old version of Netscape you will have to upgrade your browser to continue\nUpgrade Now?")	
				if (blnContinue == true)
					{
					vReturn=false;
					window.open('http://www.leagueminder.com/leagueminder/downloads.html', '', windowFeatures);
					//window.location.replace("http://home.netscape.com/computing/download/index.html?cp=hophb2");
					}
					else
					{
					vReturn = false;
					//window.location.replace("index3.asp");
					}
			}
		//else{if(is_ie == true && is_ie5_5up == false && PLATFORM == 'WIN')
		else{if(is_ie == true && is_ie5up == false && PLATFORM == 'WIN') 
			{
			blnContinue = confirm("You are using an old version of Internet Explorer you will have to upgrade your browser to continue\nUpgrade Now?")
				if (blnContinue == true)
					{
					vReturn=false;
					window.open('http://www.leagueminder.com/leagueminder/downloads.html', '', windowFeatures);
					//window.location.replace("http://www.microsoft.com/windows/ie/default.asp");
					}
					else
					{
					vReturn = false;
					//window.location.replace("index3.asp");
					}		
			}
		
		else{if(is_ie == true && is_ie5up == false && PLATFORM == 'MAC')
		//else{if(is_ie == true && is_ie6up == false && PLATFORM == 'MAC')  //changed to allow IE 5.0 + on MAC; IE6 on MAC doesn't exist 2003-12-16 jvn
			{
			blnContinue = confirm("You are using an old version of Internet Explorer you will have to upgrade your browser to continue\nUpgrade Now?")
				if (blnContinue == true)
					{
					vReturn=false;
					window.open('http://www.leagueminder.com/leagueminder/downloads.html', '', windowFeatures);
					//window.location.replace("http://www.microsoft.com/mac/products/ie/ie_default.asp");
					}
					else
					{
					vReturn = false;
					//window.location.replace("index3.asp");
					}		
			}
	
		else{if(is_nav == true && is_nav6up != true && PLATFORM == 'MAC')
			{
			blnContinue = confirm("We do not currently support Netscape Navigator on the Macintosh platform.  Please switch to Internet Explorer to access the application.\nIf you do not have Internet Explorer installed on your computer, click OK to download it now?")
				if (blnContinue == true)
					{
					vReturn=false;
					window.open('http://www.leagueminder.com/leagueminder/downloads.html', '', windowFeatures);
					//window.location.replace("http://www.microsoft.com/mac/products/ie/ie_default.asp");
					}
					else
					{
					vReturn = false;
					//window.location.replace("index3.asp");
					}		
			}
		else
			{vReturn=true;}	
		}}}		
		}