<body onload="SayWhat('Pape has completed loading');">
... Page Here
SayWhat('In the Middle of the Page');
... Rest of Page Here
With this example, the "inline" script will run as soon as that part has finished loading (in the middle of the page), while all other code is placed in the <head> section.
So, IMO, a handler for the onclick of a checkbox should be placed in the <head> block because it's a separate function that can be called multiple times, and does not depend on being at a specific location in the page.
Does this help?
Everyone is unique, except for me.