crypto_settings.js 549 B

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