﻿
function calc2(money22){

	if (money22.todayy.value !=""){	

	ttb01 = parseInt(money22.todayy.value,10) + 7.5;
	ttb02 = parseInt(money22.todayy.value,10) + 1.5;
	ttb03 = parseInt(money22.todayy.value,10) + 1.0;
	kz = 3.81;

	money22.yhcash.value = Math.round( parseInt(money22.sendd.value,10) * ttb01);
	money22.ytc0.value = Math.round( parseInt(money22.sendd.value,10) * ttb02);

	money22.ytc2.value = Math.round((parseInt(money22.sendd.value,10) * 1.01) * ttb02);


	money22.ywt1.value =Math.round((parseInt(money22.sendd.value,10) + kz) * ttb02) + 2500;

	money22.ywt2.value =Math.round((parseInt(money22.sendd.value,10) + kz) * ttb02) + 2500;

	money22.ywt3.value =Math.round((parseInt(money22.sendd.value,10) + kz) * ttb02) + 2500;

	money22.ywt4.value =Math.round((parseInt(money22.sendd.value,10) + kz) * ttb03) + 2000;


	if ((parseInt(money22.sendd.value,10) / ttb02) <= 100000){
	Number.mo1f = 500; 
	}else if ((parseInt(money22.sendd.value,10) / ttb02) <= 200000){
	Number.mo1f = 1000; 	
	}else if ((parseInt(money22.sendd.value,10) / ttb02) <= 500000){
	Number.mo1f = 1500; 	
	}else if ((parseInt(money22.sendd.value,10) / ttb02) <= 1000000){
	Number.mo1f = 2000; 	
	}else if ((parseInt(money22.sendy.value,10) / ttb02) > 1000000){
	alert("郵便局送金金額が１００万円を超える場合は、５０万円ごとに５００円を加算してください。");
	}

	money22.ymo1.value =Math.round(parseInt(money22.sendd.value,10) * ttb02) + 2500;


	money22.ywcash.value = Math.round(((parseInt(money22.sendd.value,10) + 1)  * ttb01) + 210);

 	}
}


