// Copyright 2003 Disinnovate, Inc.

function safeOpenCenter(path, width, height)
{
	x = (screen.width / 2) - (width / 2);
	y = (screen.height / 2) - (height / 2);

	winID = "ICpopupWin";
	if (!eval("this." +winID) || eval("this."+winID+".closed") || eval("this."+winID+".location.pathname != path")) {
		winargs = "status=no,scrollbars=yes,resizable=yes,menubar=no,width=" + width + ",height=" + height + ",left=" + x + ",top=" + y;
		eval (winID+" = window.open(path,winID,winargs)");
		eval("this."+winID+".window.focus()");
	} else {
		eval("this."+winID+".left="+x);
		eval("this."+winID+".window.focus()");
	}
}