function upgradeBrowser(theScriptName)
{
	if (bIsNS4x)
	{
		var theSite = '';
		
		if (theScriptName.indexOf('/fp.aspx') == -1)
			if (theScriptName.indexOf('/', theScriptName.indexOf('/')+1) != -1)
				theSite = theScriptName.substr(theScriptName.indexOf('/')+1, theScriptName.indexOf('/', theScriptName.indexOf('/')+1)-theScriptName.indexOf('/')-1);
			else
				theSite = theScriptName.substr(theScriptName.indexOf('/')+1, theScriptName.length-theScriptName.indexOf('/')-1);
		else
			theSite = sSite; //sSite defined in core template

		if (theScriptName != ('/'+ theSite +'/browser_upgrade/browser_upgrade.asp'))
		{
			var nextYear = new Date();
			var allCookies = document.cookie;
			var theCookie = "FPUpgradeBrowser";
			var sCookieCount;
			var wNew;

			if (allCookies.indexOf(theCookie) == -1)
				sCookieCount = 0
			else
			{
				sCookieCount = allCookies.substr(allCookies.indexOf('=', allCookies.indexOf(theCookie))+1, 1);
				if (isNaN(sCookieCount))
					sCookieCount = 0;
			}

			if (sCookieCount < 3) {
				nextYear.setFullYear(nextYear.getFullYear() + 1);
				document.cookie = theCookie + "=" + (Number(sCookieCount)+1) + ";expires=" + nextYear.toGMTString() + ";path=/";
				wNew = window.open('/'+ theSite +'/browser_upgrade/browser_upgrade.asp', 'FPNotSupport', 'left=10,top=10,screenX=10,screenY=10,width=780,height=530,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no');
				wNew.focus();
			} 
		}
	}
}