aggiungi il nome all'elemento e usa id non numerici es:
<input type="checkbox" nome="tre" id="tre" onclick="mia_funzione(this)">