/////////////////////////////////////////////////////////
//別ウインドウ表示（位置，外観指定）
function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
/////////////////////////////////////////////////////////
//別ウインドウ表示（画面中央）
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=no,scrollbars=no,resizable=no,width=" + wWidth + ",height=" + wHeight + ",left=" + wl + ",top=" + wt;
	//別ウインドウを表示
	sWin = window.open(wUrl,wName,wOption);
	//ウインドウを手前に表示
	sWin.focus();
	//ウインドウ画面中央に再移動
	sWin.moveTo(wl,wt)
}
/////////////////////////////////////////////////////////
//別ウインドウ表示（全画面表示）
function openWindow_all(wUrl,wName){
  sw=screen.availWidth;
  sh=screen.availHeight;
  if(sw >= 1024 && sh >= 768){
    window.open(wUrl,wName,'width='+sw+',height='+sh+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=no');
  } else {
    window.open(wUrl,wName,'width='+sw+',height='+sh+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
  }
}
/////////////////////////////////////////////////////////
//別ウインドウ表示（FullScreen表示　windowsのみ）
function MachakFull(Ie,other){
//Copyright c 1999 m.milicevic machakjoe@netscape.net jjooee@tip.nl
//fixed on 2003.12.19
x=screen.availWidth;
y=screen.availHeight;
target = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
if (target >= 4) {
	if (!((navigator.appVersion.indexOf("Win")!=-1) && navigator.appName=="Microsoft Internet Explorer")) {
    	var MachakFull=window.open(other,"MachakFull",'scrollbars=yes','width='+x+',height='+y+',top=0,left=0');
		MachakFull.moveTo(0,0);
		MachakFull.resizeTo(x,y);
	} else {
		window.open(Ie,"MachakFull","fullscreen=yes");
	}
} else {
	window.open(other,"sub",'scrollbars=yes');
}
}
////<a href="detect_full.html" onClick="MachakFull(this.href,this.href); return false;">