// JavaScript Document

function subWin(url,winName,features) {				//関数の定義
	var newWin = window.open(url,winName,features);		//newWinという変数に命令を代入
	newWin.focus();										//ウィンドウを手前に
}

function winClose() {
		window.close();
}

/*
function winClose() {
	var agent = navigator.userAgent.toUpperCase();
	if( agent.indexOf("SAFARI") >= 0 ){
		window.opener = window;
		var win = window.open( location.href, "_self" );
		win.close();
	} else {
		window.close();
	}
}
*/