// Javascript by Specific Impulse, Inc.

// This is basic browser detection for use in menus and other effects. If the site requires it, legacy browsers are refused access and redirected.


var isNav=false;
var isIE=false;
var isCompatible=false; // compatible with W3C standards
var supported = (((navigator.appName == "Netscape") &&
(parseInt(navigator.appVersion) >= 4 )) || ((navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)>=4)));

if (!(supported)) {
        if (navigator.appName == "Netscape"){
                document.location = "legacy_home.html";}
        if (navigator.appName == "Microsoft Internet Explorer"){
                document.location.href = "legacy_home.html";}
}

if (supported) {
	if (parseInt(navigator.appVersion) >= 4) {
		if (navigator.appName == "Netscape") {
			isNav = true;
		} else {
			isIE = true;
		}
	}
	if (parseInt(navigator.appVersion) >= 5) {
		isCompatible=true;
		// Believe it or not, the appVersion of IE 5 is "4", not "5", so IE 5 runs the V4 code, even though it would work with the V5.
	}
}

// declare globals
var isNav, isIE;



function hiLite(imgName,imgArrayName) {
    	document.images[imgName].src = eval(imgArrayName + ".src");
}

// CheckRequiredFields
// 	Checks that the user entered something in the given required fields.
// 	The first argument is the form and the remaining arguments (as many as
// 	needed) are the names of the required fields.
// 	Use as on submit routine for the form. Example:
//		<form action="scripts/client_input.cgi" method="POST"
//			onSubmit="return CheckRequiredFields(this, "firstname", "lastname", "Title");">
// Author: Joan Walton, December 1999

function CheckRequiredFields(theForm) {
	for (var i=1; i < CheckRequiredFields.arguments.length; i++) {
		if (eval("theForm." + CheckRequiredFields.arguments[i] +
				".value.length") == 0) {
			alert("Please enter your " + CheckRequiredFields.arguments[i]);
			return false;
		}
	}
	return true;
}

