function MM_openBrWindow(theURL,winName,features) { //v2.0
  win = window.open(theURL,winName,features);
  win.focus();
}

function openMaxWin(url) {
    // オプション設定
	var opt_vars = {
		width       :  screen.width,
		height      :  screen.width,
		toolbar     :  0,
		menubar     :  0,
		location    :  0,
		status      :  0,
		scrollbars  :  1,
		resizable   :  0,
		fullscreen  :  0
	}
    // 開いたウィンドウにフォーカス
    // 0:しない, 1:する 
    var isFocus = 1;
	
	var opt = '';
	for (key in opt_vars) {
		if (opt == '') {
			opt += key + '=' + opt_vars[key];
		}
		opt += ',' + key + '=' + opt_vars[key];
	}
    win = window.open(url,'maxwin',opt);
	if (!document.all) {
        win.moveTo(0,0);
	}
    if (isFocus) {
        win.focus();
    }
}

function openerLocation(url) {
	window.opener.location = url;
}