function openWindow(theURL, winName, features) { //v2.0
  F423 = window.open(theURL, winName, features);
  F423.focus();
}

function printPage() {
	if (window.print) {
		window.print();
	} else if(document.all && navigator.appVersion.substring(22,23)==4) {
		self.focus();
		var OLECMDID_PRINT = 6;
		var OLECMDEXECOPT_DONTPROMPTUSER = 2;
		var OLECMDEXECOPT_PROMPTUSER = 1;
		var WebBrowser = '<object id="WebBrowser1" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>';
		document.body.insertAdjacentHTML('beforeEnd',WebBrowser);
		WebBrowser1.ExecWB(OLECMDID_PRINT,OLECMDEXECOPT_DONTPROMPTUSER);
		WebBrowser1.outerHTML = '';
	}
}

function showBild(dateiname, breite, hoehe) {
	var gallerywin;
	
	content = '';
	content += '<html>';
	content += '<head>';
	content += '<title>Bild</title>';

	content += '<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" bgcolor="#D0E4F7">';
	content += '<table cellspacing="0" cellpadding="0" border="0">';
	content += '<tr><td>';
	content += '<a href="javascript:window.self.close();"><img src="'+dateiname+'" width="'+breite+'" height="'+hoehe+'" border="0" alt="schliessen"></a>';
	content += '</td></tr>';
	content += '</table>';
	content += '</body></html>';
	
	if (gallerywin)	if(!gallerywin.closed) gallerywin.self.close();
	
	hoehe = hoehe;

	gallerywin = window.open('', 'gallerywin', ' scrollbars=no,toolbar=no,menubar=no,width='+breite+',height='+hoehe);	
	
	gallerywin.document.open();
	gallerywin.document.writeln(content);
	gallerywin.document.close();

	gallerywin.focus();
}

/******************************************************/
function checkFrames() 
{
 	if(top.frames.length == 0){
 		window.location.href = "http://www.foerderverein-eintracht-cuxhaven.de";
 	}
}
/******************************************************/
function gotourl(ziel) 
{
 	window.location.href = Ziel;
}
/******************************************************/
function popup(linkurl)
{
  para="scrollbars=1,status=no,width=640,height=480,menubar=no,locationbar=no,resizable=no,hotkeys=no";
  var links = screen.width / 2 - 400;
  var oben = screen.height / 2 - 300;
  var browser=navigator.appName;
  var version=parseFloat(navigator.appVersion);
  fenster = window.open(linkurl,"arsmedium",para);
  if (browser=="Netscape" && version>=3.0)
  {
    fenster.moveTo(links,oben);
  }
}
/******************************************************/
function show_showcase(linkurl)
{
  para="scrollbars=1,status=no,width=417,height=500,menubar=no,locationbar=no,resizable=no,hotkeys=no";
  var links = screen.width / 2 - 400;
  var oben = screen.height / 2 - 300;
  var browser=navigator.appName;
  var version=parseFloat(navigator.appVersion);
  fenster = window.open(linkurl,"arsmedium",para);
  if (browser=="Netscape" && version>=3.0)
  {
    fenster.moveTo(links,oben);
  }
}
/******************************************************/
function alt_zu_neu_auf(url,name,breite,hoehe)
{
	fensterauf(url,name,breite,hoehe);
	//window.close();
}
/******************************************************/
function fensterauf(url,name,breite,hoehe)
{
  var ExternesFenster = window.open("",name,"width=" + breite  + ",height=" + hoehe + ",resizable=no,status=no,menubar=no,scrollbars=yes,locationbar=no");
	
	ExternesFenster.document.open();	
	ExternesFenster.document.write(" <html><head><title>"+name+"</title><SCRIPT LANGUAGE=JavaScript>function click(){	if(event.button==2)	{ alert('Thanks') }	}	document.onmousedown = click		</script>	</head><body><img src="+url+" border=0></body></html> ");	
	ExternesFenster.document.bgColor="#eeeeff";
	ExternesFenster.document.close();

	if(navigator.appName == 'Netscape')
	{
		ExternesFenster.focus();
	}
}

/******************************************************/
function newwindow(datei,breite,hoehe,x,y,winname)
{
  var fenstereigenschaften1 =  "resizable=0,menubar=0,scrollbars=yes,directories=0,location=0,width="+breite.toString();
      fenstereigenschaften1 += ",height="+hoehe.toString();
          
        if (parseFloat(navigator.appVersion) >= 4)
        {
          fenstereigenschaften1     += ",screenX="+x.toString();
          fenstereigenschaften1     += ",screenY="+y.toString();
        }
		remotewin1 = window.open(datei,winname,fenstereigenschaften1);

}

function newwindow2(datei,breite,hoehe,x,y,winname)
{
  var fenstereigenschaften1 =  "resizable=0,menubar=0,scrollbars=no,directories=0,location=0,width="+breite.toString();
      fenstereigenschaften1 += ",height="+hoehe.toString();


	 // stellt die Bildschirmabmessungen fest
	var ns6 = (!document.all && document.getElementById);
	var ie4 = (document.all);
	var ns4 = (document.layers);

	if(ns6||ns4) {
		sbreite = innerWidth;
		shoehe = innerHeight;
	}
	else if(ie4) {
		sbreite = document.body.clientWidth;
		shoehe = document.body.clientHeight;
	}

	// Fensterpossition linke obere Ecke
	xmove = (sbreite-x)/2;
	ymove  = (shoehe-y)/2;

	//var eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+";
	// weitere Attribiute hinzufügen
	//eigenschaften= eigenschaften + ",width="+b+",height="+h+",menubar=no";    		
		
		if (parseFloat(navigator.appVersion) >= 4)
        {
          fenstereigenschaften1     += ",left="+xmove.toString();
          fenstereigenschaften1     += ",top="+ymove.toString();
		  fenstereigenschaften1     += ",screenX="+x.toString();
          fenstereigenschaften1     += ",screenY="+y.toString();
        }
		remotewin1 = window.open(datei,winname,fenstereigenschaften1);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
