
/*
スクロールありの設定において
	WIN_IEでスクロールの差分をとるので
		大枠のテーブルより縦横+17pxでオープンウインドウ。
	MAC_IEでレイアウトで差分をとるので
		大枠のテーブルより縦横+16pxでオープンウインドウ。
*/

//___________________________________________________________variable
var Wwidth = 467;
var Hheight = 530;
var Uurl,Winname ;
var Pproperty = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + Wwidth + ",height=" + Hheight;
var UA = navigator.userAgent;
var AN = navigator.appName;
var AP = navigator.appVersion;

var MacIe = UA.indexOf( "Mac" ) > -1 &&  UA.indexOf( "MSIE" ) > -1;
										// △ Mac-Distribute-property
var WwidthGap = 17 ;
var HheightGap = 16 ;
										// △ MacIE サイズ設定 [ 横幅-16px / 高さ-16px ]


//___________________________________________________________close-window
function CloseWin(){
	parent.window.close()
}


//___________________________________________________________open-window
function PopupWin( Uurl ){
	if( MacIe ){
		Wwidth -= WwidthGap;
		Hheight -= HheightGap;
		Pproperty = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + Wwidth + ",height=" + Hheight;
		Winname = window.open( Uurl, "CALPIS", Pproperty );
		Wwidth = 467;
		Hheight = 530;
	}
	else{
		Winname = window.open( Uurl, "CALPIS", Pproperty );
	}
	Winname.focus();
}

