home *** CD-ROM | disk | FTP | other *** search
- function leeren()
- {
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- }
-
- /**/
-
- function feld_disabled()
- {
- with (document.formular)
- {
- var c1 = C1.checked;
-
- if (c1 == true)
- {
- T1.disabled = false;
- D1.disabled = false;
- }
- else
- {
- T1.disabled = true;
- D1.disabled = true;
- }
- }
- }
-
- /**/
-
- function Abfrage(edi, use)
- {
- var Check = confirm(txt[20][31]);
-
- with (document.formular)
- {
- if ((Check == true) && (pruefen() == true))
- {
- var c1 = C1.checked;
-
- T1.disabled = ((c1 == true) || (T1.value == '')) ? false : true;
- D1.disabled = false;
-
- edit.value = '' + edi + '';
- Item.value = '' + use + '';
-
- submit();
- }
- else
- {
- edit.value = '';
- Item.value = '';
- }
- }
- }
-
- /**/
-
- function edit(edi, use)
- {
- if (pruefen() == true)
- {
- with (document.formular)
- {
- var c1 = C1.checked;
-
- T1.disabled = ((c1 == true) || (T1.value == '')) ? false : true;
- D1.disabled = false;
-
- edit.value = '' + edi + '';
- Item.value = '' + use + '';
-
- submit();
- }
- }
- }
-
- /**/
-
- function send()
- {
- if (pruefen() == true)
- {
- with (document.formular)
- {
- var c1 = C1.checked;
-
- T1.disabled = ((c1 == true) || (T1.value == '')) ? false : true;
- D1.disabled = false;
-
- submit();
- }
- }
- }
-
- /**/
-
- function pruefen()
- {
- var c1 = document.formular.C1.checked;
-
- if (c1 == true)
- {
- var f1 = document.formular.T1.value;
- var d1 = document.formular.D1;
-
- if ((f1 == '') || (f1.match(/\D/) != null) || (f1 < 0) || (f1 > 86400))
- {
- alert(txt[19][9] + txt[26][8]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- document.formular.T1.select();
- document.formular.T1.focus();
- return false;
- }
-
- if ((d1.options[0].selected == false) && (d1.options[1].selected == false) && (d1.options[2].selected == false))
- {
- alert(txt[26][13]);
- document.formular.edit.value = '';
- document.formular.Item.value = '';
- document.formular.D1.focus();
- return false;
- }
- }
-
- return true;
- }