function s_hliste(zk,udfreg,kenner_name,actRegList){
    var thisUdfReg = '';
    part=kenner_name.split(' - ');
    if(typeof(part[1]) != 'undefined' && part[1]!='') {
         var tt_nb_title=part[0].replace("&", "%26")+'0tt0'+part[1].replace("&", "%26");
         var tmp_title = part[1].replace("&", "%26");
    }
    else {
         var tt_nb_title=part[0].replace("&", "%26");
         var tmp_title = '';
    }

    if ( typeof(udfreg) != 'undefined' && udfreg!= '')
        thisUdfReg = '&udfregionen='+escape(udfreg);
    
    var str_uebergabe = '';
    if (actRegList == 0)
        str_uebergabe = uebergabe_hotel_0;
    else if (actRegList == 1)
        str_uebergabe = uebergabe_hotel_1;
    else if (actRegList == 2)
        str_uebergabe = uebergabe_hotel_2;
    window.location.href=t3url+str_uebergabe+'&zielgebiets_kenner='+zk+'&detail=hotel&showresult=1'+thisUdfReg+'&tt_nb_title='+tt_nb_title+'&temp_title_hotel='+tmp_title;
}

//_______________________________________________________________________________

/*function zur_suche(showresult){
    if (uebergabe_suchestart) {
        window.location.href=t3url+uebergabe_suchestart+'&showresult='+showresult;
    }
    else {
        window.location.href=t3url+uebergabe_hotel+'&showresult='+showresult;
    }
}*/

//_______________________________________________________________________________

function s_liste_tabelle(actRegList)
{
    var thisdetail='hotel';
    var linienchecker = 0; //zähler für zwischenlinien
    var co=0;
    var shtml = "";  
    var greyBord = '';  
    var topText = 'Toutes nos destinations pour un départ dans ';   
    
    var regionen_2 = new Array();
    var n_ctop=0;
    var n_calt=0;
    if (actRegList == 0){
        regionen_2 = regionen_2.concat(regionen_2_0); 
        n_ctop = n_ctop_0;
        n_calt = n_calt_0;
        topText+= 'la semaine';
    }
    else if (actRegList == 1) {
        regionen_2 = regionen_2.concat(regionen_2_1);
        n_ctop = n_ctop_1;
        n_calt = n_calt_1;
        topText+= 'les 2 semaines';
    }
    else if (actRegList == 2) {
        regionen_2 = regionen_2.concat(regionen_2_2);
        n_ctop = n_ctop_2;
        n_calt = n_calt_2;
        topText+= 'les 3 semaines';
    }

    var irt=0;
    for(i=0;i<regionen_2.length;i++)
    {
        parts_2=regionen_2[i].split("#");

        if(parts_2[1] < 40000){

            //---Region fuer top treffer sichern
            if(parts_2[3]==''){
                var tmpzg = new Array(regionen_2[i]);
                co=1;
            }
    
            //---Ausgabe der top treffer
            if(parts_2[6]==0){
                if(co==1){
                    tmp=String(tmpzg);
                    parts_2=tmp.split("#") ;
                    co=0;
                    i--;
                }
                //Ausgabe der Region
                if(parts_2[3]=='' && parts_2[2]=='' && parts_2[4]==''){                 
                    
                    if (shtml != ''){
                        //Zahl Hotels
                        shtml+= '   <td class="tt_sp_colB tt_sp_padtop" align="right" valign="top">';                    
                        var showHotelNr = ' hôtels';
                        if(cntHotels=="1"){
                            showHotelNr = ' hôtel';
                        }
                        shtml+= '       <div class="tt_spLine tt_sp_font1 tt_sp_padleft tt_sp_padright">'+cntHotels+showHotelNr+'</div>';
                        shtml+= '   </td>';
                        //Preis
                        shtml+= '   <td class="tt_sp_colC tt_sp_padtop2" align="right" valign="top">';
                        shtml+= '       <div class="tt_sp_partir">à partir de</div>';                    
                        shtml+= '       <div class="tt_sp_euro tt_sp_padright" style="text-align:right;margin-right:1px;">'+strPrice+'<span style="font-size:11px;">&euro;</span>&nbsp;<span style="font-size:11px;">TTC</span></div>';
                        shtml+= '   </td>';                    
                        shtml+= '</tr></table>';
                        
                        document.write(shtml);                        
                    }  
                    
                    if (linienchecker==0){
                        //Kopf
                        shtml = '';
                        shtml+= '<div class="tt_sp_tab_imghead"><img src="'+pfad_images+'/spec_leiste_oben.gif" alt="" border="0" width="298" height="5"></div>';
                        shtml+= '<div class="tt_sp_topborder">';
                        shtml+= '   <div class="tt_sp_toptxt">'+topText+'</div>';
                        shtml+= '   <div class="tt_sp_topline"><img src="'+pfad_images+'/spacer.gif" alt="" border="0" width="284" height="1"></div>';
                        shtml+= '</div>';
                        shtml+= '<div class="tt_sp_verlauf">';
                        document.write(shtml);
                    }
                    
                    irt=1;
                    shtml = '';                     
                    var cntHotels = 0;
                    var strPrice = '';
                    var showRegionName = "";
                    var tmp_reg="";
                    var count_regionLength = parts_2[0].length;
                    if (count_regionLength > 17){
                        showRegionName = editSpecialChars(parts_2[0].substr(0, 17));
                        showRegionName += "...";
                        tmp_reg=parts_2[0].substr(0, 14)+"...";
                    }
                    else{
                        showRegionName = editSpecialChars(parts_2[0]);
                        tmp_reg=parts_2[0];
                    }
                    if (linienchecker > 0){
                        greyBord = ' tt_sp_topBord';
                    }
    
                    shtml+= '<table class="tt_spAreaIn" cellpadding="0" cellspacing="0" border="0" title="'+parts_2[0]+'" onClick="s_hliste('+parts_2[1]+', \''+this_udfRegionen+'\',\''+showRegionName+'\',\''+actRegList+'\');">';                 
                    if (greyBord != ''){
                        shtml+= '<tr><td colspan="3"><div class="tt_sp_padleft tt_sp_padright"><div class="tt_sp_topBord"><img src="'+pfad_images+'/spacer.gif" alt="" border="0" width="1" height="1"></div></div></td></tr>';
                    }
                    shtml+= '<tr><td class="tt_sp_colA tt_sp_padtop tt_sp_padleft" valign="top">';
                    shtml+= '           <div class="tt_spLine tt_sp_font1">';                    
                    shtml+= showRegionName;                      
                    shtml+= '           </div>';                
                    shtml+= '           <div class="tt_spLine tt_sp_font2">au départ de '+actDepart+'</div>';
                    shtml+= '   </td>';
                                    
                    linienchecker ++;                       
                    
                }
                //Ausgabe der Zielgebiete in der Region
                else{                 
                    if (cntHotels==0)
                        strPrice = parts_2[4];
                    cntHotels+=parseInt(parts_2[2]);                  
                    irt=0;                      
                }
    
            }//top treffer ausgabe
            
        }

    }//for
    
    if (shtml != ''){
        //Zahl Hotels
        shtml+= '   <td class="tt_sp_colB tt_sp_padtop" align="right" valign="top">';                    
        var showHotelNr = ' hôtels';
        if(cntHotels=="1"){
            showHotelNr = ' hôtel';
        }
        shtml+= '       <div class="tt_spLine tt_sp_font1 tt_sp_padleft tt_sp_padright">'+cntHotels+showHotelNr+'</div>';
        shtml+= '   </td>';
        //Preis
        shtml+= '   <td class="tt_sp_colC tt_sp_padtop2" align="right" valign="top">';
        shtml+= '       <div class="tt_sp_partir">à partir de</div>';                    
        shtml+= '       <div class="tt_sp_euro tt_sp_padright" style="text-align:right;margin-top:1px;">'+strPrice+'<span style="font-size:11px;">&euro;</span>&nbsp;<span style="font-size:11px;">TTC</span></div>';
        shtml+= '   </td>';                    
        shtml+= '</tr></table>';
        
        document.write(shtml);                        
    } 
    //Fuss
    shtml = '';    
    shtml+= '   <div class="tt_sp_tab_imgfoot"><img src="'+pfad_images+'/spec_leiste_unten.gif" alt="" border="0" width="298" height="5"></div>';
    shtml+= '</div>';
    document.write(shtml);

}

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;
    
}
