// system message - if 'system_msg_str' is set from outside, it is displayed
// for non-JavaScript Browsers, you should embed the message additionaly
// in a <noscript> tag.
//
// (C) 2000-2001 ctnm, Hamburg
// if you steal our code, don't ask for help.
//
// smart popup function, works with or without JavaScript.
// use in a link as follows:
//
//   <a href="dest.html"
//      target="SHPopup"
//      onclick="OpenPopup(this.href); return false;">
//
// with:
// dest.hmtl - the destination URL
//
// so, if JavaScript is disabled, "dest.html" is opened in a new main window.
// if JavaScript is available, a popup is opened using the function
// OpenPopup() in "onclick".
//
// to avoid default anchor processing, "false" is returned from "onclick". as
// some JavaScript implementations don't regard the return value, the page
// in the popup windows may be loaded twice...
//
// (C) 2000-2001 ctnm, Hamburg
// if you steal our code, don't ask for help.
//
function OpenMain(cUrl)
{
    // open new window;
    // no spaces in string, bug in function window.open()
    var cWindow = window.open(cUrl,"SHMain","height=600,width=800,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=1,fullscreen=0,hotkeys=0,location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1");

    // bring window to top
    if( !cWindow.opener )
    {
    	cWindow.opener = self;
    }

    if( cWindow.focus != null )
    {
    	cWindow.focus();
    }
}

function OpenPopup(cUrl)
{
    // open new window;
    // no spaces in string, bug in function window.open()
    var cWindow = window.open(cUrl,"SHPopup","width=320,height=400,resizable=yes,scrollbars=yes");

    // bring window to top
    if( !cWindow.opener )
    {
    	cWindow.opener = self;
    }

    if( cWindow.focus != null )
    {
    	cWindow.focus();
    }
}

function OpenGlossar(cUrl)
{
    // open new window;
    // no spaces in string, bug in function window.open()
    var cWindow = window.open(cUrl,"SHGlossar","width=410,height=500,status=no,scrollbars=yes,resizable=no,screenX=20,screenY=40,left=20,top=40");

    // bring window to top
    if( !cWindow.opener )
    {
    	cWindow.opener = self;
    }

    if( cWindow.focus != null )
    {
    	cWindow.focus();
    }
}

function OpenPDF(cUrl)
{
    // open new window;
    // no spaces in string, bug in function window.open()
    var cWindow = window.open(cUrl,"SHPdf","width=640,height=480,status=no,scrollbars=yes,resizable=yes,screenX=20,screenY=40,left=20,top=40");

    // bring window to top
    if( !cWindow.opener )
    {
    	cWindow.opener = self;
    }

    if( cWindow.focus != null )
    {
    	cWindow.focus();
    }
}

function OpenPress(cUrl)
{
    // open new window;
    // no spaces in string, bug in function window.open()
    var cWindow = window.open(cUrl,"SHPress","width=480,height=540,resizable=yes,scrollbars=yes");

    // bring window to top
    if( !cWindow.opener )
    {
    	cWindow.opener = self;
    }

    if( cWindow.focus != null )
    {
    	cWindow.focus();
    }
}

function OpenSiteMap(cUrl)
{
    // open new window;
    // no spaces in string, bug in function window.open()
    var cWindow = window.open(cUrl,"SHMap","width=400,height=600,resizable=yes,scrollbars=yes,screenX=0,screenY=0,left=0,top=0");

    // bring window to top
    if( !cWindow.opener )
    {
    	cWindow.opener = self;
    }

    if( cWindow.focus != null )
    {
    	cWindow.focus();
    }
}

function OpenWin(cUrl,nWidth,nHeight,cMenu,cStatus,cLocation,cTool,cDependent)
{
    // open new window;
    // no spaces in string, bug in function window.open()
    var cWindow = window.open(cUrl,"SHWin","width="+nWidth+",height="+nHeight+",menubar="+cMenu+",status="+cStatus+",location="+cLocation+",toolbar="+cTool+",dependent="+cDependent+",resizable=yes,scrollbars=yes,screenX=20,screenY=20,left=20,top=20");

    // bring window to top
    if( !cWindow.opener )
    {
    	cWindow.opener = self;
    }

    if( cWindow.focus != null )
    {
    	cWindow.focus();
    }
}

//****************************************************************************************************************
// VARIABLEN FUER DIE ZITIEREMPFEHLUNG VORBEREITEN
//****************************************************************************************************************
//
heute       = new Date();
jahr        = heute.getYear();
WochentagNr = heute.getDay();

// deutsche Tageskuerzel
var WochentagAlpha = new Array("Son","Mon","Die","Mit","Don","Fre","Sam");

// englische Monatskuerzel passend zu Server Side Includes
var aMonat = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");

// deutsche Monatskuerzel fuer spaeter :-)
// var aMonat = new Array("Jan","Feb","Mae","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez");
// fuer Internet Explorer muss es (jahr <= 100) heissen!!! Lo, 3.4.2001
if((document.layers || document.getElementById) && jahr < 1900)
jahr+=1900;
monat = heute.getMonth()+1;
tag   = heute.getDate();
// Zerlegung der URL, um die URL des dynamischen Framesets zu reproduzieren.
// Dafuer muss 'index2.html?rf=ko" in die URL des Zitats eingebaut werden.

datei = document.URL;

//****************************************************************************************************************
// ZITIEREMPFEHLUNG GENERIEREN
//****************************************************************************************************************
zitat = "";
hrsg = "Institut F&uuml;r Finanzdienstleistungen e.V. [Hamburg]: ";
hst = "Web Site";
zitat = hrsg + hst + zitat;
zitat = zitat + ". - <br>URL: ";
zitat = zitat + "<a href="+datei+">"+datei+"</a>";
zitat = zitat + ". - Geladen am: "+tag+"-"+aMonat[monat-1]+"-"+jahr;


