http://qs1969.pair.com?node_id=635621


in reply to Howto Include JavaScript to CGI.pm Script

It is now working fine for me. I suggest to add onLoad JavaScript handler which will finish checkbox initialization after page load. Example untested code:
<script type="text/javascript">//<![CDATA[ function init() { twofastest = document.getElementById('twofastest'); if ( twofastest ) { if ( twofastest.checked ) { twofastestClick(); } else { checkBoxClick(); } } } window.onload = init; //]]></script>