
var wndhr = 0;
function onOpenPopupEx( uuid, width, height, fscroll, bprint, btop, bclose )
{
   // if(wndhr.close) wndhr.close();
	if(wndhr && wndhr.closed==false) wndhr.close();   
	var top = 100;
	var left = 100;
	var target = "Popup_" + uuid;
	var url = "/index.cfm?uuid=" + uuid + "&width=" + width + "&height=" + height + "&fscroll=" + fscroll + "&bprint=" + bprint + "&btop=" + btop +"&bclose=" + bclose;		
  	wndhr = window.open( url , target , "screenX=" + top + ",screenY=" + left + ",top=" + top +",left=" + left + ",width=" + width + ",height=" + height + ",dependent=yes,hotkeys=no,locationbar=no,menubar=yes,resizable=no,scrollbars=no");
	wndhr.moveTo(top,left);
	wndhr.focus();
}
function onOpenPopupFo( path, width, height)
{
   // if(wndhr.close) wndhr.close();
	if(wndhr && wndhr.closed==false) wndhr.close();   
	var top = 50;
	var left = 50;
	var target = "Popup";
	var url = path;		
  	wndhr = window.open( url , target , "screenX=" + top + ",screenY=" + left + ",top=" + top +",left=" + left + ",width=" + width + ",height=" + height + ",dependent=yes,hotkeys=no,locationbar=yes,menubar=yes,resizable=yes,scrollbars=no");
	wndhr.moveTo(top,left);
	wndhr.focus();
}
/*Fragebogen Aesculap */
function onOpenPopupFb( path, width, height)
{
   // if(wndhr.close) wndhr.close();
	if(wndhr && wndhr.closed==false) wndhr.close();   
	var top = 40;
	var left = 40;
	var target = "Popup";
	var url = path;		
  	wndhr = window.open( url , target , "screenX=" + top + ",screenY=" + left + ",top=" + top +",left=" + left + ",width=" + width + ",height=" + height + ",dependent=yes,hotkeys=no,locationbar=yes,menubar=yes,resizable=no,scrollbars=yes");
	wndhr.moveTo(top,left);
	wndhr.focus();
}
/* Kontakt */
function onOpenPopupKo( path, kontakt_id, width, height)
{
   // if(wndhr.close) wndhr.close();
	if(wndhr && wndhr.closed==false) wndhr.close();   
	var top = 100;
	var left = 100;
	var target = "Popup";
	var url = path+"&kontakt_id="+kontakt_id;	
	//alert(url);	
  	wndhr = window.open( url , target , "screenX=" + top + ",screenY=" + left + ",top=" + top +",left=" + left + ",width=" + width + ",height=" + height + ",dependent=yes,hotkeys=no,locationbar=yes,menubar=yes,resizable=yes,scrollbars=no");
	wndhr.moveTo(top,left);
	wndhr.focus();
}
/* Kontakt für Microsites -Footer-*/
function onOpenPopupKo2( path, kontakt_id, width, height)
{
   // if(wndhr.close) wndhr.close();
	if(wndhr && wndhr.closed==false) wndhr.close();   
	var top = 50;
	var left = 50;
	var target = "Popup";
	var url = path+"&kontakt_id="+kontakt_id;		
  	wndhr = window.open( url , target , "screenX=" + top + ",screenY=" + left + ",top=" + top +",left=" + left + ",width=" + width + ",height=" + height + ",dependent=yes,hotkeys=no,locationbar=yes,menubar=yes,resizable=yes,scrollbars=no");
	wndhr.moveTo(top,left);
	wndhr.focus();
}
function onOpenPopupIf( uuid, width, height,sprache, fscroll, bprint, btop, bclose )
{
   // if(wndhr.close) wndhr.close();
	if(wndhr && wndhr.closed==false) wndhr.close();   
	var top = 100;
	var left = 100;
	var wwidth=width+94;
	var hheight=height+120;
	var target = "Popup_" + uuid;
	var url = "/formulare/imagefinder_popup.cfm?uuid=" + uuid + "&width=" + wwidth + "&height=" + hheight + "&sprache=" + sprache + "&fscroll=" + fscroll + "&bprint=" + bprint + "&btop=" + btop +"&bclose=" + bclose;		
  	wndhr = window.open( url , target , "screenX=" + top + ",screenY=" + left + ",top=" + top +",left=" + left + ",width=" + wwidth + ",height=" + hheight + ",dependent=yes,hotkeys=no,locationbar=no,menubar=yes,resizable=no,scrollbars=no");
	wndhr.moveTo(top,left);
	wndhr.focus();
}

function hrClickSearch(error_text)
{
	form = document.forms['header_search_form'];	
	if (hrCheckSearch(error_text)) form.submit();
}

function hrCheckSearch(error_text)
{
	form = document.forms['header_search_form'];	
	if(form.sp_search_text.value!="")	return true;
	else alert(error_text);
	return false;
}



function popup_gtour()
{
bbraun = window.open("flash/bbraunGT.html","bbraunGT","width=800,height=600,screenX=0,screenY=0,top=0,left=0,scrollbars=no,locationbar=no,menubar=no,resizable=no");
 bbraun.focus();
}

function popup(ziel,breite,hoehe,xoff,yoff)
{
	fenster=open(ziel,"popup","width="+breite+",height="+hoehe+",screenX="+xoff+",screenY="+yoff);
	fenster.moveTo(xoff,yoff);
	fenster.focus();
}

/* Popup */
function onOpenPopupPath( target, url, width, height )
{
   // if(wndhr.close) wndhr.close();
	if(wndhr && wndhr.closed==false) wndhr.close();   
	var top = 100;
	var left = 100;
  	wndhr = window.open( url , target , "screenX=" + top + ",screenY=" + left + ",top=" + top +",left=" + left + ",width=" + width + ",height=" + height + ",dependent=yes,hotkeys=no,locationbar=yes,menubar=yes,resizable=no,scrollbars=no");
	wndhr.moveTo(top,left);
	wndhr.focus();
}

/* öffnet dropdown value in neuem Fenster */
function changed(name)
{
value = name.options[name.selectedIndex].value;
if(value!="") window.open(value, 'New');
}

/* aktualisiert webcam bilder auf der website */
function reloadCam()
	{reload = new Date();
	 reload = "?"+reload.getTime();
	 document.images ["webcambild"].src = "http://www.bbraun.com/pharma_webcampix/web/pharma_cam.jpg"+reload;
	 setTimeout("reloadCam()",10000); // zeit-in-ms
	}

// BBMAG
function OnOpenCustomPopupWindow(void1, t, x, y, w, h, u, void2, bP, bT, bC, bS){
	var wndCustomPopupWindow = window.open('', 'wndCustomPopupWindow', 'left='+x+',top='+y+',pos-x='+x+',pos-y='+y+',width='+w+',height='+h+',resizable=yes,scrollbars=yes,status=1,menubar=1');
	wndCustomPopupWindow.document.write('<html><title>'+t+'</title><body>Please wait...</body></html>');
	wndCustomPopupWindow.location.href=u+'&bPrint='+bP+'&bTop='+bT+'&bClose='+bC+'&bScroll='+bS+'&width='+w+'&height='+h+'&title='+escape(t);
	wndCustomPopupWindow.focus();
}		