PageSourceSearch

https://haus-hollerbusch.de/email/validation.js

js haus-hollerbusch.de collected 2026-10-04 18:34:09 UTC 4,000 bytes, 111 lines download raw bytes

1
2 function validation()
3 {
4
5        var contactname=document.enq.name.value;
6        var name_exp=/^[A-Za-z\s]+$/;
7        if(contactname=='')
8        {
9                //Dunklen Bildschirm ("loading...") wieder hell schalten
10                document.getElementById('Sendmail_Shade').style.display = 'none';
11
12                alert("Bitte geben Sie Ihren Namen ein.");
13                document.enq.name.focus();
14                return false;
15        }
16        //else if(!contactname.match(name_exp))
17        //{
18        //        alert("Ungültiger Wert im Feld Name.");
19        //        document.enq.name.focus();
20        //        return false;
21        //}
22
23        var email=document.enq.email.value;
24        //var email_exp=/^[A-Za-z0-9\.-_\$]+@[A-Za-z]+\.[a-z]{2,4}$/;
25        var email_exp=/^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
26        if(email=='')
27        {
28                //Dunklen Bildschirm ("loading...") wieder hell schalten
29                document.getElementById('Sendmail_Shade').style.display = 'none';
30
31                alert("Bitte geben Sie eine Email-Adresse an.");
32                document.enq.email.focus();
33                return false;
34        }
35        else if(!email.match(email_exp))
36        {
37                //Dunklen Bildschirm ("loading...") wieder hell schalten
38                document.getElementById('Sendmail_Shade').style.display = 'none';
39
40                alert(unescape("Ung%FCltige Email-Adresse!"));
41                document.enq.email.focus();
42                return false;
43        }
44
45
46        var message=document.enq.messagetext.value;
47        if(message=='')
48        {
49                //Dunklen Bildschirm ("loading...") wieder hell schalten
50                document.getElementById('Sendmail_Shade').style.display = 'none';
51
52                alert("Bitte geben Sie eine Mitteilung ein.");
53                document.enq.messagetext.focus();
54                return false;
55        }
56
57
58        var SecurityCode_CHECK=document.enq.SecurityCode_hidden.value;
59        var SecurityCode_INPUT=document.enq.SecurityCode.value;
60        if(SecurityCode_INPUT=='')
61        {
62                //Dunklen Bildschirm ("loading...") wieder hell schalten
63                document.getElementById('Sendmail_Shade').style.display = 'none';
64
65                alert("Bitte geben Sie den Security Code ein.");
66                document.enq.SecurityCode.focus();
67                return false;
68        }
69        if(SecurityCode_INPUT!='')
70        {
71                if (SecurityCode_CHECK != SecurityCode_INPUT)
72                {
73                        //Dunklen Bildschirm ("loading...") wieder hell schalten
74                document.getElementById('Sendmail_Shade').style.display = 'none';
75
76                alert(unescape("Der Security Code stimmt nicht. Bitte %FCberpr%FCfen Sie Ihre Eingaben."));
77                document.enq.SecurityCode.focus();
78                return false;
79                        }
80        }
81
82
83        var email2=document.enq.email2.value;
84        if(email2!=='')
85        {
86                //Dunklen Bildschirm ("loading...") wieder hell schalten
87                document.getElementById('Sendmail_Shade').style.display = 'none';
88
89                alert("You're a bot! No spam please!");
90                document.enq.email.focus();
91                return false;
92        }
93
94
95        //Datenschutzhinweise
96        if (document.enq.Check_EWErkl.checked == false)
97        {
98            //Dunklen Bildschirm ("loading...") wieder hell schalten
99            document.getElementById('Sendmail_Shade').style.display = 'none';
100
101            alert("Bitte stimmen Sie den Datenschutzhinweisen zu.");
102
103            document.getElementById('ckbox2').style.color = "#FF0000";
104            document.getElementById('ckbox').style.backgroundColor = "#FF0000";
105
106            document.enq.Check_EWErkl.focus();
107            return false;
108        }
109
110    return true;
111 }

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.