var ActName=[1.464,3.9,3.7,3.7,2.28,1.2,1.466,2.0,1.90,2.80,0.8,2.166,14,7.1,3.1,4.25,1.83,1.10,1.766,3,1.38,6,9.3,14,9.3,12,5.0,4.38,5.8,12.466,13.166,4.2,5,5,6.4,7.7,4.083,1.70,3.95,10,3.12,5.88,17,4,4.6,5.88,9,9,4.7,20,10,15,25,7.5];
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};function isNum(obj){str=obj.value.trim();if(/^(\-?)(\d+)$/.test(str)){if(parseInt(str,10)<0){alert("请输入一个非负数！");obj.focus();obj.value="0";return false}else return true}else{alert("您输入的不是数字！");obj.focus();obj.value="0";return false}}function Count(weight){if(/^(\-?)(\d+)$/.test(weight)){if(parseInt(weight,10)<0){alert("请输入一个非负数！");return}}else{alert("请正确输入您的体重！");return}var Count=0;var ob=document.form1;for(var i=0;i<ActName.length;i++)Count+=eval("ob.act"+i).value*ActName[i];Count=weight*Count/60;var tmpC=Count+"";if(isNaN(Count))tmpC="";if(tmpC.indexOf(".")!=-1)tmpC=tmpC.substr(0,tmpC.indexOf(".")+4);ob.Result.value=tmpC}function Clear(){var ob=document.form1;for(var i=0;i<ActName.length;i++)eval("ob.act"+i).value="0";ob.Result.value="0";ob.weight.value="60"}function doPrint(){var pwin=window.open("","print");var printStr=window.document.getElementById("div_Print").innerHTML;pwin.document.body.innerHTML=printStr;pwin.print();pwin.close()}