<script type="text/javascript">
function radioEvent(form)
{
for (var i = 0; i < form.radioButton.length; i++)
{
if (form.radioButton[i].checked)
{
alert("You chose " + form.radioButton[i].value + ".")
}
}
}
</script>
</head>
<body>
<form>
<input type="radio" name= "radioButton" value= "Excellent" onclick="radioEvent(this.form);"/> Excellent<br/>
<input type="radio" name="radioButton" value="Very Good" onclick="radioEvent(this.form);"/> Very Good <br/>
<input type="radio" name="radioButton" value="Good" onclick="radioEvent(this.form);"/> Good <br/>
<input type="radio" name="radioButton" value="Satisfactory" onclick="radioEvent(this.form);"/> Satisfactory
</form>
</body>
</html>