Code of "ifscore.js":

function score_it()
{
var p=0, ans1, ans2, ans3, ans4

if (document.MC1.ITEM1[0].checked) {p=(p+1); ans1="correct"}
else {ans1="incorrect"; for (var x=0; x<=3; x++) {document.MC1.ITEM1[x].checked=false}};
if (document.MC1.ITEM2[3].checked) {p=(p+1); ans2="correct"}
else {ans2="incorrect"; for (var x=0; x<=3; x++) {document.MC1.ITEM2[x].checked=false}};
if (document.MC1.ITEM3[1].checked) {p=(p+1); ans3="correct"}
else {ans3="incorrect"; for (var x=0; x<=3; x++) {document.MC1.ITEM3[x].checked=false}};
if (document.MC1.ITEM4[1].checked) {p=(p+1); ans4="correct"}
else {ans4="incorrect"; for (var x=0; x<=3; x++) {document.MC1.ITEM4[x].checked=false}};
{alert("Your score: "+p+". Item 1 was "+ans1+", item 2 was "+ans2+", item 3 was "+ans3+", item 4 was "+ans4+".")}
}