salve a tutti

devo fare due controlli checkbox che attivino o disattivino due rispettive textaree.

ho provato qualcosa del genere:

codice:
.....
....
<head>
....
......

<script language="javascript">

 function txtenable(){document.getElementById('pagamento').disabled=false;}
 function txtenable2(){document.getElementById('pagamento2').disabled=false;}
 function txtdisable(){document.getElementById('pagamento').disabled=true;}
 function txtdisable2(){document.getElementById('pagamento2').disabled=true;}
</script>
</head>
<body>
....
......
.....
<td><input type=checkbox onCheck="txtenable()" onunCheck="txtdisable()"><INPUT TYPE='textarea' NAME='pagamento' size="10" value=0></textarea></td><td><input type=button value=Calcola onclick="Somma()"></td>
	</tr>
	<tr><td align=left>Contanti</td>
	<td><input type=checkbox onCheck="txtenable2()" onunCheck="txtdisable2()"><INPUT TYPE="textarea" NAME='pagamento2' size="10" value=0></textarea></td><td><input type=button value=Calcola onclick="Sommapunti()"></td>

.....
.....
ovviamente siccome sono troppo scarso non funziona....
vi ringrazio per l'aiuto anticipatamente!