print "<hr>\n";
print <<EOF;
-<SCRIPT LANGUAGE="JavaScript">\r
+<SCRIPT LANGUAGE="JavaScript">
function Submit_onClick() {
EOF
# If create
-if ($in{'new'} && scalar @conflist) {\r
+if ($in{'new'} && scalar @conflist) {
print <<EOF;
if (document.editconfig.create_mode[0].checked) {
if (document.editconfig.file_to_copy.value=='') {
- alert('You must choose a config to copy for creating a new one by copy');\r
- document.editconfig.file_to_copy.focus();\r
- return false;\r
- }\r
+ alert('You must choose a config to copy for creating a new one by copy');
+ document.editconfig.file_to_copy.focus();
+ return false;
+ }
} else {
EOF
}
# End If create
print <<EOF;
- if (document.editconfig.LogFormat.value=='') {\r
- alert('$text{save_errLogFormat}');\r
- document.editconfig.LogFormat.focus();\r
- return false;\r
+ if (document.editconfig.LogFormat.value=='') {
+ alert('$text{save_errLogFormat}');
+ document.editconfig.LogFormat.focus();
+ return false;
+ }
+ if (document.editconfig.LogFile.value.match(/maillogconvert.pl/)!=null && document.editconfig.LogType.value != 'M') {
+ alert('Your log file is preprocessed by maillogconvert.pl but is not defined as a "Mail" log type.\\nChange LogFile or LogType parameter.');
+ document.editconfig.LogType.focus();
+ return false;
}
- if (document.editconfig.LogFile.value.match(/maillogconvert.pl/)!=null && document.editconfig.LogType.value != 'M') {\r
- alert('Your log file is preprocessed by maillogconvert.pl but is not defined as a "Mail" log type.\\nChange LogFile or LogType parameter.');\r
- document.editconfig.LogType.focus();\r
- return false;\r
- }\r
- if (document.editconfig.SiteDomain.value=='') {\r
- alert('$text{save_errSiteDomain}');\r
- document.editconfig.SiteDomain.focus();\r
- return false;\r
- }\r
- if (document.editconfig.DirData.value=='') {\r
- alert('$text{save_errDirData}');\r
- document.editconfig.DirData.focus();\r
- return false;\r
+ if (document.editconfig.SiteDomain.value=='') {
+ alert('$text{save_errSiteDomain}');
+ document.editconfig.SiteDomain.focus();
+ return false;
}
-EOF\r
+ if (document.editconfig.DirData.value=='') {
+ alert('$text{save_errDirData}');
+ document.editconfig.DirData.focus();
+ return false;
+ }
+EOF
# If create
-if ($in{'new'} && scalar @conflist) {\r
+if ($in{'new'} && scalar @conflist) {
print <<EOF;
}
EOF