I have a checkbox which I use with an onchange function like this:
Code HTML4Strict:
<input name="topbar_active" type="checkbox" value="1" onchange="topbaractivate(this.value);"/>

And then I have this script:
Code JavaScript:
function topbaractivate(c){
    if (c == 1){
        // Do something here //
    } else {
        // Do something else here //

But the trouble is that nomatter if the checkbox is checked or not it passes the value "1".

How do I get passed this?

Thanks in advance :-)