/**
 * browsercheck.js
 *
 * Copyright (c) 2001 WDIG Corporation.  All Rights Reserved.
 *
 * $Workfile:: browsercheck.js
 * $Author:: gregh
 * $Revision:: 1
 * $Date:: 02/26/01 12:00a
 */

var IE = 0;
var NS = 0;

/**
 * Determine browser type (IE or Navigator), set global variables.
 *
 */
function initVariables() {
	if (navigator.appName == "Netscape") {
		NS = 1
	}
	if (navigator.appName == "Microsoft Internet Explorer") {
		IE = 1
	}
}

/**
 * Determine if client is a high-end browser (at least IE4 or NS3)
 *
 * @return    int Flag identifying client is desired browser.
 */
function getAppVersion() {        
	var iRetVal = 0;
	appname= navigator.appName;        
	appversion = navigator.appVersion;        
	majorver = appversion.substring(0, 1);        

	if ((appname == "Netscape") && (majorver >= 3)) {
		iRetVal = 1;
	}
	if ((appname == "Microsoft Internet Explorer") && (majorver >= 4)) {
		iRetVal = 1;
	}

	return iRetVal;
}


initVariables();
