....di gestire l'onmousedown
e dirgli che se in quel momento è checked aggiungi
se non è cheched cancella

ma non riesco a capire come si gestisce sto checked

<code>
function aggiungi(cod){
var action
ifcheckbox1.checked==false){
checkbox1.checked=false
action="del"
}else{
checkbox1.checked=true
action="add"
}
//checkbox1.on
parent.ifrlist.location.href="lista.asp?action=" + action + "&cosa=prodotti&cod=" + cod
}
</code>

Help me please