perche ti complichi cosi tanto la vita?

dimmi se e' questo che volevi fare :

Codice PHP:
<html>
<
head>
<
script language "javascript" type="text/javascript">

function 
attiva(me){
    
tx_area document.getElementById('RSU');
    if(
me.checked==true){
        
tx_area.disabled=false;
    }else
        
tx_area.disabled=true;
}

</script>


</head>
<body>


<table>
<tr>
<td valign="top"><input type="checkbox" value="RSUbox" id="RSUbox" onClick="attiva(this)"> RSU - Rifiuti Solidi Urbani </td>
<td valign="top"><textarea id="RSU" name="RSU" wrap="ON" cols="40" rows="7" class="testo" disabled></textarea></td>
</tr>
</table>


</body>
</html>