<!--
var emailWindowRef
var printWindowRef
var genericWindowRef
var consoleWindowRef

var isIE4 = (navigator.appVersion.indexOf("MSIE 4.0") != -1)?true:false;
var isMac = (navigator.platform == "MacPPC")?true:false;
var wincount = 0;

function doPopup(url,type)
{
	var features = "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no";
	switch (type)
	{
		case 1: winName="emailWindow"; winWidth=504; winHeight=410; enableScroll="no"; enableMenu="no"; break;
		case 2: winName="printWindow"; winWidth=524; winHeight=410; enableScroll="yes"; enableMenu="yes"; break;
		case 3: winName="consoleWindow"; winWidth=540; winHeight=320; enableScroll="no"; enableMenu="no"; break;
		default: winName="genericWindow"; winWidth=340; winHeight=520; enableScroll="no"; enableMenu="no";
	}
	 
	features += ",width=" + winWidth + ",height=" + winHeight + ",scrollbars=" + enableScroll+ ",menubar=" + enableMenu;
	
	if (isMac && isIE4) {
		eval(winName + 'Ref = window.open("' + url + '","' + winName + '","' + features + '")');
	}
	else {
		if (!eval(winName + 'Ref') || eval(winName + 'Ref').closed) {
			eval(winName + 'Ref = window.open("' + url + '","' + winName + '","' + features + '")');
		}
		else {
			if (isIE4) {
				eval(winName + 'Ref').close();
				eval(winName + 'Ref = window.open("' + url + '","' + winName + wincount + '","' + features + '")');
				wincount++;
			}
			else {
				eval(winName + 'Ref').location = url;
				eval(winName + 'Ref').focus();
			}
		}
	}
}

//-->