How can I put check/uncheck a checkbox using lotus notes with JavaScript?

How can I put check/uncheck a checkbox using lotus notes with JavaScript? The input type checkbox is within a form called form1. I even tried a lot of different JavaScript code but it does not work. Can somebody help me on this matter?
