var q2_1 = document.getElementById("q2_1");
var q2_2 = document.getElementById("q2_2");
var q2_3a = document.getElementById("q2_3a");
var q2_3b = document.getElementById("q2_3b");
var answer2_1 =document.getElementById("ans2_1");
var answer2_2 =document.getElementById("ans2_2");
var answer2_3 =document.getElementById("ans2_3");
var total2 =document.getElementById("total_2");
var cul2 = function (){
if (q2_1.checked) {
var n2_1 = 10;
answer2_1.innerHTML = "〇";
}else {
var n2_1 = 0;
answer2_1.innerHTML = "×";
}
if (q2_2.checked) {
var n2_2 = 10;
answer2_2.innerHTML = "〇";
}else {
var n2_2 = 0;
answer2_2.innerHTML = "×";
}
if (q2_3a.checked && q2_3b.checked) {
var n2_3 = 10;
answer2_3.innerHTML = "〇";
}else {
var n2_3 = 0;
answer2_3.innerHTML = "×";
}
var totalscore2 = n2_1 + n2_2 + n2_3;
total2.innerHTML = totalscore2 +"点";
}