<!--
      // HILFSFUNKTIONEN /////////////////////////////////

      function addHandler (element, type, handler) {
          if(element.addEventListener) {
              element.addEventListener(type, handler, false);
          } else if (element.attachEvent) {
              element.attachEvent('on' + type, handler)
          } else {
              element["on" + type] = handler;
          }
      }
      function getCookie(name) {
          var cookies = document.cookie.split('; ');
          for (var i = 0; i < cookies.length; i++) {
              var c = cookies[i];
              var pos = c.indexOf('=');
              var n = c.substring(0,pos);
              if (n == name)
                  return c.substring(pos+1);
          }
          return null;
      }

      function isCookieValid () {
          var sessionCookie = getCookie('WOM-Session');
          try {
              if (sessionCookie.indexOf('USERID') != -1)  // valid cookie
                  return true;
          }
          catch (error) {    // error if sessionCookie is null, because of undefined WOM-Session-Cookie
              return false;
          }
          return false;     // the cookie was not valid
      }

      function setFocusOrtssuche () {
          try {
              document.WUCHE.ORT.focus();
          }
          catch(error) {
           a = "fehler";
          }
      }
//-->
