var win = new Array();
var counter = 0;

function openDetail()
{
	//dummy
}

function openAWindow(pageToLoad, winName, width, height, center, scrollbar)
{
	xposition=80; yposition=130;
	if ((parseInt(navigator.appVersion) >= 4) && (center))
	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}
	args = "width=" + width + "," 
	+ "height=" + height + "," 
	+ "location=0," 
	+ "menubar=0,"
	+ "resizable=1,"
	+ "scrollbars=" + scrollbar + ","
	+ "status=0," 
	+ "titlebar=0,"
	+ "toolbar=0,"
	+ "hotkeys=0,"
	+ "screenx=" + xposition + ","  //NN Only
	+ "screeny=" + yposition + ","  //NN Only
	+ "left=" + xposition + ","     //IE Only
	+ "top=" + yposition;           //IE Only
	win[counter] = window.open (pageToLoad, winName + counter, args);
	win[counter].focus();	
	counter++;
}

function closeWin()
{
	var i;
	for (i = 0; i < counter; i++)
	{
		if (win[i] != null && !win[i].closed)	
			win[i].close();
	}
}