naturalmente nel tuo form hai messo così, vero:

onSubmit="return seleziona_tutti()"