home *** CD-ROM | disk | FTP | other *** search
- function leeren()
- {
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- }
-
- /**/
-
- function Abfrage(edi, ext)
- {
- var Check = confirm(txt[20][31]);
-
- if ((Check == true) && (pruefen() == true))
- {
- document.formular.edit.value = '' + edi + '';
- document.formular.Item.value = '' + ext + '';
- document.formular.submit();
- }
- else
- {
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- }
- }
-
- /**/
-
- function edit(edi, ext)
- {
- if (pruefen() == true)
- {
- document.formular.edit.value = '' + edi + '';
- document.formular.Item.value = '' + ext + '';
- document.formular.submit();
- }
- }
-
- /**/
-
- 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;
-
- if (f1.charAt(f1.length - 1) == '\\')
- {
- alert(f1 + '\n\n' + txt[28][26]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- document.formular.T1.select();
- document.formular.T1.focus();
- return false;
- }
-
- var tea = f1.split('\\');
-
- if (f1.substr(0, 2) != '\\\\')
- {
- if (/^([c-z])+([:])$/i.test(tea[0]) == false)
- {
- alert(tea[0] + '\n\n' + txt[28][22]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- document.formular.T1.select();
- document.formular.T1.focus();
- return false;
- }
- }
-
- var z = (f1.substr(0, 2) != '\\\\') ? 1 : 2;
-
- for (k = z; k < tea.length; k++)
- {
- if (/^([_a-z0-9- .]+)$/i.test(tea[k]) == false)
- {
- alert(tea[k] + '\n\n' + txt[28][23]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- document.formular.T1.select();
- document.formular.T1.focus();
- return false;
- }
- }
-
- if ((f2 != -1) && ((f2.match(/\D/) != null) || (f2 < 10) || (f2 > 9999)))
- {
- alert(txt[19][9] + txt[34][3] + ' "\t\n' + txt[34][9]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- document.formular.T2.select();
- document.formular.T2.focus();
- return false;
- }
-
- if ((f3 == '') || (f3.match(/\D/) != null) || (f3 < 0) || (f3 > 1440))
- {
- alert(txt[19][9] + txt[34][16] + ' "\t\n' + txt[34][18]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
-
- return true;
- }