hey everone. would someone mind looking at the code and perhaps telling me what i might be doing wrong?

Code:
 <script language="JavaScript" type="text/JavaScript">
function checkForm()
 {
 var is_checked = document.forms["submitscore"].forfeit.checked;
 if (is_checked == false)
   var r1h = parseFloat(document.forms["submitscore"].r1h.value);
   var r2h = parseFloat(document.forms["submitscore"].r2h.value);
   var r1a = parseFloat(document.forms["submitscore"].r1a.value);
   var r2a = parseFloat(document.forms["submitscore"].r2a.value);
   
   var totalHome = parseFloat(r1h + r2h);
   var totalAway = parseFloat(r1a + r2a);
   var totalScore = totalHome + totalAway;
   if (totalScore != 24)
	{
	 alert('The Round 1 and Round 2 scores do not add up to an even 24 rounds.');
	 return false;
	}
   return true;
  }
  return true;
 }
</script>