Fai cosi:

Javascript:
codice:
<SCRIPT>
<!--
function Validate(TheForm)
	{
	fin=window.open("about:blank","fin","width=500,height=400,status=yes,scrollbars=yes");
	var invio=false;
	
	invio=TheForm.Object.value!=""?true:false;
	if (invio==true)
		{
		return true;
		}
		else
		{
		alert("Il form non puo' essere inviato");
		fin.close();
		return false;
		}
	}
//-->
</SCRIPT>

Html:
codice:
<form action="esempio.html" method="post" onSubmit="return Validate(this)" target="fin">
<input type="text" name="nomeutente">
<input type="text" name="emailutente">
<input type="submit" value="invia">
</form>