//BROWSER and SCREEN SIZE WARNING **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** 
//warns user in a pop-up if their browser isn't optimal... but only on dev server!

if (location.hostname == 'localhost' || location.hostname == '131.184.40.47' || location.hostname == 'gford') {
	var warnIE = true, warnSize = false, warnBoth = false, theURL = null, theCookie;
	//check for IE & get universal size values
	if (!NN) {
		warnIE = false;
		var innerWidth = document.body.clientWidth;
		var innerHeight = document.body.clientHeight;
	}
	
//alert (innerWidth + '\n' + innerHeight);
	if (innerWidth < 660 || innerHeight < 360) warnSize = true;
	
	//both warnings?
	if (warnIE && warnSize) var warnBoth = true;
	
	//check cookies to see which warnings they've seen already
	
	if (document.cookie.indexOf('gfIE') > -1) {
		warnIE = false;
		warnBoth = false;
	}
	if (document.cookie.indexOf('gfSize') > -1) {
		warnSize = false;
		warnBoth = false;
	}
	
	//set the URL and cookie
	if (warnBoth) {
		theURL = '/database/browserWarning_both.htm';
		theCookie = 'gfSize_gfIE';
	} else if (warnSize) {
		theURL = '/database/browserWarning_size_only.htm';
		theCookie = 'gfSize';
	} else if (warnIE) {
		theURL = '/database/browserWarning_ie_only.htm';
		theCookie = 'gfIE';
	}
	
	//open the window and set the cookie
	
	//!!!!!!! added 4-24: Netscape 4 users are now being forced to use a non-resizable window, so don't display any warning for them
	if (!NN) {
		if (theURL != null) {
			document.cookie = 'browserWarn=' + theCookie;
			var popupWnd = open(theURL, 'gf_browserWarning', 'directories=no,resizeable=no,height=220,width=200,top=20,left=20,location=no,status=no,toolbar=no,scrollbars=yes');
			popupWnd.focus();
		}
	}
}