
//--------------------------------------------------------------------
// 更新確認関数
// confirmUpdate
// 
// [機能]
// HIDDEN項目"proc"に処理区分をセットしてサブミットする。
// 削除時には確認メッセージを表示する。
// 
// [引数]
// frm              : フォームオブジェクト
// process          : 処理区分
//--------------------------------------------------------------------
function confirmUpdate(frm, process) {
  var forward = true;
  if (process == "5") {
    if (confirm("本当に削除してもよろしいですか？") == false) {
      forward = false;
    }
  }
  
  if (forward == true) {
    frm.proc.value = process;
    frm.submit();
  }
}


//--------------------------------------------------------------------
// ポストバック関数
// postBack
// 
// [機能]
// 自分自身にPOSTする。
// 
// [引数]
// proc_kbn         : 処理区分
//--------------------------------------------------------------------
function postBack(proc_kbn) {
  var frm = document.forms[0];
  
  frm.proc.value = proc_kbn;
  frm.submit();
}


//--------------------------------------------------------------------
// ポストセレクト関数
// postSelect
// 
// [機能]
// 指定モジュール、アクションにPOSTする。
// 
// [引数]
// proc_kbn         : 処理区分
// action_name      : アクション名
//--------------------------------------------------------------------
function postSelect(proc_kbn, module_name, action_name) {
  var frm = document.forms[0];
  
  frm.proc.value = proc_kbn;
  frm.module.value = module_name;
  frm.action.value = action_name;
  frm.submit();
}




function wopen(url, width, height){
  var htmlname = url;
  var windowwidth = width;
  var windowheight = height;
  
  window.open(htmlname, "", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=" + windowwidth + ",height=" + windowheight);
  
  return false;
}


function picopen(picname){
  var picwidth=600;
  var picheight=450;
  var windowwidth=670;
  var windowheight=495;
  
  wo = window.open("","","toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=no,resizable=yes,width="+windowwidth+",height="+windowheight);
  wo.document.open();
  wo.document.write('<html><head>\n');
  wo.document.write('<script language="JavaScript1.2">window.moveTo(50,10)</script></head>\n');
  wo.document.write('<body><center>\n');
  wo.document.write('<table><tr><td>\n');
  wo.document.write('<img border="0" width='+picwidth+' height='+picheight);
  wo.document.write(' src="');
  wo.document.write(picname);
  wo.document.write('">\n</td></tr>');
  wo.document.write('<tr><td align="right">\n<form><input type="button" value=" 閉じる " onclick="window.close()"></form>\n</td></tr></table>\n');
  wo.document.write('</center></body></html>');
  wo.document.close();
}

