// JavaScript Document
<!--
function getBrowser(){
	var x;
	if(document.ids)x='nc4';
	else if(document.all && !document.getElementById ) x='ie4';
	else if(window.opera && !document.createElement )  x='op5';
	else if(window.opera && window.getComputedStyle )  {
						if(document.createRange)		x='op8';
							else if(window.navigate)	x='op7.5';
															 else 		x='op7.2';
	}
	else if(window.opera && document.compatMode )		  			x='op7';
	else if(window.opera && document.releaseEvents )				x='op6';
	else if(document.contains && !window.opera )						x='kq3';
	else if(window.pkcs11&&window.XML)											x='f15';
	else if( window.getSelection && window.atob )						x='nn7';
	else if( window.getSelection && !document.compatMode )	x='nn6';
	else if( window.clipboardData && document.compatMode )	x='ie6';
	else if( window.clipboardData ){
			 x='ie5';
			 if( !document.createDocumentFragment ) 	x+='.5';
			 if( document.doctype && !window.print ) 	x+='m';}
	else if( document.getElementById && !document.all ) 		x='op4';
	else if( document.images && !document.all ) 						x='nn3';
	else if(document.clientWidth&&!window.RegExp)						x='kq2';
	else x='nob';
	return x;
}
//---------------------------------------------------------------------------------------------------------------
/* 
	Diese Funktion öffnet ein Fullscreen PopUp
	erfolgreich getestet mit folgenden Browsern:
		- IE7, IE 6,IE5.5
    - OP8
		- FF 1.5
	 noch zu testen:
	 - IE5.0
	 - FF 1.0
	 - OP7, OP9
	 - Safari/Mac
	 - NS7, NS8
*/
var fp = null;
function openFP(theURL) { //v2.0
	// URL definiert?
	theURL = (theURL != undefined) ? theURL : 'start.php';
	//-------------------
	// Verfügbare Breite speichern
	var vBreite = screen.availWidth;
	// Verfügbare Höhe speichern
	var vHoehe = screen.availHeight;
	//-------------------
	if(browser.indexOf('ie')!=-1){
		vBreite -= 10;
		vHoehe -= 28;
	}else{
		vBreite += 20;
	}
	//-------------------
	var winName = 'fp';
	// features = 'width=val, height=val,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes'
	var features = (features != undefined) ? features : 'resizable=yes,width='+vBreite+',height='+vHoehe;
	fp = window.open(theURL,winName,features);
	fp.moveTo(0,0);
	fp.focus();
	if(!fp){
		// popupblocker aktiv
		var Ausgabebereich = document.getElementById("popUpDIV");
		var msg = document.createTextNode("Sie haben leider einen PopUp-Blocker aktiviert!");
		Ausgabebereich.appendChild(msg);
		Ausgabebereich.style.display = "inline";
		return true; 
	}else{
		// popupblocker nicht aktiv
		var Ausgabebereich = document.getElementById("popUpDIV");
		Ausgabebereich.style.display = "none";
		//
		return false;
	}
}
//---------------------------------------------------------------------------------------------------------------
//-->
