var isNav = false;
var isIE = false;
if (parseInt (navigator.appVersion) >= 4) {
   if (navigator.appName.indexOf("Netscape") != -1) { isNav = true; }
   if (navigator.appName.indexOf("Microsoft") != -1) { isIE = true; }
}

function Go(x,isForm) {
 if(x == "nothing") {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   return;
 }
 else if(x == "end")
   top.location.href = parent.frames[1].location;
 else {
 // see: http://selfhtml.teamone.de/javascript/objekte/window.htm#open

   if (isIE == true) {
       y = "xxx";
   } else {
       y = x;
   }
   MeinFenster = window.open(x, y,"width=800,height=600,location=yes,resizable=yes,scrollbars=yes,screenX=20,screenY=20,toolbar=yes,status=yes" ); // , "RelatedPage", "width=1000,height=800,scrollbars"
   if (isNav == true)  y.focus();

   if (isForm) {
//   parent.frames[1].location.href = x;
   document.forms[1].reset();
   document.forms[1].elements[0].blur();
   }
 }
}

   function addNetscapePanel() {
      if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
      {
         window.sidebar.addPanel ("www.Grosbous.lu",
         "http://gb.pletschette.net/a/manif_netscape.pl","");
      }
      else
      {
         var rv = window.confirm ("This page is enhanced for use with Netscape 6/7.  "
            + "Would you like to upgrade now?");
         if (rv)
            document.location.href = "http://home.netscape.com/download/index.html";
      }
   }

function checkFrameset(x) {
  if(!parent.header)
    location.href=x + "?" + location.pathname;
}
function checkFrameset1(x) {
  if(!parent.header)  {
    var Adressanhang=location.search;
    var temp ="";
    if(Adressanhang) temp = "?"+Adressanhang.substring(1,Adressanhang.length);
    location.href=x + "?" + location.pathname + temp;

   }
}
function checkFrameset2(x) {
  if(!parent.header2)
   location.href=x + "?" + location.pathname;
}
function checkFramecall2(x) {
  var Adressanhang=location.search;
  checkFrameset1(x);
  if(Adressanhang) frames.main2.location.href=Adressanhang.substring(1,Adressanhang.length);

}
function checkFramecall() {
  var Adressanhang=location.search;
  if(Adressanhang) frames.main.location.href=Adressanhang.substring(1,Adressanhang.length);
}


function winOpen(url, breite, hoehe) {
  // Errechnet Koordinaten, um das Popup zentriert zu platzieren 
	links = (screen.width/2)-(breite/2);
	oben = (screen.height/2)-(hoehe/2);
	window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,copyhistory = yes,dependent=yes,fullscreen = no,top ="+oben+",left ="+links);
}