function sel(){
var radios = document.getElementsByName("radio");
if(radios[0].checked){
alert(radios[0].value);
}
else if(radios[1].checked){
alert(radios[1].value);
}
}
var radios = document.getElementsByName("radio");
if(radios[0].checked){
alert(radios[0].value);
}
else if(radios[1].checked){
alert(radios[1].value);
}
}