//コマンドをセットして Submit を実行
//参照するコントロール名でなく、値そのものを渡すこと。
//<a href="JavaScrip:" で使用する。
//<button type="button" で使用する。
function PostBack(FormName, CommandName, CommandValue0, CommandValue1, CommandValue2) {
    var myForm = document.forms[FormName];
	if(myForm['__'+FormName+'CommandName']){
		myForm['__'+FormName+'CommandName'].value = CommandName;
	}
	if(myForm['__'+FormName+'CommandValue0']){
		myForm['__'+FormName+'CommandValue0'].value = CommandValue0;
	}
	if(myForm['__'+FormName+'CommandValue1']){
		myForm['__'+FormName+'CommandValue1'].value = CommandValue1;
	}
	if(myForm['__'+FormName+'CommandValue2']){
		myForm['__'+FormName+'CommandValue2'].value = CommandValue2;
	}
	myForm.submit();
}
//コマンドをセットするだけ
//input type="submint" で使用する。
//input type="image" で使用する。
//input type="button" で使用する。
function SetCommand(FormName, CommandName, CommandValue0, CommandValue1, CommandValue2) {
	var myForm = document.forms[FormName];
	if(myForm['__'+FormName+'CommandName']){
		myForm['__'+FormName+'CommandName'].value = CommandName;
	}
	if(myForm['__'+FormName+'CommandValue0']){
		myForm['__'+FormName+'CommandValue0'].value = CommandValue0;
	}
	if(myForm['__'+FormName+'CommandValue1']){
		myForm['__'+FormName+'CommandValue1'].value = CommandValue1;
	}
	if(myForm['__'+FormName+'CommandValue2']){
		myForm['__'+FormName+'CommandValue2'].value = CommandValue2;
	}
}

