/* ======================================= */
/* === Rahmenfunktion für die Webseite === */
/* ======================================= */

                function ZweiFrames(URL1,F1,URL2,F2)
                 {
                        parent.frames[F1].location.href=URL1;
                        parent.frames[F2].location.href=URL2;
                 }

                function DreiFrames(URL1,F1,URL2,F2,URL3,F3)
                 {
                        parent.frames[F1].location.href=URL1;
                        parent.frames[F2].location.href=URL2;
                        parent.frames[F3].location.href=URL3;
                 }


/* ================== */
/* === Bild-PopUp === */
/* ================== */

function ViewImage(bildurl,b,h,bildtitel){
        var eigenschaft,sbreite,shoehe,fenster,b,h;        // stellt die Bildschirmabmessungen fest
                var ns6 = (!document.all && document.getElementById);
                var ie4 = (document.all);
                var ns4 = (document.layers);
        if(ns6||ns4)
                {
                sbreite = innerWidth;
                shoehe = innerHeight;
                }
        else if(ie4)
                {
                sbreite = document.body.clientWidth;
                shoehe = document.body.clientHeight;
                }

        x = (sbreite-b)/2;
        y = (shoehe-h)/2;
        eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";
        fenster=window.open("","",eigenschaften);
        fenster.focus();
        fenster.document.open();
        with (fenster)
                {
          document.write('<html><head>');
          document.write("<script type='text/javascript' language='JavaScript'>");
          document.write("function click() { window.close(); } "); // bei click schliessen
          document.write("document.onmousedown=click ");
          document.write("</script>");
          document.write('<title>'+ bildtitel +'</title></head>'); // Zeile geändert Aug 2003 (Dreamweaver machte Probleme)
          document.write('<' + 'body onblur="window.close();" ');  // bei Focusverlust schliessen
          document.write('marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
          document.write('<center>');
          document.write('<img src="'+ bildurl +'"border="0">');
          document.write('</center>');
          document.write('</body></html>');
          fenster.document.close();
                }
}


/* ========================== */
/* === Versteckte Antwort === */
/* ========================== */

function answer(obj){window.status=''}



/* ================================= */
/* === Detailbereiche verstecken === */
/* ================================= */

function text_ein(i)
        {
                document.getElementById("detail"+i).style.display = "block";
                document.getElementById("zeigen"+i).style.display = "none";
        }

function text_aus(i)
        {
                document.getElementById("detail"+i).style.display = "none";
                document.getElementById("zeigen"+i).style.display = "block";
        }
