Seriously? The variable is named as an array and initialized as a string? Well, I...
[squirrelmail.git] / plugins / squirrelspell / js / decrypt_error.js
CommitLineData
849bdf42 1/**
a8380e75 2 * decrypt_error.js
a8380e75 3 *
4b4abf93 4 * Some client-side form-checks. Trivial stuff.
a8380e75 5 *
4b4abf93 6 * @author Konstantin Riabitsev <icon at duke.edu>
22387c8d 7 * @copyright 2001-2017 The SquirrelMail Project Team
4b4abf93 8 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9 * @version $Id$
a8380e75 10 */
849bdf42 11
12function AYS(){
13 if (document.forms[0].delete_words.checked && document.forms[0].old_key.value){
a8380e75 14 alert (ui_candel);
849bdf42 15 return false;
16 }
a8380e75 17
849bdf42 18 if (!document.forms[0].delete_words.checked && !document.forms[0].old_key.value){
a8380e75 19 alert(ui_choice);
849bdf42 20 return false;
21 }
22 if (document.forms[0].delete_words.checked)
a8380e75 23 return confirm(ui_willdel);
849bdf42 24 return true;
4b4abf93 25}