// © 2000-2001 by WFWD Wolfgang Franz Web Design

function checktopframe()
{ if(top.frames.length > 0)
    top.location.href=self.location; }

function checkframe()
{ if(top.frames.length == 0)
    top.location.href = "index.htm"; }

function position()
{ window.moveTo(0,0);
  window.resizeTo(screen.availWidth,screen.availHeight); }

function ZweiFrames(URL1,F1,URL2,F2)
{  
  parent.frames[F1].location.href=URL1;
  parent.frames[F2].location.href=URL2;
}
// Aufruf über:
// <a href="javascript:ZweiFrames('seite1.htm',1,'seite2.htm',2)"><b>Linktext</b></a><br>

function browserinfo()
{ var ref = "???";
  if(parent.document.referrer != "")
     ref = parent.document.referrer;
  alert("Diese Seiten sind für eine Auflösung von 1024*768 Punkten" + "\n" + "und den Microsoft Internet Explorer 5+ optimiert. " + "\n" + "\n" +
  "Ihre Auflösung beträgt: " + screen.width + "*" + screen.height + " Punkte." + "\n" +
  "davon sind verfügbar:  " + screen.availWidth + "*" + screen.availHeight + " Punkte." + "\n" + "\n" +
  "Sie benutzen: " + navigator.appName + "\n" + "Version: " +navigator.appVersion + "\n" + "\n" +
  "und kommen auf diese Seite von: " + "\n" + ref + "\n" + "\n" +
  "© 2001 WFWD, www.wfwd.de"); }

function fragezeichen()
{ var fz = top.location.href;
  if(fz.indexOf('?') != -1)
     {
      if (fz.indexOf('?start') != -1) parent.frames[1].location.href='start.htm';
      if (fz.indexOf('?serv') != -1) parent.frames[1].location.href='service.htm';
      if (fz.indexOf('?web') != -1) parent.frames[1].location.href='webdesign.htm';
      if (fz.indexOf('?design') != -1) parent.frames[1].location.href='webdesign.htm';
      if (fz.indexOf('?ref') != -1) parent.frames[1].location.href='referenz.htm';
      if (fz.indexOf('?par') != -1) parent.frames[1].location.href='partner.htm';
      if (fz.indexOf('?link') != -1) parent.frames[1].location.href='links.htm';
      if (fz.indexOf('?agb') != -1) parent.frames[1].location.href='agbs.htm';
      if (fz.indexOf('?kontakt') != -1) parent.frames[1].location.href='kontakt.htm';
      if (fz.indexOf('?email') != -1) parent.frames[1].location.href='kontakt.htm';
      if (fz.indexOf('?mail') != -1) parent.frames[1].location.href='kontakt.htm';
      if (fz.indexOf('?copy') != -1) parent.frames[1].location.href='copyright.htm';
     };
}

function checkbrowser()
{ if ((screen.width < 800) || (screen.height < 600))
    browserinfo(); }

function checkall()
{ checktopframe();
  checkbrowser();
  position (); }
