// JavaScript Document

function checarenvio()
{
    var erro_string = "";   
    // Conferindo o botão Radio
    var rad_select = "no";
    for (var loop = 0; loop < window.document.form1.opcao.length; loop++)
    {
        if (window.document.form1.opcao[loop].checked == true)
        {
            rad_select = "yes";
        }
    }
    if (rad_select == "no")
    {
         erro_string += "Marque uma alternativa.\n";
    }
    if (erro_string == "")
    {
       
	   window.document.form1.submit();
	   
	   return true;
	   
    } else {        
        alert(erro_string);
        return false;
    } 
}
