function saveEmail () {
    var email = document.getElementById("email");

    if (email.value != '') {
        request('POST', '/protected/newemail', {