以下是需要转换的内容:
是否
function calculateTotal() {
//Here we get the total points by calling our functions
var totPoints = 0+get_r1()+get_r2()+get_r3();
//display the result
var divobj = document.getElementById('totalPoints');
divobj.style.display='block';
divobj.innerHTML = "Total: "+totPoints;
}