JavaScript help needed
<p>hello i'm using this code for publishing important messages on my applications message wall, i'm using a checkbox for publishing important message on message wall. the problem is that after publishing important message it will again publish the important message without clicking on checkbox, means the checkbox remains true after publishing the important message. please help me for this.
and my code is:</p>

<pre><code>&lt;div class="checkbox" id="checkboxShow" name="userCheckList1" style="display:block;" onclick="importantChkBoxChange(userCheckListShow.checked);"&gt;

    &lt;input  type="checkbox" name="userCheckList1" id="userCheckListShow" unchecked="unchecked" 
    onchange="importantChkBoxChange(userCheckList.checked);"/&gt;
   &lt;/div&gt;

   &lt;div class="checkbox" id="checkboxHide" name="userCheckList1" style="display:none;" onclick="importantChkBoxChange(userCheckListHide.checked);"&gt;

    &lt;input  type="checkbox" name="userCheckList1" id="userCheckListHide" unchecked="unchecked" 
    onchange="importantChkBoxChange(userCheckListHide.checked);"/&gt;
   &lt;/div&gt;
     &lt;span class="fl"  style="margin:3px 0px 0 0;" &gt;&lt;@spring.message "label.employee.home.Important"/&gt;&lt;/span&gt;
</code></pre>

<p>and the script used for this is:</p>

<pre><code>function importantChkBoxChange(chkBoxStatus){

        if(chkBoxStatus == true){
            document.forms['messageWallForm'].elements['important'].value="checked";
        }else if(chkBoxStatus == false){
            document.forms['messageWallForm'].elements['important'].value="unchecked";
        }
    }
</code></pre>
