var topicWindow = null;
var topicWindow2 = null;


function openwin(topicURL, topicWinParams) 
{
	if (topicWindow != null)
	{
		if(!topicWindow.closed)
			topicWindow.close();		
	}
	topicWindow = window.open(topicURL,"",topicWinParams);
	topicWindow.focus();
}

function closewin()
{
	if (topicWindow != null)
	{
		if(!topicWindow.closed)
			topicWindow.close();		
	}
}

function openwin2(topicURL, topicWinParams) 
{
	if (topicWindow2 != null)
	{
		if(!topicWindow2.closed)
			topicWindow2.close();		
	}
	topicWindow2 = window.open(topicURL,"",topicWinParams);
	topicWindow2.focus();
}

