﻿
function calc(money21){

	if (money21.todayy.value !=""){	

	ttb01 = parseInt(money21.todayy.value,10) + 7.5;
	ttb02 = parseInt(money21.todayy.value,10) + 1.5;
	ttb03 = parseInt(money21.todayy.value,10) + 1;
	kz = 3.81;
	
	money21.hcash.value = Math.round( parseInt(money21.sendy.value,10) / ttb01);
	money21.tc0.value = Math.round( parseInt(money21.sendy.value,10) / ttb02);


	money21.tc2.value = Math.round( parseInt(money21.sendy.value,10) / ttb02);
	money21.tc2f.value = Math.round( parseInt(money21.tc2.value,10) * 0.01);

	money21.wt1.value = Math.round( parseInt(money21.sendy.value,10) / ttb02) - kz;


	money21.wt2.value = Math.round( parseInt(money21.sendy.value,10) / ttb02) - kz;


	money21.wt3.value = Math.round( parseInt(money21.sendy.value,10) / ttb03);


	money21.mo1.value = Math.round( parseInt(money21.sendy.value,10) / ttb02);


	money21.wcash.value = Math.round( parseInt(money21.sendy.value,10) / ttb01);
	}
 
}

