<!--
    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 getWomLink (section, wmo){
        var link = [];
        link['ref'] = 'cnt.wetteronline.de/cgi-bin/goto?URL=http%3A%2F%2Fwom.wetteronline.de%2F%3Fpid%3Dp_open_access%26content%3Dmarketing%26mainmenu%3Dcontents%26submenu%3Dlocalforecast%26tab%3Dlongterm&WERBUNG=click_wom_'+section;
        link['alt'] = '14 Tage';
        link['target'] = 'WetterOnlineMitgliedschaft';
        var sessionCookie = getCookie('WOM-Session');
        try {
            if (!(sessionCookie.indexOf('USERID') == -1)) {  // throws error if sessionCookie is null
                link['ref'] = 'wom.wetteronline.de/?prefpar=weather&pcid=pc_city_local&pid=p_city_local&sid=LongTerm&gid='+ wmo +'&iid='+ wmo +'&paras=101110';
                if ( typeof(locationname)!="undefined" ){
                  link['ref'] += '&locationname=' + locationname;
                }
            }
        }
        catch (error) {
        }

        return '<a href="http://' + link['ref'] + '" target="' + link['target'] +'">' + link['alt'] + '</a> (M)'
    }


//-->
