function popup(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=600,height=300,left = 300,top = 150');");
}
function popupBooking(URL) {
 day = new Date();
 id = day.getTime();
 var width1 = 1012;
 var height1 = 450;
 var left = (screen.width-width1)/2;
 var top = (screen.height-height1)/2;
 // eval("page"+id+"=window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width="+width1+",height="+height1+",left="+left+",top="+top+"');");
}
function test(lang){
 test1(lang);
}
function test1(lang){
 var wina = (screen.width - 1020) / 2 + 32;
 var winb = (screen.height - 496) / 2 - 16;
 var tess = window.open('','blank','top='+winb+',left='+wina+',width=400,height=200');
 tess.resizeTo(1020,496);
 tess.moveTo(winb,wina);
 tess.status=1;
 tess.focus();
 var page=""+
 "<html>"+
 "<head>"+
 "<title>Slusegaard.dk</title>"+
 '<meta http-equiv="refresh" content="0;url=booking.php?lang='+lang+'">'+
 "</head>"+
 "<body>"+
 "<center><a href=\"booking.php?lang=\"" + lang + "><img src=\"booking_link_"+lang+".jpg\" border=\"0\"></a></center>"
 "</body>"+
 "</html>"
  tess.document.open();
  tess.document.write(page);
  tess.document.location.href='booking.php?lang='+lang;
}

