I actually have put all my code in page.js minified ;) In there I have one document.ready-function (Jquery) that handles everything. Jquery is the most powerful js library I know, and helped me to do so many things that are not yet implemented in q2a core. I will release some more plugins later on that will add great features.
Example for the submit: When submitting I prevent the default submit using jquery and check if there are at least 2 tags, if not there is an alert.
if ($("#tags").length > 0){
var regForm = $(".qa-form-tall-table").parent();
regForm.submit(function(e) {
var tagsN = 0;
// count tags
var matches = $("#tags").val().match(/\b/g);
if(matches) { tagsN = matches.length*0.5; }
if(tagsN<2) {
e.preventDefault();
// etc.
You find some nice stuff built in at
http://www.gute-mathe-fragen.de/ask Check it out but try not to post, just enter text in the fields and see what happens =)
Have a good evening!
Kai