<!--

// Global variables
var popWindows = new Array();	// collection of window objects
var winCount = 0;	// increments the number of window objects

/*	This function opens an individual window.
		link - corresponds to the document URL
		winName - the window name used to reference the individual window
		features - represents the desired window components
*/
function RI_remoteOpener(link, winName, features)
{
		popWindows[winCount] = window.open(link, winName, features);
		popWindows[winCount].focus();
		winCount++;
}// end remoteOpener()

/*
	This function closes all open windows if no argument is passed otherwise
	the argument passed identifies the name of the individual window to close.
*/
function RI_remoteCloser(winName)
{
	if (winName == null)
	{
		for (i = 0; i < winCount; i++)
		{
			if (popWindows[i] && !popWindows[i].closed)
			{
				popWindows[i].close();
			}
		}
	}
	else
	{
		for (i = 0; i < winCount; i++)
		{
			if (!popWindows[i].closed && popWindows[i].name == winName)
			{
				popWindows[i].close();
			}
		}
	}
}// end remoteCloser()

//-->