// imageviewer fŸr Flyerdaten (mehrere Bilder in Popup) by terry// -------------------------------------------------------------open_popup = function(url, width, height, count){ 	var maxW = screen.width/3*2; // 2/3 des Bildschirms		if(width * count <= maxW){		gHeight = parseInt(height)+ 24;		gWidth = width * count + 25;		p = window.open('/sites/img_viewer_w.php?u='+url+'&c='+count,'Flyer','width='+gWidth+',height='+gHeight+',left=0,top=0');	}else{		gWidth = parseInt(width)+ 15;		gHeight = height * count + 24;		p = window.open('/sites/img_viewer_h.php?u='+url+'&c='+count,'Flyer','width='+gWidth+',height='+gHeight+',left=0,top=0');	}	if(p){ return false; }else{ return true; }}function open_flexWin (url){ 	window.open(url,'','scrollbars=yes,resizable=yes,left=0,top=0');}open_event_popup = function(url, width, height, count, txtsize){ 	var maxW = screen.width/3*2; // 2/3 des Bildschirms		if(width * count <= maxW){		Zeilen = 50;		gHeight = parseInt(height)+Zeilen+ 24;		gWidth = width * count + 25;		p = window.open('/sites/img_viewer_w.php?u='+url+'&c='+count,'Flyer','width='+gWidth+',height='+gHeight+',left=0,top=0');	}else{		var pxAve = 5; // durchschnittlicher px-verbrauch eines Buchstabens (zwischen 1 fŸr i und 9 fŸr M/S und so)		var ltCount = width/pxAve;		var txtHeight = Math.floor(txtsize/ltCount)*14;		gWidth = parseInt(width)+ 15;		gHeight = height * count + 24 + Zeilen;		p = window.open('/sites/img_viewer_h.php?u='+url+'&c='+count,'Flyer','width='+gWidth+',height='+gHeight+',left=0,top=0');	}	if(p){ return false; }else{ return true; }}