849bdf42 |
1 | /** |
2 | CRYPTO_SETTINGS.JS |
3 | ------------------- |
4 | Some client-side checks. Nothing fancy. |
5 | **/ |
6 | |
7 | function checkMe(){ |
8 | if (!document.forms[0].action.checked){ |
9 | alert ("Please make a selection first."); |
10 | return false; |
11 | } |
12 | if (document.forms[0].action.value=="encrypt") |
13 | cmsg="This will encrypt your personal dictionary and store it in an encrypted format. Proceed?"; |
14 | if (document.forms[0].action.value=="decrypt") |
15 | cmsg="This will decrypt your personal dictionary and store it in a clear-text format. Proceed?"; |
16 | return confirm(cmsg); |
17 | } |