Getting ready for 1.4.0 RC1
[squirrelmail.git] / plugins / squirrelspell / js / crypto_settings.js
CommitLineData
849bdf42 1/**
a8380e75 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 */
849bdf42 11
a8380e75 12/**
13 * This function is the only thing. It is called on form submit and
14 * asks the user some questions.
15 */
849bdf42 16function checkMe(){
a8380e75 17 if (!document.forms[0].action.checked){
18 alert (ui_makesel);
19 return false;
20 }
21 if (document.forms[0].action.value=="encrypt")
22 cmsg=ui_encrypt;
23 if (document.forms[0].action.value=="decrypt")
24 cmsg=ui_decrypt;
25 return confirm(cmsg);
849bdf42 26}