utf-8 is already converted by ja_JP extra functions.
[squirrelmail.git] / plugins / squirrelspell / js / decrypt_error.js
CommitLineData
849bdf42 1/**
a8380e75 2 * decrypt_error.js
3 * -----------------
4 * Some client-side form-checks. Trivial stuff.
5 *
6 * $Id$
7 *
8 * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
9 * @version $Date$
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;
25}
26