function set_autocomplete(name, option) {
  var input = document.getElementById(name);

  if (option == 0) {
    input.setAttribute("autocomplete", "off");
  }
  else if (option == 1) {
    input.setAttribute("autocomplete", "on");
  }
}
