Ciao a tutti!

Io ho un form normale per invio mail, vorrei che all'invio della richiesta la pagina richiesta mi si aprisse in una popup, il problema è che ho usato una validazione per il controllo dei campi:

codice:
<script type="text/javascript">
function isEmpty(str) {
            // Check whether string is empty.
            for (var intLoop = 0; intLoop < str.length; intLoop++)
               if (" " != str.charAt(intLoop))
                  return false;
            return true;
         }

         function checkRequired(f) {
            var strError = "";
            for (var intLoop = 0; intLoop < f.elements.length; intLoop++)
               if (null!=f.elements[intLoop].getAttribute("required")) 
                  if (isEmpty(f.elements[intLoop].value))
                     strError += "  " + f.elements[intLoop].name + "\n";
            if ("" != strError) {
               alert("Compila i seguenti campi obbligatori:\n" + strError);
               return false;
            } else
            return true     
         }
</script>
ed al submit ho messo

onSubmit="return checkRequired(this);

come posso fare per poter far aprire la pagina in un a popup dopo il validamento dei campi?

grazie in anticipo!