    function seiten_replace(repl_vars){
        location.replace('index.php?'+repl_vars);
    }
    
    //_______________________________________________________________________________
    
    function write_hiddenFields(){
        for(i=0;i<TTHidFields.length;i++)
        {
            parts=TTHidFields[i].split("#TT#");
            document.write('<input type="hidden" name="'+parts[0]+'" value="'+parts[1]+'">');
        }
    }
    
    //_______________________________________________________________________________
    
    function TrT_onL(){
        if(detail=="termine"){
            document.bengine.detail.value='termine';
        }
        if(detail=="aktion"){
            seiten_replace(repl_vars);
        }
    }

    function editSpecialChars(theText) {

        theText = theText.replace(/[àáâ]/g,"a");
        theText = theText.replace(/[ÀÁÂ]/g,"A");
        theText = theText.replace(/[èéê]/g,"e");
        theText = theText.replace(/[ÈÉÊ]/g,"E");
        theText = theText.replace(/[ìíîï]/g,"i");
        theText = theText.replace(/[ÌÍÎ]/g,"I");
        theText = theText.replace(/[òóô]/g,"o");
        theText = theText.replace(/[ÒÓÔ]/g,"O");
        theText = theText.replace(/[ùúû]/g,"u");
        theText = theText.replace(/[ÙÚÛ]/g,"U");
        theText = theText.replace(/[\.]/g,"");
        theText = theText.replace(/\</g,"max");
        //theText = theText.replace(/[^a-zA-Z0-9\s]/g, "_") ;
        theText = theText.replace(/\'/g,"\\'");

        return theText;

    }

