<!-- Setup V.0.16 -->

function maxfenster()
{
  parent.window.resizeTo(1024,768)
}

function setbereich(x)
{
  switch (x) 
  {
    case 1 : parent.Bereich = "Allgemein"
             break;

    case 2 : parent.Bereich = "Doof"
             break;

    default :parent.Bereich = "Allgemein"
             break;
  }

  parent.frames[0].location.href="obenlinks.htm"
  parent.frames[1].location.href="setup.htm"
  parent.frames[2].location.href="grafik.htm"
  parent.frames[3].location.href="obenrechts.htm"
  parent.frames[4].location.href="ablauf.htm"
  parent.frames[5].location.href="punkte.htm"
}

function setmodus(x)
{
  switch (x)
    {
      case 1 : parent.Modus = "ZufallAus10"
               break;

      case 2 : parent.Modus = "ZufallAus20"
               break;

      case 3 : parent.Modus = "ZufallAus30"
               break;

      case 4 : parent.Modus = "ZufallAus40"
               break;

      default :parent.Modus = "Setup"
               break;
  }

  parent.frames[0].location.href="obenlinks.htm"
  parent.frames[1].location.href="fragen.htm"
  parent.frames[2].location.href="grafik.htm"
  parent.frames[3].location.href="obenrechts.htm"
  parent.frames[4].location.href="ablauf.htm"
  parent.frames[5].location.href="punkte.htm"

}

function setup()
{
  if(parent.AnfangsWeite < 1024 || parent.AnfangswBreite < 768)
  {
    Check = confirm("Der Schlauberger sieht bei 1024x768 besser aus ! Soll auf 1024x768 umgestellt werden ?")
    if (Check)
    {
      maxfenster()
    }

    if (Check == false)
    {
    }
  }

  document.write('<p style="font-family:Comic Sans MS; font-size:16px; color:black">')
  document.write('<a href="javascript:setmodus(1)">' + "Zufall aus 10 Fragen" + '</a><br>')
  document.write('<a href="javascript:setmodus(2)">' + "Zufall aus 20 Fragen" + '</a><br>')
  document.write('<a href="javascript:setmodus(3)">' + "Zufall aus 30 Fragen" + '</a><br>')
  document.write('<a href="javascript:setmodus(4)">' + "Zufall aus 40 Fragen" + '</a><br><br><br>')

  document.write('<a href="javascript:setbereich(1)">' + "Fragenbereich Allgemein" + '</a><br></p>')

<!-- Nur für verschiedene Fragenbereiche einfügen -->
<!-- document.write('<a href="javascript:setbereich(2)">' + "Fragenbereich F&uuml;r Doofe" + '</a><br>')  -->
}


