    /***********************************************************************************************************
    *   JavaScript 
    * 
    *   Modulname       :   js.js
    *   Author(s        :   Patrice Huber
    *   Copyright       :   @.exe multimedia
    *   Created         :   15.04.2008
    *   Modifier        :   
    *   Modified        :   
    *   Description     :   JavaScript Funktionen
    ***********************************************************************************************************/

    var AltTagId;                                                                                               // Globale Variabel ( Benötigt in Funktion ChangeCSS )
    AltTagId = "img00";

    /**********************************************************************************************************/
    // Wechselt den Inhalt eines Tag ( IMG SRC wird geändert )
    function ChangeImage( DateiName, Breite )
    {
        if( Img = document.getElementById("IMGgross") ) {
            Img.src = DateiName;
            Img.style.width =   Breite + "px";
        }
    }
    /**********************************************************************************************************/

    /**********************************************************************************************************/
    // Wechselt die CSS-Style eines Tag 
    function ChangeCSS( AktTagId )
    {
        if( AltTag = document.getElementById(AltTagId) ) {
            AltTag.style.border = "2px solid #FFFFFF";
        }
        
        if( AktTag = document.getElementById(AktTagId) ) {
            AktTag.style.border = "2px solid #AB0515";
        }
    }
    /**********************************************************************************************************/
    
    /**********************************************************************************************************/
    function schatten()
    {
        var cntHeight = document.getElementById('CONTENT').offsetHeight;
        var infoHeight = document.getElementById('INFO').offsetHeight;
        if (cntHeight < 320)
        {
            cntHeight = 320;
            document.getElementById('CONTENT').style.height = cntHeight + 'px';
            document.getElementById('SCHATTENLE').style.height = cntHeight + 62 + 'px';
            document.getElementById('SCHATTENRI').style.height = cntHeight - 42 + 'px';
    
        } 
        else
        {
            document.getElementById('CONTENT').style.height = 'auto';           
            document.getElementById('SCHATTENLE').style.height = cntHeight + 'px';
            document.getElementById('SCHATTENRI').style.height = cntHeight - 104 + 'px';    
            document.getElementById('SCHATTENINFORI').style.height = infoHeight + 'px';
        }
    }
    /**********************************************************************************************************/

    /**********************************************************************************************************/
    function schattenstart()
    {
        var cntHeight = document.getElementById('CONTENTSTART').offsetHeight;
        var infoHeight = document.getElementById('INFO').offsetHeight;
        document.getElementById('SCHATTENLE').style.height = cntHeight + 'px';
        document.getElementById('SCHATTENRI').style.height = ( cntHeight + 126 ) + 'px';
        document.getElementById('SCHATTENINFORI').style.height = infoHeight + 'px';
    }
    /**********************************************************************************************************/
        /**************************************************************************************************************/
    // ersetzt getElementById
    function get( ID ) {
        return document.getElementById( ID );   
    }
    /**************************************************************************************************************/
    
    /**************************************************************************************************************/
    // Tag wird angezeigt bzw. ausgeblendet
    function DisplayTag( TagId )
    {
        if( Obj = get( TagId ) )                                                                                    // Get = getElementById => sieht funkction get() weiter oben
        {
        
            if( Obj.style.display == 'none' ) 
            {
                Obj.style.display = 'block';
            }
            else
            {
                Obj.style.display = 'none';
            }
        }
    }
    /**************************************************************************************************************/
    function changeBG( Objekt ) {
        Obj = document.getElementById( Objekt );
        if( Obj.className == 'Aktuelles_out' ) {
            Obj.className   =   'Aktuelles_over';
        }
        else{
            Obj.className = 'Aktuelles_out';

        }

    }
    /**************************************************************************************************************/
function reloadPage(){
        Link    =   location.href;
        Link2   =   Link.split( "&idform" );
        Link    =   Link2[ 0 ];
        location.href   =   Link;
}
    /**************************************************************************************************************/
function pruefungReise( befehl ){
    var check = confirm( "Haben Sie alle Eintragungen der Seite gespeichert? Wenn ja bestätigen Sie mit ok, denn die Seite wird nun neu geladen" );
    if(check == true){
        Link    =   location.href;
        location.href   =   Link + "&idform=" + befehl;
    }
}
    /**************************************************************************************************************/
function reloadPageContact( befehl ){
        Link    =   location.href;
        location.href   =   Link + "&bedingung=" + befehl;
}
    /**************************************************************************************************************/
function popUp (Adresse, dir) {
  MeinFenster = window.open(Adresse + "?dir=" + dir, "Zweitfenster", "width=1000,height=1000,left=100,top=200,location=no");
  MeinFenster.focus();
}
