1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
|
function messagetolong(theform) {
if (postmaxchars != 0) {
var messageLength = getMessageLength(theform);
if (messageLength > postmaxchars) {
alert("{$lang->items['LANG_POSTINGS_JS_MESSAGE_TOLONG']}");
return false;
}
if (messageLength < 5) {
alert("{$lang->items['LANG_POSTINGS_JS_MESSAGE_TOSHORT']}");
return false;
}
else {
return true;
}
}
else {
return true;
}
} |