// アクション(m)をセットして送信
function setActSubmit(f,m) {
    document.forms[f].m.value = m;
    document.forms[f].submit();
}
// form actionをセットして送信
function setFormActionSubmit(f,act) {
    document.forms[f].action = act;
    document.forms[f].target = '_self';
    if(document.forms[f].m) {
        document.forms[f].m.value = '';
    }
    document.forms[f].submit();
}
// 確認ウィンドウを出してから送信
function confirmSubmit(f,msg) {
    if(window.confirm(msg)) {
        document.forms[f].submit();
    }
}
// フォーム送信
function formSubmit(f) {
    document.forms[f].submit();
}
// 別Window表示
function openWin(url) {
    
    var screenWidth = window.screen.width;
    var screenHeight = window.screen.height;
    
    var openWinWidth = screenWidth / 3 * 2;
    var openWinHeight = screenHeight / 5 * 4;
    
    openWinX = parseInt(screenWidth - openWinWidth) / 2;
    openWinY = parseInt(screenHeight - openWinHeight) / 2;

    window.open(url,'openWin','width='+openWinWidth+',height='+openWinHeight+',scrollbars=yes,resizable=yes,status=no,toolbar=no,left='+openWinX+',top='+openWinY);
}
// ページトップ
function goTop() {
    window.scrollTo(0,0);
}


