home *** CD-ROM | disk | FTP | other *** search
- function pwfeld()
- {
- if (document.formular.T5.value != '')
- document.formular.T3.value = parent.header.document.dummy.feld.value;
- }
-
- /**/
-
- function send()
- {
- if (pruefen() == true)
- document.formular.submit();
- }
-
- /**/
-
- function pruefen()
- {
- var f1 = document.formular.T1.value;
- var f4 = document.formular.T4.value;
- var f6 = document.formular.T6.value;
- var fe = new Array('T6', 'T5', 'T3', 'T1');
- var va = new Array('\'', '"', ',', '*', '?');
-
- for (i = 0; i < fe.length; i++)
- {
- for (j = 0; j < va.length; j++)
- {
- var ei = document.formular.elements[fe[i]];
-
- if (ei.value.indexOf(va[j]) != -1)
- {
- alert(txt[5][7] + va[j] + txt[5][8]);
- ei.select();
- ei.focus();
- return false;
- }
- }
- }
-
- if (f6 == '')
- {
- alert(txt[19][9] + txt[34][0] + txt[52][6]);
- document.formular.T6.select();
- document.formular.T6.focus();
- return false;
- }
-
- if (f1 == '')
- {
- alert(txt[19][9] + txt[34][11] + txt[52][7]);
- document.formular.T1.select();
- document.formular.T1.focus();
- return false;
- }
-
- if ((f4.match(/\D/) != null) || (f4 < 50) || (f4 > 1000))
- {
- alert(txt[19][9] + txt[52][4] + ' "\t\n' + txt[52][8]);
- document.formular.T4.select();
- document.formular.T4.focus();
- return false;
- }
-
- return true;
- }