/*
 *　別ウィンドウに指定したサイズで開く
 *　2008/02/20 HCCSOFT OKAZAKI
 */

function _OpenQaWin(path) {

    // 画面サイズ
    var w = 750;
    var h = 650;
    
    if (path == 'center'){
    	h = 610;
    }else if (path == 'hiroba'){
    	h = 650;
    }else if (path == 'rainbow'){
    	h = 650;
    }else if (path == 'youji'){
    	h = 640;
    }else if (path == 'curriculum'){
    	h = 710;
    }else if (path == 'inavi'){
    	h = 630;
    }else if (path == 'furusato'){
    	h = 720;
    }
    
    // 画面サイズセット用変数
    var ScreenWidth, ScreenHeight;
    var WindowX, WindowY;

    // 画面サイズの取得
    ScreenWidth = window.screen.width;
    ScreenHeight = window.screen.height;

    // 親画面の中央に新規ウィンドウを開く
    WindowX = (ScreenWidth - w) / 2;
    WindowY = (ScreenHeight - h) / 2;

    if (path != '')
    {
        eval(path + '_window = window.open("https://www.tochigi-edu.ed.jp/center/qa/'+path+'/mailform.php", "path", "top='+WindowY+', left='+WindowX+', width='+w+', height='+h+', scrollbars=yes, status=yes");');
    }
}

