Noget i denne stil ?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><title>Ingen titel</title>
<script type="text/javascript">
var f;
window.onload=function(){
f=document.question;
f.onsubmit=function(){return chkcount(100);}
inps=f.getElementsByTagName("input");
for(i=0,j=inps.length;i<j;i++){
if(inps[i].name.match(/[ab][\d]{1,2}/i)){
inps[i].onchange=function(){chk(this);}
inps[i].onkeyup=function(){chk(this);}
inps[i].parentNode.onmousedown=function(){chk(this.firstChild);}
}
}
}
function chk(elm){
e=f[((elm.name.indexOf("a")==-1)?"a":"b")+elm.name.substr(1)];
if(elm.value.length!=0)e.disabled=true;
else e.disabled=false;
}
function chkcount(k){
k2=0;
inps=f.getElementsByTagName("input");
for(i=0,j=inps.length;i<j;i++){
if(inps[i].name.match(/[ab][\d]{1,2}/i)){
if(!inps[i].disabled&&parseInt(inps[i].value))k2+=parseInt(inps[i].value);
}
}
if(k2==k)return true;
else {
alert("Du skal bruge "+k+" point");
return false;
}
}
</script>
</head><body>
<form name="question">
a1 <div><input type="text" name="a1"></div><br>
b1 <div><input type="text" name="b1"></div><br>
a2 <div><input type="text" name="a2"></div><br>
b2 <div><input type="text" name="b2"></div><br>
a3 <div><input type="text" name="a3"></div><br>
b3 <div><input type="text" name="b3"></div><br>
a4 <div><input type="text" name="a4"></div><br>
b4 <div><input type="text" name="b4"></div><br>
a5 <div><input type="text" name="a5"></div><br>
b5 <div><input type="text" name="b5"></div><br>
a6 <div><input type="text" name="a6"></div><br>
b6 <div><input type="text" name="b6"></div><br>
a7 <div><input type="text" name="a7"></div><br>
b7 <div><input type="text" name="b7"></div><br>
a8 <div><input type="text" name="a8"></div><br>
b8 <div><input type="text" name="b8"></div><br>
a9 <div><input type="text" name="a9"></div><br>
b9 <div><input type="text" name="b9"></div><br>
a10 <div><input type="text" name="a10"></div><br>
b10 <div><input type="text" name="b10"></div><br>
<input type="submit" value="ok">
</form>
</body></html>