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