<script language="Javascript">
var isvalid=false;
function Form_Validator(theForm)
{
if (theForm.txtCont.value == "")
{
alert("Errore! \n\nIl nome Continente non può essere vuoto.");
theForm.txtCont.focus();
return (isvalid);
}
if (theForm.txtPaese.value == "" || theForm.txtPaese.value.length > 50)
{
alert("Errore! \n\nIl nome del Paese non può essere vuoto o superare i 50 caratteri.");
theForm.txtCont.focus();
return (isvalid);
}
isvalid=true;
theForm.submit();
return (isvalid);
}
</script>

la parte HTML:

<form name="frmTipo" method="get" action="NewPaeseEnd.php">
<select name="txtCont">
<option value="">Seleziona Continente</option>
<option value="1">Africa</option>
</select>
<input name="txtPaese" type="text" size="30">

<input type="Button" name="Button" value="Registra" class="InButS" OnClick="Form_Validator(frmTipo)" >
</form>


Questo è quanto!
Aiuto!!!!!!!!