function form_enquete_Validator(theForm)
{

  var radioSelected = false;
  for (i = 0;  i < theForm.R_enquete.length;  i++)
  {
    if (theForm.R_enquete[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Select one of the options before voting for.");
    return (false);
  }
  return (true);
}


function form_indicar_Validator(theForm)
{

  if (theForm.Nome.value == "")
  {
    alert("Type a value for the field \"Your name\".");
    theForm.Nome.focus();
    return (false);
  }

  if (theForm.Nome.value.length < 3)
  {
    alert("Type at least 3 characters in the field \"Your name\".");
    theForm.Nome.focus();
    return (false);
  }

  if (theForm.Mail.value == "")
  {
    alert("Type a value for the field \"Your e-mail\".");
    theForm.Mail.focus();
    return (false);
  }

  if (theForm.Mail.value.length < 6)
  {
    alert("Type at least 6 characters in the field \"Your e-mail\".");
    theForm.Mail.focus();
    return (false);
  }

  if (theForm.Destinatario.value == "")
  {
    alert("Type a value for the field \"Addressee\".");
    theForm.Destinatario.focus();
    return (false);
  }

  if (theForm.Destinatario.value.length < 3)
  {
    alert("Type at least 3 characters in the field \"Addressee\".");
    theForm.Destinatario.focus();
    return (false);
  }

  if (theForm.MDestinatario.value == "")
  {
    alert("Type a value for the field \"E-mail addressee\".");
    theForm.MDestinatario.focus();
    return (false);
  }

  if (theForm.MDestinatario.value.length < 6)
  {
    alert("Type at least 6 characters in the field \"E-mail addressee\".");
    theForm.MDestinatario.focus();
    return (false);
  }
  return (true);
}