// main.js
// copyright oestreicher & wagner

function detectBrowser() {
	var agent	=	navigator.userAgent.toLowerCase();
	this.ns		=	((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
	this.ie		=	(agent.indexOf("msie") != -1);
	this.op3	=	(agent.indexOf("opera") != -1);
	this.win	=	(agent.indexOf("win")!=-1);
	this.mac	=	(agent.indexOf("mac")!=-1);
	this.unix	=	(agent.indexOf("x11")!=-1);
	this.w3c	=	document.documentElement;

	return this;
}

// initialize browser object
is = new detectBrowser();

function SendSchnellzugriff() {
	//document.schnellzugriff.action = document.schnellzugriff.suche_auswahl.value;
	//document.schnellzugriff.targetPath.value = document.schnellzugriff.suche_auswahl.value;
	document.schnellzugriff.submit();
}

function openPopup(img, width, height) {
   if (img && width && height) {
      width = Math.min(width, 640);
      height = Math.min(height, 480);
      var popUp = window.open(img,"popUp","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=" + width + ",height=" + height);
   }
   return;
}

function openPrintPopup(img, width, height) {
   if (img && width && height) {
      width = Math.min(width, 640);
      height = Math.min(height, 480);
      var popUp = window.open(img,"popUp","menubar=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=" + width + ",height=" + height);
   }
   return;
}