// ウィンドウクローズ
function pageclose() {
	window.close();
}

// メンテナンス用 ウィンドウオープン (ex. javascript:openmaintewindow()
function openmaintewindow() {
	theURL = 'http://www.lhweb.jp/maintenance/mainte.html'
	winName = 'mainte'
	openw = 650
	openh = 380
	x = (screen.width - openw)/2;
	y = (screen.height - openh)/2;
	window.open(theURL,winName,"screenX="+x+",ScreenY="+y+",left="+x+",top"+y+",width="+openw+",height="+openh+",toolbar=no,scrollbars=yes,resizable=yes");
}

// 中央に新規ウィンドウオープン(高さはユーザーに任せる) -こちらを使用すると省略出来ます。- (ex. javascript:openCenterWindowUser('openwindow/ex.html','ex','550')
function openCenterWindowUser(theURL,winName,openw) { //v2.0
	userh = screen.height - 150; 
	x = (screen.width - openw)/2;
	y = (screen.height - userh)/2;
	window.open(theURL,winName,"screenX="+x+",ScreenY="+y+",left="+x+",top"+y+",width="+openw+",height="+userh+",toolbar=no,scrollbars=yes,resizable=yes");
}

// 中央に新規ウィンドウオープン(高さはユーザーに任せる) -こちらを使用すると省略出来ます。- (ex. javascript:openCenterWindowUser('openwindow/ex.html','ex','550')
function openCenterWindow(theURL,winName,openw,openh) { //v2.0
	x = (screen.width - openw)/2;
	y = (screen.height - openh)/2;
	window.open(theURL,winName,"screenX="+x+",ScreenY="+y+",left="+x+",top"+y+",width="+openw+",height="+openh+",toolbar=no,scrollbars=yes,resizable=yes");
}