Sì, nell'head va bene. Devi però prendere questa accortezza (scusa, l'avevo data per scontata):

codice:
window.onload = function()
{
   var modulo = document.getElementsById('Scaricademo')
   modulo.onsubmit = function()
   {
      validate(this)
      checkbae()
   }
}
Forse questa lettura potrebbe interessarti:

- http://icant.co.uk/articles/from-dht...scripting.html