function canDoRollOvers() {
	var result	= false;

	// only NS and IE can return true, as Opera isn't sniffed.
	if (browser == 'NETS') {
		if (version < 3) {
			result = false;
		} else if (version < 4) {
			result = true;
		} else if (version < 5) {
			result = true;
		}
	}
	if (agent == 'IE') {
		if (majVer > 3) {
			result		= true;
		} else {
			result		= false;
		}
	} else if (agent == 'NS') {
		if (majVer > 2) {
			result		= true;
		} else {
			result		= false;
		}
	}
	
	return result;
}

function imgOn(img) {
	if (canDoRollOvers()) {
		document.images[img].src = eval(img + "_on.src");
	}
}

function imgOff(img) {
	if (canDoRollOvers()) {
		document.images[img].src = eval(img + "_off.src");
	}
}

function openWindow(theURL,theName,theWidth,theHeight,theParmStr) {
	// opens new window, returns handle
	var theStr			= theParmStr;
	if ((width != "") && (height != "")) {
		theStr			= 'width=' + theWidth + ',height=' + theHeight + ',' + theStr;
	}
	return window.open(theURL, theName, theStr);
}
