home *** CD-ROM | disk | FTP | other *** search
- function pwfeld()
- {
- if (document.formular.T1.value != '')
- document.formular.T2.value = parent.header.document.dummy.feld.value;
- }
-
- /**/
-
- function send()
- {
- if (pruefen() == true)
- document.formular.submit();
- }
-
- /**/
-
- function pruefen()
- {
- var f1 = document.formular.T1.value;
- var f2 = document.formular.T2.value;
- var f3 = document.formular.T3.value;
- var fe = new Array('T1', 'T2');
- var va = new Array('\'', '"', ',');
-
- for (e = 0; e < fe.length; e++)
- {
- for (f = 0; f < va.length; f++)
- {
- var ei = document.formular.elements[fe[e]];
-
- if (ei.value.indexOf(va[f]) != -1)
- {
- alert(txt[5][7] + va[f] + txt[5][8]);
- ei.select();
- ei.focus();
- return false;
- }
- }
- }
-
- if (f2 == 'ANY')
- {
- if (f1 == '')
- {
- alert(txt[19][9] + txt[33][1] + txt[33][9]);
- document.formular.T1.select();
- document.formular.T1.focus();
- return false;
- }
- }
- else
- {
- if (f1.length < 4)
- {
- alert(txt[19][9] + txt[33][1] + txt[33][6]);
- document.formular.T1.select();
- document.formular.T1.focus();
- return false;
- }
-
- if (f2.length < 4)
- {
- alert(txt[19][9] + txt[27][2] + txt[33][7]);
- document.formular.T2.select();
- document.formular.T2.focus();
- return false;
- }
- }
-
- var tea = f3.split(',');
- var teb = tea[0].split('\\');
-
- if (tea[0].charAt(tea[0].length - 1) == '\\')
- {
- alert(tea[0] + '\n\n' + txt[28][26]);
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
-
- if (tea[0].substr(0, 2) != '\\\\')
- {
- if (/^([c-z])+([:])$/i.test(teb[0]) == false)
- {
- alert(teb[0] + '\n\n' + txt[28][22]);
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
- }
-
- var y = (tea[0].substr(0, 2) != '\\\\') ? 1 : 2;
-
- for (i = y; i < teb.length; i++)
- {
- if (/^([_a-z0-9- .]+)$/i.test(teb[i]) == false)
- {
- alert(teb[i] + '\n\n' + txt[28][23]);
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
- }
-
- if (tea.length > 1)
- {
- for (j = 1; j < tea.length; j++)
- {
- var tec = tea[j].split('=');
- var ted = tec[1].split('\\');
-
- if ((tec[0].charAt(0) == '[') && (tec[0].charAt(tec[0].length - 1) == ']'))
- {
- var tst = tec[0].substr(1, tec[0].length - 2)
-
- if (/^([_a-z0-9- ]+)$/i.test(tst) == false)
- {
- alert(tst + '\n\n' + txt[28][27]);
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
- }
- else
- {
- if (/^([_a-z0-9- ]+)$/i.test(tec[0]) == false)
- {
- alert(tec[0] + '\n\n' + txt[28][27]);
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
- }
-
- if (tec[1].charAt(tec[1].length - 1) == '\\')
- {
- alert(tec[1] + '\n\n' + txt[28][26]);
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
-
- if (tec[1].substr(0, 2) != '\\\\')
- {
- if (/^([c-z])+([:])$/i.test(ted[0]) == false)
- {
- alert(ted[0] + '\n\n' + txt[28][22]);
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
- }
-
- var z = (tec[1].substr(0, 2) != '\\\\') ? 1 : 2;
-
- for (k = z; k < ted.length; k++)
- {
- if (/^([_a-z0-9- .]+)$/i.test(ted[k]) == false)
- {
- alert(ted[k] + '\n\n' + txt[28][23]);
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
- }
- }
- }
-
- return true;
- }