Prototype/Checkbox fun

I’m probably missing the obvious clues, but i’m stumped. the script is not firing, so the div is still visible. this is the first time i’ve used a script since i’m still classified as a noob

<%= check_box_tag ‘accept_reg’, :onclick => “if ($(‘accept_reg’).checked) { $(‘submit_div’).show()}” %>

thank you, Jason