<html>
<head>
<script>
function processSize(){
var size;
var i;
var selectedOne;
for (i = 0; i <= 3; i++){
selectedOne = document.myForm.radSize[i];
if (selectedOne.checked == true){
size = selectedOne.value;
}
}
document.myForm.txtOutput.value = size;
}
</script>
</head>
<body>
<form name = myForm>
<input type = "radio" name = radSize value = "small">Small
<input type = "radio" name = radSize value = "medium">Medium
<input type = "radio" name = radSize value = "large">Large
<input type = "button" value = "OK" onClick = "processSize()">
<textarea name = "txtOutput" rows = 5 cols = 40>
</textarea>
</form>
</body>
</html>