che richiami così:codice:function funzione(stato, originid) { var idriga; idriga="myrow"+originid.substr(7,2); if (stato) document.getElementById(idriga).style.backgroundColor='#CCCCCC'; else document.getElementById(idriga).style.backgroundColor='#FFFFFF'; }
ciaocodice:<input type="checkbox" id="mycheck01" onClick="funzione(this.checked, this.id);">