Spacefem's Tutorials: Javascript question loops

There's a part of my Javascript Points Quiz where you have to type in these repetitive bits of code to loop through the questions. As long as you named your questions "a, b, c..." you can just cut/copy/paste as much as you need from this bit.

To copy code for the Javascript Type Quiz, go here.

for (var count=0; count<4; count++)
{
if (form.a[count].checked){
var total=total+parseInt(form.a[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.b[count].checked){
var total=total+parseInt(form.b[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.c[count].checked){
var total=total+parseInt(form.c[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.d[count].checked){
var total=total+parseInt(form.d[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.e[count].checked){
var total=total+parseInt(form.e[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.f[count].checked){
var total=total+parseInt(form.f[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.g[count].checked){
var total=total+parseInt(form.g[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.h[count].checked){
var total=total+parseInt(form.h[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.i[count].checked){
var total=total+parseInt(form.i[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.j[count].checked){
var total=total+parseInt(form.j[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.k[count].checked){
var total=total+parseInt(form.k[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.l[count].checked){
var total=total+parseInt(form.l[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.m[count].checked){
var total=total+parseInt(form.m[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.n[count].checked){
var total=total+parseInt(form.n[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.o[count].checked){
var total=total+parseInt(form.o[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.p[count].checked){
var total=total+parseInt(form.p[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.q[count].checked){
var total=total+parseInt(form.q[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.r[count].checked){
var total=total+parseInt(form.r[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.s[count].checked){
var total=total+parseInt(form.s[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.t[count].checked){
var total=total+parseInt(form.t[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.u[count].checked){
var total=total+parseInt(form.u[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.v[count].checked){
var total=total+parseInt(form.v[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.w[count].checked){
var total=total+parseInt(form.w[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.x[count].checked){
var total=total+parseInt(form.x[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.y[count].checked){
var total=total+parseInt(form.y[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.z[count].checked){
var total=total+parseInt(form.z[count].value);
}
}