function DoCal6MWD() {
let txtAge;
let txtHeight;
let mc1=141.327, mc2=1.039, mc3=3.038;
let fc1=233.994, fc2=1.815, fc3=2.632;
let rObj = document.getElementById("calR6MWT");
let mResult, fResult;
txtAge = document.getElementById("txtAge").value;
txtHeight = document.getElementById("txtHeight").value;
mResult = mc1 - txtAge*mc2 + txtHeight*mc3;
fResult = fc1 - txtAge*fc2 + txtHeight*fc3;
rObj.innerHTML = "每6分鐘應走距離
男生:" + mResult.toFixed() + " 公尺
" + "女生:" + fResult.toFixed() + " 公尺
";
}