<form action="invio.php" method="post" name="form1" onsubmit="return controllo();">

ciao