/**             1       2             3          4       5           6         7      8       9       10       11      12       13          14         15     16 	  17  18    19   20    21 	**/
function openHotelInfoBox(IFF,fenstername,Laender_Ref_ID,start,veranstalter,Kenner_Nav,sterne,season,startva,CRS_CODE,Reiseart,PG_Art,Zimmercode,RequestArt,Ski_Ref_ID,AF,ZF,engine,HNAME,CHANGE_HID)
{
    
	var hib_filepath="content_page_premium/index.php";
	var hib_url="http://cp.traveltainment.de/";
	var HID = "625640";
	var hib_width=665;
	var hib_height=646;
	var re = new RegExp("^([0-9]+)$");
   
	/*	infobox ist nicht https-sicher da googleanalytics ohne https eingebunden wird
	var loc = new String(window.parent.document.location);
	if (loc.indexOf("https://")!= -1) { 
		hib_url="https://cp.traveltainment.de/";
	}
*/	
    if(sterne==0 || engine=="fewo") sterne="";
    var s=String(sterne);
    s=s.replace(/\./,",");
    if(typeof(season)!='undefined'){
        
        if (season.match(re)) {
            var d=new Date();
            d.setTime(season * 1000);
        } else {
            var d=new Date(season);
        }
        mon = d.getMonth()+1;
        if(mon > 4 && mon < 11)sson="s";
        else sson="w";
    }
    else{
        sson="";
    }
    fenstername=fenstername.replace(/-/g,'');

    if(typeof(startva)=='undefined')startva="";
    if(typeof(RequestArt)=='undefined')RequestArt="";
    if(typeof(Reiseart)=='undefined')Reiseart="";
    if(typeof(PG_Art)=='undefined')PG_Art="";
    if(typeof(Zimmercode)=='undefined')Zimmercode="";
    if(typeof(Ski_Ref_ID)=='undefined')Ski_Ref_ID="";
    if(typeof(AF)=='undefined')AF="";
    if(typeof(ZF)=='undefined')ZF="";
    if(typeof(engine)=='undefined')engine="";
    if(typeof(HNAME)=='undefined')HNAME="";
    if(typeof(country_kenner)=='undefined')lang="";
    else lang=country_kenner;
    if(typeof(CRS_CODE)=='undefined')CRS_CODE="";
    if(typeof(hib_width) == 'undefined') hib_width=610;
    if(typeof(hib_height) == 'undefined') hib_height=465;
    if(typeof(hib_filepath) == 'undefined') hib_filepath="content_page_premium/index.php";
    if(typeof(season) == 'undefined') season="";

    var infowin = window.open(hib_url+hib_filepath+"?KID="+HID+"&IFF="+IFF+"&Reiseart="+Reiseart+"&PG_Art="+PG_Art+"&Zimmercode="+Zimmercode+"&RequestArt="+RequestArt+"&Laender_Ref_ID="+Laender_Ref_ID+"&START="+start+"&VA="+veranstalter+"&Kenner_Nav="+Kenner_Nav+"&KAT="+s+"&season="+sson+"&startva="+startva+"&lang="+lang+"&CRS_CODE="+CRS_CODE+"&Ski_Ref_ID="+Ski_Ref_ID+"&AF="+AF+"&ZF="+ZF+"&engine="+engine+"&HNAME="+HNAME+"&timestamp="+Math.round(d.getTime()/1000),fenstername,"width="+hib_width+",height="+hib_height+",scrollbars=yes");
    infowin.focus();
}

