I think some script can be easily replaced by jquery.
Some example

       $("input[name^='qMark'],input[name^='gMark']).removeProp('checked');

And more, think it's better to use data="gMark" and not name or id for this. .data() is quickest way for modern browser.
I can do some when we have an organize.js