// browsercheck
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw = new checkBrowser();

function status(an){
	alert();
}
//POPUP
function fenster(URL,width,height,scroll){
var Oben= ((screen.height - height) /2) -20;
var Links= (screen.width - width) /2;
	window.open("../"+URL,"fenster","resize=no,menubar=no,scrollbars="+scroll+",status=no,toolbar=no,width="+width+",height="+height+",top="+Oben+",left="+Links)
}
function upload(URL,width,height,scroll){
var Oben= ((screen.height - height) /2) -20;
var Links= (screen.width - width) /2;
	window.open(URL,"upload","resize=no,menubar=no,scrollbars="+scroll+",status=no,toolbar=no,width="+width+",height="+height+",top="+Oben+",left="+Links)
}
//Pfad zur Druckversion
function printpath() {
istPfad=window.location.href;
sollPfad=istPfad.replace('pages','pages_p');
location=sollPfad;
}

function reloadPage(init) {  //reloads the window if Nav4 resized
  		if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    		document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  		else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
		}
reloadPage(true);