I have some code like:

<td><label>Vokalinput type="checkbox" onclick="javascript:convert_vokal()" id="vokal"/></label></td>

The convert_vokal() changes a value vokal to true or false according to the state of the checkbox.

I have now implemented cookies which means the default value of vokal could be true. The checkbox should then be selected as default. How can i visually set the box being checked if vokal=true and not checked is vokal=false?