// Checks that a choice is selected
// form - Form to check
function checkEpVote(form, voteid, cookie_set) {
  choice = -1

  for (vix = 0; vix < form.vote.length; vix++) {
    if (form.vote[vix].checked) {
      choice = vix
    }
  }

  if (choice == -1) {
    alert("Vælg en mulighed først, før du trykker stem")
    form.vote[0].focus()
    return false
  }

  return true
}

// Checks that a choice is selected
// form - Form to check
function checkVote(vote) {
  checkInput = vote.selectedIndex
  if (!checkInput || (checkInput == 0)) {
    alert("Vælg en mulighed først, før du stemmer")
    vote.focus()
    return false
  }
  return true
}
