function keisanman(){

	// 男性設定開始

	// 体重
	var manw = document.form1.manwtext.value * 13.8; // 倍数設定

	// 身長
	var manh = document.form1.manhtext.value * 5.0; // 倍数設定

	// 年齢
	var mana = document.form1.manatext.value * 6.8; // 倍数設定

	// 活動レベル
	var manl = document.form1.manltext.value; //

	// 基礎代謝を計算
	var total = 66.5 + manw + manh - mana;

	// 総消費カロリー量を計算
	var alltotal = total * manl ;

	// 中間値を計算
	var centertotal = (total + alltotal) / 2 ;

	// 設定終了
	document.form1.mankiso.value = total; // 合計を表示
	document.form1.mankiso.value = (Math.floor(total/1)*1); // 小数点を切り捨て

	document.form1.manall.value = alltotal; // 合計を表示
	document.form1.manall.value = (Math.floor(alltotal/1)*1); // 小数点を切り捨て

	document.form1.mancenter.value = centertotal; // 合計を表示
	document.form1.mancenter.value = (Math.floor(centertotal/1)*1); // 小数点を切り捨て
}
function keisanwoman(){

	// 女性設定開始

	// 体重
	var womanw = document.form2.womanwtext.value * 9.6; // 倍数設定

	// 身長
	var womanh = document.form2.womanhtext.value * 1.9; // 倍数設定

	// 年齢
	var womana = document.form2.womanatext.value * 4.7; // 倍数設定

	// 活動レベル
	var womanl = document.form2.womanltext.value; //

	// 基礎代謝を計算
	var womantotal = 665 + womanw + womanh - womana;

	// 総消費カロリー量を計算
	var allwomantotal = womantotal * womanl ;

	// 中間値を計算
	var womancentertotal = (womantotal + allwomantotal) / 2 ;

	// 設定終了

	document.form2.womankiso.value = womantotal; // 合計を表示
	document.form2.womankiso.value = (Math.floor(womantotal/1)*1); // 小数点を切り捨て

	document.form2.womanall.value = allwomantotal; // 合計を表示
	document.form2.womanall.value = (Math.floor(allwomantotal/1)*1); // 小数点を切り捨て

	document.form2.womancenter.value = womancentertotal; // 合計を表示
	document.form2.womancenter.value = (Math.floor(womancentertotal/1)*1); // 小数点を切り捨て

}
