 <!--
        function checkTextObj(textobj, minlen) {
                var str = new String(textobj.value);
                if (minlen == '@') {
                        if (str.indexOf("@") < 1) return (-1);
                        strSlices = textobj.value.split("@");
                        if (strSlices[0] == "" || strSlices[1] == "") return (-1);
                        if (strSlices[1].indexOf(".") >= 1) {
                        // Debug alert(strSlices[1]);
                                strDomainAbbrev = strSlices[1].slice(strSlices[1].lastIndexOf("."), strSlices[1].length);
                                if (strDomainAbbrev.length <= 2) return (-1);
                                // Debug alert(strDomainAbbrev);
                                strDomainName = strSlices[1].slice(0, strSlices[1].lastIndexOf("."));
                                // Debug alert(strDomainName);
                                if (strDomainName.length <= 1) return (-1);
                                } else {
                                        return (-1);
                                        }
                                return 0;
                } else { if (str.length < minlen) return (-1);
                        return 0;
                }

        }
        function checkFormular() {
                err = checkTextObj(document.form.Name, 2);
                if (err < 0) {
                        alert ("Please fill in your Name");
                        document.form.Name.focus();
                        return false;

                }

                err = checkTextObj(document.form.Manufacturer, 2);
                if (err < 0) {
                        alert ("Please fill in the manufacturer");
                        document.form.Manufacturer.focus();
                        return false;

                }
                err = checkTextObj(document.form.Country, 5);
                if (err < 0) {
                        alert ("Please fill in your country");
                        document.form.Country.focus();
                        return false;

                }
                err = checkTextObj(document.form.Adress, 2);
                if (err < 0) {
                        alert ("Please fill in your adress");
                        document.form.Adress.focus();
                        return false;


                }
                err = checkTextObj(document.form.Type, 2);
                if (err < 0) {
                        alert ("Please fill in the type");
                        document.form.Type.focus();
                        return false;


                }
                err = checkTextObj(document.form.Telefon, 2);
                if (err < 0) {
                        alert ("Please fill in your telefon");
                        document.form.Telefon.focus();
                        return false;


                }
                err = checkTextObj(document.form.Seriennummer, 2);
                if (err < 0) {
                        alert ("Please fill in the serial number");
                        document.form.Seriennummer.focus();
                        return false;

                }

                err = checkTextObj(document.form.Anzahl, 1);
                if (err < 0) {
                        alert ("Please fill in the required quantity");
                        document.form.Anzahl.focus();
                        return false;

                }                

                err = checkTextObj(document.form.Email, '@');
                if (err < 0) {
                        alert ("The email is not correct");
                        document.form.Email.focus();
                        return false;
                }

        }

// -->