crypto_settings.js 676 B

1234567891011121314151617181920212223242526
  1. /**
  2. * crypto_settings.js
  3. *
  4. * Some client-side checks. Nothing fancy.
  5. *
  6. * @author Konstantin Riabitsev <icon at duke.edu>
  7. * @copyright &copy; 2001-2007 The SquirrelMail Project Team
  8. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  9. * @version $Id$
  10. */
  11. /**
  12. * This function is the only thing. It is called on form submit and
  13. * asks the user some questions.
  14. */
  15. function checkMe(){
  16. if (!document.forms[0].action.checked){
  17. alert (ui_makesel);
  18. return false;
  19. }
  20. if (document.forms[0].encaction.value=="encrypt")
  21. cmsg=ui_encrypt;
  22. if (document.forms[0].encaction.value=="decrypt")
  23. cmsg=ui_decrypt;
  24. return confirm(cmsg);
  25. }