//------------------------------------------------------------------
// 機　能：フレームの読込み
// 引　数：IFR	iframeオブジェクト
// 戻り値：無し
//------------------------------------------------------------------
function LoadFrame(IFR) {
	IFR.style.height = (IFR.contentWindow)?
		IFR.contentWindow.document.body.scrollHeight:
		document.frames[frid].document.body.scrollHeight;
	var Swidth= (IFR.contentWindow)?
		IFR.contentWindow.document.body.scrollWidth:
		document.frames[frid].document.body.scrollWidth;
	var Cwidth = (IFR.contentWindow)?
		IFR.contentWindow.document.body.offsetWidth:
		document.frames[frid].document.body.offsetWidth;
	if(Swidth > (Cwidth+16)) {
		IFR.style.width = Swidth;
	}
}

//------------------------------------------------------------------
// 機　能：フォームのサブミット
// 引　数：form	フォーム
// 引　数：action サブミット先アクション
// 引　数：target 表示ターゲット
// 戻り値：無し
//--
function doSubmit(form, action, target){
	var submitForm = null;
	if (typeof(form) == 'string'){
		submitForm = document.forms[form];
	} else {
		submitForm = form;
	}
  	if (action != null ){
	  	submitForm.action=action;
	}
	if (target != null){
		submitForm.target=target;
	}
	submitForm.submit();
}


