codice:
<?
$giorno_adesso = date('d');
$mese_adesso = date('m');
$anno_adesso = date('Y');
?>

<script language="javascript">
<!--
function Validator(theForm)
{
  if (theForm.GiornoNascita.value < <? echo $giorno_adesso ?> && theForm.MeseNascita.value < <? echo $mese_adesso ?> && (theForm.AnnoNascita.value - <? echo $anno_adesso ?> < 18))
  {
    alert("Non sei maggiorenne");
    theForm.GiornoNascita.focus();
    return (false);
  }
  return (true);
}
//-->
</script>
Cos'è che non va in questo script? Deve vedere che l'utente non sia minorenne.