decrypt_error.js 607 B

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