
/////////////////////////////////////////////////////////
//別ウインドウ表示（画面中央）
var sWin;
function openWindow_center(wUrl,wName,wWidth,wHeight){
	//画面サイズを取得
	sw = screen.availWidth;
	sh = screen.availHeight;
	//中央の位置を計算
	wl = (sw-wWidth)/2;
	wt = (sh-wHeight)/2;
	//ウインドウの外観を設定
	wOption = "toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,width=" + wWidth + ",height=" + wHeight + ",left=" + wl + ",top=" + wt;
	//別ウインドウを表示
	sWin = window.open(wUrl,wName,wOption);
	//ウインドウを手前に表示
	sWin.focus();
	//ウインドウ画面中央に再移動
	sWin.moveTo(wl,wt)
}
