function foco(elemento) { elemento.style.border = "1px solid #0000ff"; elemento.style.background = "#9bc7f5"; } function no_foco(elemento) { elemento.style.border = "1px solid #46505a"; elemento.style.background = "#90a1b2"; }