home *** CD-ROM | disk | FTP | other *** search
- function feld_disabled()
- {
- with (document.formular)
- {
- if (elements['R1'][0].checked == true)
- T5.disabled = true;
- else
- T5.disabled = false;
- }
- }
-
- /**/
-
- function send()
- {
- if (pruefen() == true)
- document.formular.submit();
- }
-
- /**/
-
- function pruefen()
- {
- var f2 = document.formular.T2.value;
- var f3 = document.formular.T3.value;
- var f4 = document.formular.T4.value;
- var f5 = document.formular.T5.value;
- var r1 = document.forms[0].elements[5].checked;
- var r2 = document.forms[0].elements[6].checked;
- var fe = new Array('T2', 'T3', 'T4');
- 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 ((f2.length < 4) || (f2.indexOf(':') != -1))
- {
- alert(txt[19][9] + txt[36][0] + txt[27][20] + '\n\n' + txt[68][6]);
- document.formular.T2.select();
- document.formular.T2.focus();
- return false;
- }
-
- if (f3.length < 4)
- {
- alert(txt[5][5] + ' 4' + txt[5][9]);
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
-
- if (f3 != f4)
- {
- alert(txt[5][6]);
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
-
- if (r1 == true)
- {
- if (f5 != '')
- {
- alert(txt[68][7]);
- document.formular.T5.select();
- document.formular.T5.focus();
- return false;
- }
- }
- else
- {
- if (f5.charAt(f5.length - 1) == '\\')
- {
- alert(f5 + '\n\n' + txt[28][26]);
- document.formular.T5.select();
- document.formular.T5.focus();
- return false;
- }
-
- var tea = f5.split('\\');
-
- if (f5.substr(0, 2) != '\\\\')
- {
- if (/^([c-zC-Z])+([:])$/.test(tea[0]) == false)
- {
- alert(tea[0] + '\n\n' + txt[28][22]);
- document.formular.T5.select();
- document.formular.T5.focus();
- return false;
- }
- }
-
- var z =(f5.substr(0, 2) != '\\\\') ? 1 : 2;
-
- for (k = z; k < tea.length; k++)
- {
- if (/^([_a-zA-Z0-9- .]+)$/.test(tea[k]) == false)
- {
- alert(tea[k] + '\n\n' + txt[28][23]);
- document.formular.T5.select();
- document.formular.T5.focus();
- return false;
- }
- }
- }
-
- return true;
- }
-
- /**/
-
- var min_laenge = '';