<!-- // Activate cloak for older browsers
var winNew;
var fIsIe = (document.all != null);

function openSubWin(szUrl, szName, nWidth, nHeight, nTop, nLeft, fMenu)
{
var szMenu;

	if (fMenu)
		szMenu = "yes";
	else
		szMenu = "no";

	if (fIsIe)
		{
		if ((szUrl.indexOf('.asp') > -1) || (szUrl.indexOf('.htm') > -1) || (szUrl.indexOf('.html') > -1) || (szUrl.charAt(szUrl.length - 1) == "/") )
			winNew = window.open(szUrl, szName,
			                     "channelmode=no,directories=no,fullscreen=no,location=no," +
			                     "menubar=" + szMenu + ",resizable=yes,scrollbars=yes,status=yes,toolbar=no," +
			                     "top=" + nTop + ",left=" + nLeft +
			                     ",width=" + nWidth + ",height=" + nHeight, false);  // IE
		else
			winNew = window.open(szUrl, szName,
			                     "channelmode=no,directories=no,fullscreen=no,location=no," +
			                     "menubar=" + szMenu + ",resizable=yes,scrollbars=yes,status=yes,toolbar=no," +
			                     "top=" + nTop + ",left=" + nLeft +
			                     ",width=" + nWidth + ",height=" + nHeight, false);  // IE
		winNew.focus();
		}
	else
		{
		if ((szUrl.indexOf('.asp') > -1) || (szUrl.indexOf('.htm') > -1) || (szUrl.indexOf('.html') > -1) || 
		    (szUrl.charAt(szUrl.length - 1) == "/") || (szUrl.indexOf('.dll') > -1))
			{
			winNew = window.open(szUrl, szName,
			                     "dependent=yes,directories=no,location=no,menubar=" + szMenu + "," +
			                     "resizable=yes,scrollbars=yes,status=yes,toolbar=no," +
			                     "screenY=" + nTop + ",screenX=" + nLeft +
			                     ",width=" + nWidth + ",height=" + nHeight);  // Netscape
			winNew.focus();
			}
		else if (szUrl.indexOf('.nsf') > -1)
			{
			winNew = window.open(szUrl, szName,
			                     "dependent=yes,directories=no,location=no,menubar=" + szMenu + "," +
			                     "resizable=yes,scrollbars=yes,status=yes,toolbar=no," +
			                     "screenY=" + nTop + ",screenX=" + nLeft +
			                     ",width=" + nWidth + ",height=" + nHeight);  // Netscape
			winNew.focus();
			}
		else
			window.location = szUrl;
		}
}

function openWin(szUrl, szName, nWidth, nHeight, nTop, nLeft, fMenu)
{
	// Set default top and left
	if (nTop == null)
		nTop = 25;

	if (nLeft == null)
		nLeft = 25;

	// Close any existing window
	if ((winNew != null) && (! winNew.closed))
		{
		winNew.close();

		// For some reason IE 5 has problems with winNew.close(), get 'winNew not object'.
		// Putting a "wait" in seems to work
		if (fIsIe)
			setTimeout("openSubWin('" + szUrl + "', '" + szName + "', " +
			                       nWidth + ", " + nHeight + ", " + nTop + ", " + nLeft + ")", 500);
		else
			openSubWin(szUrl, szName, nWidth, nHeight, nTop, nLeft, fMenu);
		}
	else
		openSubWin(szUrl, szName, nWidth, nHeight, nTop, nLeft, fMenu);
}

// Deactivate cloak -->

