
	//--- ブラウザを閉じる [Finish.aspx, Saled.aspx]---------------------------
	function browser_close()
	{
		window.close();
	}
	
	//--- PostBack中の再PostBackを無効にする ----------------------------------
	function post_check()
	{
		if (window.document.readyState != null && window.document.readyState != 'complete')
		{
			alert("処理中・・・");
			return false;
		} else {
			return true;
		}
	}

	//--- JAVAScriptが有効かのチェック ----------------------------------
	function java_check()
	{
		if (document.Check.all("DIVCHK"))
		{
			document.Check.all("DIVCHK").innerHTML = "";
		}
	}

	//--- CheckBox選択によりButtonの有効・無効を制御 [Disp.aspx] ----------
	function checkChange()
	{
		var i;
		
		for(i = 0; i < document.Disp.elements.length; i++)
		{
			if (document.Disp.elements[i].type == "checkbox")
			{
				if (document.Disp.elements[i].checked == true)
				{
					break;
				}
			}
		}

		if (i < document.Disp.elements.length)
		{
			document.Disp.BuyButton.disabled = false;
		} else {
			document.Disp.BuyButton.disabled = true;
		}
	}

	//--- RadioButton選択によりButtonの有効・無効を制御 [Check.aspx] ----------	---<v.1.1.4 決済方法ボタン追加>---
	function radioChange()
	{
		if (document.Check.radio1)
		{
			if (document.Check.radio1[0].checked == true)
			{
				document.Check.BuyButton.disabled = false;
				
				if (document.Check.all("BuyButtonW"))
				{
					document.Check.BuyButtonW.disabled = false;
				}
				if (document.Check.all("BuyButtonB"))
				{
					document.Check.BuyButtonB.disabled = false;
				}
				
			} else {
				document.Check.BuyButton.disabled = true;
				
				if (document.Check.all("BuyButtonW"))
				{
					document.Check.BuyButtonW.disabled = true;
				}
				if (document.Check.all("BuyButtonB"))
				{
					document.Check.BuyButtonB.disabled = true;
				}
			}
		}
	}

	//--- 隠し値を設定して、GMOページへ遷移 [CheckPay.aspx] ----------
	function GMO()
	{
		window.Fhtml.ShopId.value = document.CheckPay.AShopId.value;
		window.Fhtml.ShopPassString.value = document.CheckPay.AShopPassString.value;
		window.Fhtml.TenantNo.value = document.CheckPay.ATenantNo.value;
		window.Fhtml.OrderId.value = document.CheckPay.AOrderId.value;
		window.Fhtml.JobCd.value = document.CheckPay.AJobCd.value;
		window.Fhtml.Amount.value = document.CheckPay.AAmount.value;
		window.Fhtml.Tax.value = document.CheckPay.ATax.value;
		window.Fhtml.BuyingPassString.value = document.CheckPay.ABuyingPassString.value;
		window.Fhtml.UserInfo.value = document.CheckPay.AUserInfo.value;
		window.Fhtml.RetURL.value = document.CheckPay.ARetURL.value;
		window.Fhtml.RetParamFlag.value = document.CheckPay.ARetParamFlag.value;
		window.Fhtml.ClientField1.value = document.CheckPay.AClientField1.value;
		window.Fhtml.ClientField2.value = document.CheckPay.AClientField2.value;
		window.Fhtml.ClientField3.value = document.CheckPay.AClientField3.value;
		window.Fhtml.ClientDispFlag.value = document.CheckPay.AClientDispFlag.value;
		window.Fhtml.DateTime.value = document.CheckPay.ADateTime.value;

		//-- 以下、TEST用 --
		window.Fhtml.AccessId.value = document.CheckPay.AAccessId.value;
		window.Fhtml.AccessPass.value = document.CheckPay.AAccessPass.value;
		window.Fhtml.TranId.value = document.CheckPay.ATranId.value;
		window.Fhtml.TranDate.value = document.CheckPay.ATranDate.value;
		window.Fhtml.Method.value = document.CheckPay.AMethod.value;
		window.Fhtml.PayTimes.value = document.CheckPay.APayTimes.value;
		window.Fhtml.ErrType.value = document.CheckPay.AErrType.value;
		window.Fhtml.ErrCode.value = document.CheckPay.AErrCode.value;
		window.Fhtml.ErrInfo.value = document.CheckPay.AErrInfo.value;
		window.Fhtml.Forwarded.value = document.CheckPay.AForwarded.value;
		window.Fhtml.Approve.value = document.CheckPay.AApprove.value;
		window.Fhtml.CheckString.value = document.CheckPay.ACheckString.value;
		//-- ここまで、TEST用

		window.Fhtml.action = document.CheckPay.AAction.value;		//..遷移先を動的に設定	---<v.1.1.4>---
		window.Fhtml.submit();
	}
	//--- 隠し値を設定して、GMOページへ遷移 [CheckPayT.aspx] ----------				---<v.1.1.4 使用中止>---
	function GMOT()
	{
		window.Fhtml.ShopId.value = document.CheckPayT.AShopId.value;
		window.Fhtml.ShopPassString.value = document.CheckPayT.AShopPassString.value;
		window.Fhtml.TenantNo.value = document.CheckPayT.ATenantNo.value;
		window.Fhtml.OrderId.value = document.CheckPayT.AOrderId.value;
		window.Fhtml.JobCd.value = document.CheckPayT.AJobCd.value;
		window.Fhtml.Amount.value = document.CheckPayT.AAmount.value;
		window.Fhtml.Tax.value = document.CheckPayT.ATax.value;
		window.Fhtml.BuyingPassString.value = document.CheckPayT.ABuyingPassString.value;
		window.Fhtml.UserInfo.value = document.CheckPayT.AUserInfo.value;
		window.Fhtml.RetURL.value = document.CheckPayT.ARetURL.value;
		window.Fhtml.RetParamFlag.value = document.CheckPayT.ARetParamFlag.value;
		window.Fhtml.ClientField1.value = document.CheckPayT.AClientField1.value;
		window.Fhtml.ClientField2.value = document.CheckPayT.AClientField2.value;
		window.Fhtml.ClientField3.value = document.CheckPayT.AClientField3.value;
		window.Fhtml.ClientDispFlag.value = document.CheckPayT.AClientDispFlag.value;
		window.Fhtml.DateTime.value = document.CheckPayT.ADateTime.value;

		window.Fhtml.submit();
	}
	//--- 隠し値を設定して、GMOページへ遷移 [CheckPayD.aspx] ----------				---<v.1.1.4 使用中止>---
	function GMOD()
	{
		window.Fhtml.ShopId.value = document.CheckPayD.AShopId.value;
		window.Fhtml.ShopPassString.value = document.CheckPayD.AShopPassString.value;
		window.Fhtml.TenantNo.value = document.CheckPayD.ATenantNo.value;
		window.Fhtml.OrderId.value = document.CheckPayD.AOrderId.value;
		window.Fhtml.JobCd.value = document.CheckPayD.AJobCd.value;
		window.Fhtml.Amount.value = document.CheckPayD.AAmount.value;
		window.Fhtml.Tax.value = document.CheckPayD.ATax.value;
		window.Fhtml.BuyingPassString.value = document.CheckPayD.ABuyingPassString.value;
		window.Fhtml.UserInfo.value = document.CheckPayD.AUserInfo.value;
		window.Fhtml.RetURL.value = document.CheckPayD.ARetURL.value;
		window.Fhtml.RetParamFlag.value = document.CheckPayD.ARetParamFlag.value;
		window.Fhtml.ClientField1.value = document.CheckPayD.AClientField1.value;
		window.Fhtml.ClientField2.value = document.CheckPayD.AClientField2.value;
		window.Fhtml.ClientField3.value = document.CheckPayD.AClientField3.value;
		window.Fhtml.ClientDispFlag.value = document.CheckPayD.AClientDispFlag.value;
		window.Fhtml.DateTime.value = document.CheckPayD.ADateTime.value;

		//-- 以下、TEST用 --
		window.Fhtml.AccessId.value = document.CheckPayD.AAccessId.value;
		window.Fhtml.AccessPass.value = document.CheckPayD.AAccessPass.value;
		window.Fhtml.TranId.value = document.CheckPayD.ATranId.value;
		window.Fhtml.TranDate.value = document.CheckPayD.ATranDate.value;
		window.Fhtml.Method.value = document.CheckPayD.AMethod.value;
		window.Fhtml.PayTimes.value = document.CheckPayD.APayTimes.value;
		window.Fhtml.ErrType.value = document.CheckPayD.AErrType.value;
		window.Fhtml.ErrCode.value = document.CheckPayD.AErrCode.value;
		window.Fhtml.ErrInfo.value = document.CheckPayD.AErrInfo.value;
		window.Fhtml.Forwarded.value = document.CheckPayD.AForwarded.value;
		window.Fhtml.Approve.value = document.CheckPayD.AApprove.value;
		window.Fhtml.CheckString.value = document.CheckPayD.ACheckString.value;

		window.Fhtml.submit();
	}


