function s_termine(kenner_id){
    part=regionen_2[kenner_id].split('#');
    window.location.href=uebergabe+'&IFF='+part[6]+'&zielgebiets_kenner='+part[19]+'&detail=termine&anzahl_treffer_gesamt='+part[22]+'&startposition_zielgebiet='+part[24]+'&showresult='+part[25]+'&startposition_hotel='+part[26];
}
function zur_suche(showresult){
    window.location.href=uebergabe+'&zielgebiets_kenner=-1&showresult='+showresult;
}
function zum_zielgebiet(showresult){
    spr=(regionen_2.length>0)?regionen_2[0].split('#')[24]:0;
    window.location.href=uebergabe+'&zielgebiets_kenner=-1&detail=zielgebiet&showresult='+showresult+'&startposition='+spr;
}
function skippen(zaehler){
    part=regionen_2[0].split('#');
    window.location.href=uebergabe+'&detail=hotel&startposition='+zaehler+'&zielgebiets_kenner='+part[19]+'&showresult='+part[25]+'&Laender_Ref_ID='+part[7]+'&startposition_zielgebiet='+part[24]+'&uebergabe_zielgebiet='+part[20]+'&anzahl_treffer_gesamt='+part[22];
}
function ortsucher(ort){
    part=regionen_2[0].split('#');
    window.location.href=uebergabe+'&detail=hotel&startposition=0&zielgebiets_kenner='+part[19]+'&showresult='+part[25]+'&Laender_Ref_ID='+part[7]+'&startposition_zielgebiet='+part[24]+'&uebergabe_zielgebiet='+part[20]+'&anzahl_treffer_gesamt='+part[22]+'&s_ort='+ort;
}
function s_hotel_tabelle(rart,hliste,pfad_images)
{
   if(regionen_2.length <= 0) {}
   else
   {
        for(i=0;i<regionen_2.length;i++)
        {
            parts=regionen_2[i].split("#");
            if (parts[17]=='1'){
                document.write('<tr>');
                document.write('<td class="altersatz" height="20" colspan="9" align="center"><br>Es konnten keine '+rart+' gefunden werden,<br> ');
                document.write('die zu 100% mit Ihren Wünschen übereinstimmen.<hr></td>');
                document.write('</tr>');
            }
            if (parts[18]=="1"){
                document.write('<tr>');
                document.write('<td class="altersatz" height="20" colspan="9">&nbsp;Alternative Reiseangebote die Ihren Wünschen nahe kommen:</td>');
                document.write('</tr>');
            }
            document.write('<tr>');
            document.write('<td class="liniehotel" colspan="9"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('</tr>');
            document.write('<tr>');
            document.write('<td class="liniehotel"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('<td class="liniehotel2" colspan="7"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('<td class="liniehotel"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('</tr>');

            document.write('<tr>');
            document.write('<td class="liniehotel"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('<td class="liniehotel2"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('<td class="'+parts[0]+'" colspan="3">');
            document.write('&nbsp;<b>'+parts[1]+'. Angebot '+parts[2]+'</b>');
            document.write('</td>');
            document.write('<td class="'+parts[0]+'" colspan="2" align="right">');
            document.write('<a href="javascript:s_termine('+i+');" class="hpreis">ab '+parts[4]+',-&euro;</a>&nbsp;&nbsp;&nbsp;');
            document.write('</td>');
            document.write('<td class="liniehotel2"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('<td class="liniehotel"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('</tr>');

            document.write('<tr>');
            document.write('<td class="liniehotel"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('<td class="liniehotel2"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('<td class="'+parts[5]+'" align="right" valign="bottom"><a href="javascript:oHIB(\''+parts[6]+'\',\''+parts[6]+'\',\''+parts[7]+'\',\'1\',\'\',\'\',\''+parts[8]+'\',\''+parts[28]+'\',\'\',\'\',\'\',\'\',\'\',\'hotel\');" title="Hotel- und Leistungsbeschreibungen aufrufen">');
            np=String(parseInt(parts[6]/5000)*5000);
            while(np.length<5)np="0"+np;
            document.write('<img src="'+thumbf+'/images/content/booking_thumbs/'+np+'/THB_999_H'+parts[6]+'.jpg" height="65" width="100" alt="Hotel- und Leistungsbeschreibungen abrufen" border="0">');
            //document.write('<img src="'+parts[9]+'" height="65" width="100" alt="Hotel- und Leistungsbeschreibungen abrufen" border="0">');
            document.write('</td>');
            document.write('<td class="'+parts[5]+'"><img src="/images/spacer.gif" alt="" border="0" width="3" height="60"></td>');
            document.write('<td class="'+parts[5]+'" valign="top">');
            document.write('<span class="hname">'+parts[10]+'</span>');
            document.write('<br>');
            for (t=1; t<=parts[11]; t++){
                document.write('<img src="'+pfad_images+'/1stern.gif" alt="" border="0">');
            }
            if (parts[12]=='5'){
                document.write('<img src="'+pfad_images+'/stern_halb.gif" alt="" border="0">');
            }
            document.write('<br>'+parts[13]+parts[14]+'</td>');
            document.write('<td class="'+parts[5]+'" align="center">Übereinstimmung mit<br>Ihren Urlaubswünschen:<br>');
            document.write('<img src="/images/spacer.gif" alt="" border="0" width="110" height="5"><br>');
            document.write('<img src="'+pfad_images+'/'+parts[16]+'" alt="" border="0" width="134" height="22">');
            document.write('</td>');
            document.write('<td class="'+parts[5]+'" valign="bottom" align="right"><a href="javascript:s_termine('+i+');"><img src="'+pfad_images+'/hotelinfo_buchen.gif" border="0" alt="" vspace="6"></a></td>');
            document.write('<td class="liniehotel2"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('<td class="liniehotel"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('</tr>');
            document.write('<tr>');
            document.write('<td class="liniehotel"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('<td class="liniehotel2" colspan="7"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('<td class="liniehotel"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('</tr>');
            document.write('<tr>');
            document.write('<td class="liniehotel" colspan="9"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
            document.write('</tr>');
            if(i!=(regionen_2.length-1)){
            document.write('<tr>');
            document.write('<td class="normal" colspan="9"><img src="/images/spacer.gif" alt="" border="0" width="1" height="10"></td>');
            document.write('</tr>');
            }

        }
   }
}
function pageSkip(seiten,apage){
    for (t=1;t<=seiten;t++)
    {
        zaehler=(t-1)*10;
        if(t!=apage)
           document.write('<a href="javascript:skippen('+zaehler+');" class="pagex" title="Angebote der Seite '+t+' abrufen"><b>'+t+'</b></a>&nbsp;&nbsp;');
        else
            document.write('<b>'+t+'</b>&nbsp;&nbsp;');
    }
}

