function showpass(a){ var e = a.nextElementSibling; e.type == 'password' ? e.type = 'text' : e.type = 'password'; }