and more
[squirrelmail.git] / plugins / squirrelspell / js / decrypt_error.js
1 /**
2 DECRYPT_ERROR.JS
3 -----------------
4 Some client-side form-checks. Trivial stuff.
5 **/
6
7 function AYS(){
8 if (document.forms[0].delete_words.checked && document.forms[0].old_key.value){
9 alert ("You can either delete your dictionary or type in the old password. Not both.");
10 return false;
11 }
12
13 if (!document.forms[0].delete_words.checked && !document.forms[0].old_key.value){
14 alert("First make a choice.");
15 return false;
16 }
17 if (document.forms[0].delete_words.checked)
18 return confirm("This will delete your personal dictionary file. Proceed?");
19 return true;
20 }
21