Non riesco ad eseguire il controllo sul radiobutton.
Il mio desiderio è quello che esca l'alert se l'utente non seleziona nessuno dei due radiobutton.

Fatemi sapere !
Ecco il codice, ciao.

codice:
<html>
<head>
<script>
function valid(){
var nome=document.theform.nome.value;
if (nome==""){
alert("Inserisci il tuo Nome!!")
document.theform.nome.focus()
return false
		}
var radiobutton=document.theform.radiobutton.value;
if (radiobutton==""){
alert("Sei studente?!?!")
document.theform.radiobutton.focus()
return false
		}	
}
</script>
</head>
<body>
<form name="theform" action="registrazione.asp" onsubmit="return valid()" method="post" >                              
Nome: 
  <input name="nome" size="15">
  

Studente: si<input type="radio" name="radiobutton" value="si">

no<input type="radio" name="radiobutton" value="no">
       
<input type="submit" value="Invia  " name="submit">
</form>
</body>
</html>