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';
}
che richiami così:

codice:
<input type="checkbox" id="mycheck01" onClick="funzione(this.checked, this.id);">
ciao