crypto_settings.js 572 B

1234567891011121314151617181920212223242526
  1. /**
  2. * crypto_settings.js
  3. * -------------------
  4. * Some client-side checks. Nothing fancy.
  5. *
  6. * $Id$
  7. *
  8. * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
  9. * @version $Date$
  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].action.value=="encrypt")
  21. cmsg=ui_encrypt;
  22. if (document.forms[0].action.value=="decrypt")
  23. cmsg=ui_decrypt;
  24. return confirm(cmsg);
  25. }