var a=document.getElementsByTagName("input")
for(var i;i<a.length;i++)
{
  if(a[i].type="radio"&&a[i].checked)alert(a[i].value)
}