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