//function openPrintWindow for Printversion
function openPrintWindow() {
			var winHeight= 500;
			var winWidth=740;
			var myWin = window.open("","PRINTVERSION","height=" + winHeight.toString() + ",width=" + winWidth.toString() + ",resizable=yes,scrollbars=yes,status=yes,toolbar=yes")				
			myWin.focus();
}

//function addbookmark for bookmarking page
function addbookmark(bookmarkurl, bookmarktitle){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

// Function Get Focus for virtual breweries
function GetFocus() {
  if(window.focus != null)window.focus();
}

//function MM_openBrWindow for virtual breweries
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

WINDOW_WIDTH1 = "500";
WINDOW_HEIGHT1 = "400";
WINDOW_PROPERTIES1  = "scrollbars=1,status=0,";
WINDOW_PROPERTIES1 += "width="+WINDOW_WIDTH1+",height="+WINDOW_HEIGHT1+"'";


// function OpenPressImageWindow for POPUP Pressimage
function OpenPressImageWindow (myurl,name,wd,ht) {
	var imgH=ht + 40;
	var imgW=wd + 170;	
	var myurl = myurl + '&height=' + ht.toString() + '&width=' + wd.toString();	
	myWindow = window.open(myurl,name,"height=" + imgH.toString() + ",width=" + imgW.toString() + ",resizable=yes,scrollbars=no,status=no,toolbar=no");
	myWindow.close;
    myWindow = window.open(myurl,name,"height=" + imgH.toString() + ",width=" + imgW.toString() + ",resizable=yes,scrollbars=no,status=no,toolbar=no");
    imgH=imgH+30
    imgW=imgW+15
    myWindow.resizeTo(imgW,imgH);    
}

//Popup Funktion Window für Windows Media Files
function openMovie(URL)
{
openAWindow(URL,'CAESAR','width=300,height=270');	
}

//Popup Funktion Window für Fotogallerie
function openFotogallerie(URL)
{
openAWindow(URL,'CAESAR','width=710,height=640');	
}
function openAWindow ( location, index, features ) {
	myWindow = window.open('',index,features); 
	myWindow.close();
	myWindow = window.open('',index,features); 
	myWindow.document.location.href=location;
	myWindow.focus();
}
