<!-- Questions 1 4 and 6 are wrong
That stuff you said was confusing, but I think this is what you want
-->
<html>
<head>
<script language="JavaScript">
<!--
NoOfChancesAllowed = 2;
NoTried = 0;
function CheckIt(){
NoTried = NoTried + 1;
msg = "";
if (document.frm1.chk1.checked){
msg += "Question 1 wrong"
document.frm1.chk1.checked = false;
} else {
if (document.frm1.chk4.checked){
msg += " Question 4 wrong"
document.frm1.chk4.checked = false;
} else {
if (document.frm1.chk6.checked){
msg += " Question 6 wrong"
document.frm1.chk6.checked = false;
}
}
}
if (NoTried >= NoOfChancesAllowed) {
msg = "YOU FAIL !!!"
document.frm1.chk1.disabled="true"
document.frm1.chk2.disabled="true"
document.frm1.chk3.disabled="true"
document.frm1.chk4.disabled="true"
document.frm1.chk5.disabled="true"
document.frm1.chk6.disabled="true"
}
if (msg != ""

{
alert(msg);
}
}
-->
</script>
</head>
<body>
<form name="frm1">
question 1 <input type="checkbox" name="chk1">
question 2 <input type="checkbox" name="chk2"><br>
question 3 <input type="checkbox" name="chk3">
question 4 <input type="checkbox" name="chk4"><br>
question 5 <input type="checkbox" name="chk5">
question 6 <input type="checkbox" name="chk6"><br>
<input type="button" value="Check" onclick="CheckIt();">
</form>
</body>
</html>