home *** CD-ROM | disk | FTP | other *** search
- function leeren()
- {
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- }
-
- /**/
-
- function feld_disabled()
- {
- with (document.formular)
- {
- var c2 = C2.checked;
-
- if (c2 == true)
- T4.disabled = false;
- else
- T4.disabled = true;
- }
- }
-
- /**/
-
- function Abfrage(edi, ite)
- {
- var Check = confirm(txt[20][31]);
-
- with (document.formular)
- {
- if ((Check == true) && (pruefen() == true))
- {
- var c2 = C2.checked;
-
- T4.disabled = ((c2 == true) || (T4.value == '')) ? false : true;
-
- edit.value = '' + edi + '';
- Item.value = '' + ite + '';
-
- submit();
- }
- else
- {
- edit.value = '';
- Item.value = '';
- }
- }
- }
-
- /**/
-
- function edit(edi, ite)
- {
- with (document.formular)
- {
- if (pruefen() == true)
- {
- var c2 = C2.checked;
-
- T4.disabled = ((c2 == true) || (T4.value == '')) ? false : true;
-
- edit.value = '' + edi + '';
- Item.value = '' + ite + '';
-
- submit();
- }
- }
- }
-
- /**/
-
- function send()
- {
- if (pruefen() == true)
- {
- with (document.formular)
- {
- var c2 = C2.checked;
-
- T4.disabled = ((c2 == true) || (T4.value == '')) ? false : true;
-
- submit();
- }
- }
- }
-
- /**/
-
- function pruefen()
- {
- var c2 = document.formular.C2;
- var f1 = document.formular.T1.value;
- var f2 = document.formular.T2.value;
- var f3 = document.formular.T3.value;
- var f4 = document.formular.T4.value;
- var pr = new Array(f1, f2);
- var fe = new Array('T1', 'T2');
-
- for (i = 0; i < pr.length; i++)
- {
- var se = document.formular.elements[fe[i]];
-
- if (pr[i].charAt(0) == '"')
- {
- alert(txt[28][28]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- se.select();
- se.focus();
- return false;
- }
-
- if (pr[i].charAt(pr[i].length - 1) == '\\')
- {
- alert(pr[i] + '\r\n\r\n' + txt[28][26]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- se.select();
- se.focus();
- return false;
- }
-
- if (pr[i].substr(pr[i].length - 2, 2) == '\\"')
- {
- alert(pr[i].substr(0, pr[i].length - 1) + '\r\n\r\n' + txt[28][26]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- se.select();
- se.focus();
- return false;
- }
-
- var tea = pr[i].split('\\');
-
- if (pr[i].substr(0, 2) != '\\\\')
- {
- if (/^([c-z])+([:])$/i.test(tea[0]) == false)
- {
- alert(tea[0] + '\r\n\r\n' + txt[28][22]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- se.select();
- se.focus();
- return false;
- }
- }
-
- var z = (pr[i].substr(0,2) != '\\\\') ? 1 : 2;
-
- for (k = z; k < tea.length; k++)
- {
- if (tea[k].indexOf(' ') != -1)
- {
- if (tea[k].indexOf('"') == -1)
- {
- alert(txt[29][13] + '\r\n\r\n"' + tea[k] + '"');
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- se.select();
- se.focus();
- return false;
- }
- }
-
- if (tea[k].indexOf('"') != -1)
- {
- if ((tea[k].charAt(0) != '"') || (tea[k].charAt(tea[k].length - 1) != '"'))
- {
- alert(txt[29][14] + '\r\n\r\n"' + tea[k] + '"');
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- se.select();
- se.focus();
- return false;
- }
- }
-
- var x = (tea[k].charAt(0) != '"') ? 0 : 1;
- var teb = tea[k].slice(x, tea[k].length - x);
-
- if (/^([_a-z0-9- .]+)$/i.test(teb) == false)
- {
- alert(teb + '\r\n\r\n' + txt[28][23]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- se.select();
- se.focus();
- return false;
- }
- }
- }
-
- if ((f3.match(/\D/) != null) || (f3 < 10) || (f3 > 1200))
- {
- alert(txt[19][9] + txt[29][9] + ' "\t\r\n' + txt[29][12]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- document.formular.T3.select();
- document.formular.T3.focus();
- return false;
- }
-
- if ((c2.checked == true) && (f4 == ''))
- {
- alert(txt[22][8] + txt[29][18] + txt[22][9]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- document.formular.T4.select();
- document.formular.T4.focus();
- return false;
- }
-
- if (filter_send() == true)
- return true;
- }