var WinProcess = null;
var count = 0;

function openWin ( htmlFile , fileHeight, fileWidth )
{
		if ( WinProcess != null ) {
			if ( ! WinProcess.closed ) {
				WinProcess.window.close();
			}
		}
		count++;
	

	WinProcess = window.open( htmlFile , count, "height="+fileHeight+",width="+fileWidth+",scrollbars,toolbar");
}