fsf changes, meant to be rebased on upstream
[squirrelmail.git] / plugins / squirrelspell / js / decrypt_error.js
1 /**
2 * decrypt_error.js
3 *
4 * Some client-side form-checks. Trivial stuff.
5 *
6 * @author Konstantin Riabitsev <icon at duke.edu>
7 * @copyright 2001-2021 The SquirrelMail Project Team
8 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9 * @version $Id$
10 */
11
12 function AYS(){
13 if (document.forms[0].delete_words.checked && document.forms[0].old_key.value){
14 alert (ui_candel);
15 return false;
16 }
17
18 if (!document.forms[0].delete_words.checked && !document.forms[0].old_key.value){
19 alert(ui_choice);
20 return false;
21 }
22 if (document.forms[0].delete_words.checked)
23 return confirm(ui_willdel);
24 return true;
25 }