function openBrWindow(theURL, winName, features) {
	window.open(theURL, winName, features);
}

var eiseiWin = null;
function openEiseiPv(url) {
	var width = 640;
	var height = 550;
	eiseiWin = openWin(eiseiWin, url, "_blank", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no", width, height);
}

function openWin(win, url, winname, param, width, height) {
	if (win) {
		win.close();
	}

	//ウインドウの表示サイズを取得する
	var sWidth = screen.width;
	var sHeight = screen.height;

	//画面の中央に表示するため、XY座標を算出する
	var left = (sWidth - parseInt(width, 10)) / 2;
	var top = (sHeight - parseInt(height, 10)) / 2;

	win = window.open(url, winname, param + ",screenX=" + left + ",screenY=" + top + ",left=" + left + ",top=" + top + ",width=" + width + ",height=" + height);
	win.focus();

	return win;
}
