function toggle_signup() {

  const reg_password= document.getElementById('reg_password');

  const reg_password_repeat= document.getElementById('reg_password_repeat');

  const type = reg_password.getAttribute('type') === 'password' ? 'text' : 'password';

  reg_password.setAttribute('type', type);

  reg_password_repeat.setAttribute('type', type);

  let btn_html='';

  if(type=='text') {

    btn_html +=text.hide_password;

  } else {

    btn_html +=text.show_password;

  }

  $('#reg_show_password').html(btn_html)

}