/************************************************
  
    Site Name: 
	Description: common script
	Version: 
	Author: 
	Last Modified :

************************************************/

/****************************************************************
* 機　能： オブジェクトの表示非表示を制御する 2
*        （表示/非表示を指定する）
* 引　数： ch 表示/非表示を切り替えるオブジェクト名
*          flg 表示非表示フラグ（0:非表示、1:表示）
****************************************************************/

function ChDsp(flg,ch,another){
     var obj=document.all && document.all(ch) || document.getElementById && document.getElementById(ch);
	 var obj2=document.all && document.all(another) || document.getElementById && document.getElementById(another);
     if(obj && obj.style){
         if(flg){
             obj.style.display = "block";
             obj2.style.display = "none";
        } else {
             obj.style.display = "none";
         }
     }
 }


function buttonClick(act,menu,manage,manageparam,dlog,msg,tar){
	if (dlog ==1) {
		alert(msg);
	}
	if (dlog ==2) {
		anser=confirm(msg);
		if (anser == false) { return (false); }
	}

	if (tar == "subwindow") { showWindow(); }

	document.FO.action = act;
	if (tar == "") { document.FO.target = ""; }
	if (tar != "") { document.FO.target = tar; }
	document.FO.menu.value = menu;
	document.FO.val.value = manage;
	document.FO.val2.value = manageparam;
	document.FO.submit();
	return;

}
