// antispam-mailfunktion von AE, immer ergänzt um einen noscript-Bereich,
// in dem das @ durch ein Bild getarnt wird. Beispiel:
//<script>MailLink("CIB Support","cibsupport","cib.de")</script>
//<noscript>cibsupport<img src="/images/at.gif" border="0">cib.de</noscript>
function MailLink(Name, Adress, Domain)
{
         document.write("<a href=\"mailto:"+Adress+"@"+Domain+"\">");
         document.write(Name+"</a>");
}

// scroll ist optional, wird hier irgendwas, z.b. 'yes' &uuml;bergeben so hat das popup scrollbalken.
function openWindow(pUrl,windowName,width,height,scroll)
{
        x = (640 - width)/2, y = (480 - height)/2;
        if (screen)
        {
                y = (screen.availHeight - height)/2;
                x = (screen.availWidth - width)/2;
        }
        if (screen.availWidth > 1800)
        {
                x = ((screen.availWidth/2) - width)/2;
        }
        if (scroll==null)
        {
            scroll='scrollbars=no';
        }
        else
        {
            scroll='scrollbars=yes';
        }
        window.open(pUrl,windowName,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+','+scroll);
}

// Fenster mit "normalem aussehen" &ouml;ffnen, danach sich selbst schlie&szlig;en.
// SG---170902 nicht mehr schlie&szlig;en.
function openwindowcloseself(pUrl)
{
        height = screen.availHeight - 100;
        width = screen.availWidth * 0.8;
        if (screen.availWidth > 1800)
        {
        width = width/2;
        }
        x = (640 - width)/2;
        y = 0;
        if (screen)
        {
                x = (screen.availWidth - width)/2;
        }
        if (screen.availWidth > 1800)
        {
                x = ((screen.availWidth/2) - width)/2;
        }
        window.open(pUrl,'','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',scrollbars=yes,status=yes,toolbar=yes,resizable=yes');
        //auf wunsch von AE raus. self.close();
}

// Fenster mit "normalem aussehen" &ouml;ffnen, aus der grafischen Produkt&uuml;berischt.
function open0815window(pUrl)
{
        height = screen.availHeight - 100;
        width = screen.availWidth * 0.8;
        if (screen.availWidth > 1800)
        {
        width = width/2;
        }
        x = (640 - width)/2;
        y = 0;
        if (screen)
        {
                x = (screen.availWidth - width)/2;
        }
        if (screen.availWidth > 1800)
        {
                x = ((screen.availWidth/2) - width)/2;
        }
        window.open(pUrl,'','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',scrollbars=yes,status=yes,toolbar=yes,resizable=yes');
}