// Global vars for browser type and version
var isNav = (navigator.appName.indexOf("Netscape")>=0);
var isNav4 = false;
var isIE = false;
var is5up = false;
var isIE4 = false;
//alert(navigator.appVersion);
if (isNav) {
	
	if (parseFloat(navigator.appVersion)<5) {
		isNav4=true;
		//alert("Netscape 4.x or older");
	} else {
		is5up = true;
	}
} else {
	isIE=true;
	if ((navigator.appVersion.indexOf("MSIE 5")>0) || (navigator.appVersion.indexOf("MSIE 6")>0)) {
		isIE4 = false;
		is5up = true;
		//alert("IE5");
	} else if (navigator.appVersion.indexOf("MSIE 4")>0) {
		isIE4 = true;
	} 
}

//document.location = "UnderConstruction.aspx";

if ((isNav) && (is5up)) {
	document.location = "AddressReportsPickerN.aspx";
} else if ((isIE) && (is5up)) {
	document.location = "AddressReportsPicker.aspx";
} else if (((isNav) && (!is5up)) || (isIE4)) {
	document.writeln("This application cannot work on " + navigator.appName + " " + navigator.appVersion) + "<br>";
	document.writeln("You need Internet Explorer 5 or higher, or Netscape 4 or higher"); 
} else {
	//You might be lucky! Give it a shot!
	document.location = "AddressReportsPickerN.aspx";
} 
