//*** Declare JScript variables ***
var bOldBrowser = false;			//Boolean - Flag used to indicate that the user is using a prior version of Netscape of IE
var strBrowserMsg;						//String - Contains the error message to display when the user is using a prior browser version

//TWS - 11.06.00
//The purpose of this function is to check to see is the users browser version
//is compliant with the Online Statement system requirements.  Currently Online Statement
//recommends using MSIE 5.5 or Netscape 4.74.  If the user has a prior version then 
//they are notified and a browser recommendation is given.
function checkBrowser() {
	//Add browser version recommendations for IE & Netscape
	var f_IEVersionNumber = parseFloat("5.5");							//The current MSIE build
	var f_NSVersionNumber = parseFloat("4.74");							//The current Netscape build

	//Is the user using Netscape?
	if (browser.isNS == true) {
		//Check user's version against required version.
		if (browser.versionNumber < f_NSVersionNumber) {
			//*** Display Netscape Warning ***

			//Set Old Browser flag to true because the user is using a prior version of Netscape Navigator.
			bOldBrowser = true;

			//Build the Netscape warning message.
			strBrowserMsg = "<p align=left><font color=red type=verdana>FTD has determined that the Netscape browser you are <br> using is an older version.</font></p>"
			strBrowserMsg = strBrowserMsg + "<p align=left><font color=red type=verdana>This site is best viewed with <a href=http://www.netscape.com/download/>Netscape Navigator 4.74</a> or greater.</font><BR></p>"
		}
	}

	//If the browser is IE and an earlier version than 5.5 then notify user
	if (browser.isIE == true) {
		//Is the users browser version < the recommended version
		if (browser.versionNumber < f_IEVersionNumber) {
			//*** IE Warning Message ***

			//Set Old Browser flag to true because the user is using a prior version of Microsoft Internet Explorer (MSIE).
			bOldBrowser = true;

			//Build the MSIE warning message.
			strBrowserMsg = "<p ><font color=red type=verdana>FTD has determined that the Microsoft Internet Explorer browser you are <br> using is an older version.</font>"
			strBrowserMsg = strBrowserMsg + "<p ><font color=red type=verdana>This site is best viewed with <a href=http://www.microsoft.com/windows/ie/>Microsoft Internet Explorer 5.5</a> or greater.</font><BR>"
		}
	}
} //End - function checkBrowser() 

// Call checkBrowser()
checkBrowser();
