queryString=location.search;

function openlink(URLString)
{
	location.href=URLString+queryString;
}

function addQueryString(URLString)
{
	return URLString+queryString;
}

function getDynamicHost() {
  return "http://qsu.planethome.de";
}

function BrowserCheck() {
	var b = navigator.appName
   var minor = parseFloat(navigator.appVersion);

	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer" || b=="msie") this.b = "ie"
	else this.b = b

	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns6 = (this.b=="ns" && this.v==5)
	this.ns61=(this.b=="ns"&& navigator.userAgent.indexOf('6/6.1') != -1)
	this.ns6up=(this.b=="ns"&& this.v >= 5)

	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.b=="ie" && this.v==4 &&  navigator.userAgent.indexOf('MSIE 4')!=-1)
	this.ie5 = (this.b=="ie" &&  this.v==4 && navigator.userAgent.indexOf('MSIE 5.0')!=-1)
	this.ie55 = (this.b=="ie" &&  navigator.userAgent.indexOf('MSIE 5.5')!=-1)
	this.ie5up =  (this.b == "ie" && !this.ie4 )
	this.ie6 = (this.b=="ie" && this.v==4 && this.b == navigator.userAgent.indexOf('MSIE 6.')!=-1)
	this.ie6up =  (this.b == "ie" && !this.ie4 && !this.ie5 && !this.ie55)

	if (this.ie5 || this.ie55) this.v = 5
	this.min = (this.ns||this.ie)
	this.Mac = (navigator.appVersion.indexOf("Mac") != -1)

	this.firefox = (navigator.userAgent.indexOf("Firefox") != -1)
}

// Creates the is Objekt
is = new BrowserCheck();

function reDo() {  //alert ("Resize fix test !!!");
   if (innerWidth != origWidth || innerHeight != origHeight)
      location.reload();
}

if (is.ns4) {
   NS4 = document.layers;
   if (NS4) {
      origWidth = innerWidth;
      origHeight = innerHeight;
   }
   if (NS4) onresize = reDo;
}

function openpopup (myfile, myname, breite, hoehe, posX, posY, resizable, scrollbars){
	if (myname == '') myname = 'hypothekendiscount';
	if (posX == '') posX = '0';
	if (posY== '') posY = '0';
	if(resizable == null) resizable = '0';
	if(scrollbars == null) scrollbars = '0';
	if(scrollbars == '1')  breite = parseInt(breite) + 22;
	if (hoehe == '0') {
		neuehoehe = screen.availHeight-screen.availHeight/10;
		if (neuehoehe>900) neuehoehe=900;
			hoehe = neuehoehe;
	}
	var params;
	if(is.ns)
		var params = "width=" + breite + ",height=" + hoehe + ",screenX=" +posX+ ",screenY=" +posY+ ",resizable=" + resizable + ",status=0,scrollbars=" + scrollbars + ",toolbar=0,location=0,directories=0,menubar=0";
	else if(is.ie)
		var params = "width=" + breite + ",height=" + hoehe + ",left=" +posX+ ",top=" +posY+ ",resizable=" + resizable + ",status=0,scrollbars=" + scrollbars + ",toolbar=0,location=0,directories=0,menubar=0";   
	var newwin = window.open(myfile+queryString ,myname ,params);
	newwin.focus();
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+queryString+"'");
  if (restore) selObj.selectedIndex=0;
}

/*	Siggi Hack 
	Rechtsklick verhindern
*/
var closeWin="0"; // Willst du das Fenster danach schliessen? (1 für ja, 0 für nein)

function IE(e) 
{
     if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
     {
          return false;
     }
}
function NS(e) 
{
     if (document.layers || (document.getElementById && !document.all))
     {
          if (e.which==2 || e.which==3)
          {
               return false;
          }
     }
}

document.onmousedown=IE; 
document.onmouseup=NS; 
document.oncontextmenu=new Function("return false");