function CheckResolution()
{
	if ((screen.width < 1024) && (screen.height < 768))
	{
		alert("This site has been designed for a minimum screen resolution of 1024x768. Your current screen resolution is "+screen.width + "x" + screen.height + ". Its is recomended that you set your screen resolution to 1024x768.");
	}
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}




var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari'))
{ 
	browser = "Safari"
}
else if (checkIt('omniweb')) 
{
	browser = "OmniWeb"
}
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"
	version = detect.substring(place + thestring.length, place + thestring.length + 3);
}
else if (checkIt('netscape')) 
{
	browser = "Netscape Navigator";
	if (detect.charAt(place + thestring.length) == "/")
	{
		version = detect.substring(place + thestring.length + 1,place + thestring.length + 4);
	}
	else
	{
		version = detect.substring(place + thestring.length ,place + thestring.length + 3);
	}
}
else if (checkIt('mozilla')) 
{
	browser = "Mozilla"
}
else if (!checkIt('compatible'))
{
	browser = "Unknown Browser"
	version = detect.charAt(8);
}
else 
{
	browser = "Unknown Browser";
}

if (!version) version = detect.charAt(place + thestring.length);

var browserCheck = false;
if (browser == "Internet Explorer")
{
	if (version >= 6)		
	{
		browserCheck = true;
	}
}

if (browserCheck == false)
{
	document.location = "bypass_badBrowser.do";
}


