//
// Datenbank / Auslosung 
// © Andreas Dost 2002-2009
//
// Spielplan Botschaftssturnier
// Tore aus l_th / l_ta
//

var startTag = "<";

document.writeln(startTag + 'script src=javas/livegruppen_b_2009.js></script>');
document.writeln(startTag + 'script src=javas/livehf_b_2009.js></script>');
document.writeln(startTag + 'script src=javas/liveplatz3_b_2009.js></script>');
document.writeln(startTag + 'script src=javas/livefinale_b_2009.js></script>');

document.writeln(startTag + 'script src=javas/livehf_s_2009.js></script>');
document.writeln(startTag + 'script src=javas/liveplatz3_s_2009.js></script>');
document.writeln(startTag + 'script src=javas/livefinale_s_2009.js></script>');

document.writeln(startTag + 'script src=javas/livezeit_2009.js></script>');

// Mannschaften Hauptrunde
gzwi5 = new Array("I","II");
//gzwi5[0] = new Array(0,0,0,0);
//gzwi5[1] = new Array(0,0,0,0);
// in livegruppen.js

// Mannschaften Halbfinale
ghf5 = new Array("HF1","HF2");
//ghf5[0] = new Array(0,0);
//ghf5[1] = new Array(0,0);
// in livehf.js

spon_ghf5 = new Array("HF1","HF2");

// Mannschaften Spiel Platz 3
//gpla5 = new Array (0,0);
// in liveplatz3.js

// Mannschaften Finale
//gfin5 = new Array(0,0);
// in livefinale.js


// wenn Mannschaften in Zw/Finale 0 sind, dann Text ausgeben
// Mannschaften Zwischenrunde
gzwi5t = new Array("I","II");
gzwi5t[0] = new Array("2. Gruppe B","1. Gruppe A","1. Gruppe D","2. Gruppe C");
gzwi5t[1] = new Array("2. Gruppe A","1. Gruppe B","1. Gruppe C","2. Gruppe D");

// Mannschaften Halbfinale 
ghf5t = new Array("HF1","HF2");
ghf5t[0] = new Array("1. Gruppe I","2. Gruppe II");
ghf5t[1] = new Array("2. Gruppe I","1. Gruppe II");

// Mannschaften Spiel Platz 3
gpla5t = new Array("Verlierer HF1","Verlierer HF2");

// Mannschaften Finale
gfin5t = new Array("Sieger HF1","Sieger HF2");


// Mannschaften Halbfinale Sponsoren 
ghf5ts = new Array("HF1","HF2");
ghf5ts[0] = new Array("1. Gruppe A (S)","2. Gruppe B (S)");
ghf5ts[1] = new Array("2. Gruppe A (S)","1. Gruppe B (S)");

// Mannschaften Spiel Platz 3 Sponsoren
gpla5ts = new Array("Verlierer HF1 (S)","Verlierer HF2 (S)");

// Mannschaften Finale Sponsoren
gfin5ts = new Array("Sieger HF1 (S)","Sieger HF2 (S)");


gaus5t = new Array("A");
// Gruppenzuordnung in _auslgrtrad.js

// 4er System mit zwei Gruppen abwechselnt A,B
// fuer Zwischenrunde

// beginnt mit spiel 40 --> Index beginnt mit 0
// 2006
// var ab_nr = 40;
// 2007
//var ab_nr = 45;
// 2008
var ab_nr = 40;

bot4system = new Array(1,2,3,4,5,6,7,8,9,10,11,12);
bot4system[0 + ab_nr] = new Array(0,1); bot4system[1 + ab_nr] = new Array(0,1);
bot4system[2 + ab_nr] = new Array(2,3); bot4system[3 + ab_nr] = new Array(2,3);
bot4system[4 + ab_nr] = new Array(0,2); bot4system[5 + ab_nr] = new Array(0,2);
bot4system[6 + ab_nr] = new Array(1,3); bot4system[7 + ab_nr] = new Array(1,3);
bot4system[8 + ab_nr] = new Array(3,0); bot4system[9 + ab_nr] = new Array(3,0);
bot4system[10 + ab_nr] = new Array(1,2);bot4system[11 + ab_nr] = new Array(1,2);


//Schwellenspiele 2006 (alle Tuniere)
/*
s_erstv  = 1
s_letztv = 40
s_erstz  = 41
s_letztz = 64
s_erstt  = 45
s_letztt = 67
s_platz3 = 68
s_final  = 69
*/

//Schwellenspiele 2007 (alle Tuniere)
/*
s_erstv  = 1
s_letztv = 45
s_erstz  = 46
s_letztz = 69
s_erstt  = 50
s_letztt = 72
s_platz3 = 73
s_final  = 74
*/

//Schwellenspiele 2008 / 2009 (alle Tuniere)
s_erstv  = 1
s_letztv = 40

s_erstz  = 43
s_letztz = 64

s_ersts  = 41
s_letzts = 62

s_halb1s = 65
s_halb2s = 66
s_halb1  = 67
s_halb2  = 68

s_platz3s= 69
s_finals = 71

s_platz3 = 70
s_final  = 72

s_scup   = 73

function spielplan_y_l(jahr,von,bis,kurzanz,gruppennr,lfdnranz,ausversion,flag,klein,turnier,mannr,mit9m,mittext,toreanzeigen)
  {
  var gerade = 0;
    
  // todo 
  // ad Mai 2009 - erstmal in html gelöst 
  // ist aber eigentlich nicht ok 
  // wenn erstes Spiel == Gruppe II muss igruppe = 1 sein
  // igruppe wird genutzt um Hauptrunde Bot Mannschaft und Flagge anzuzeigen
  // bei Anzeige aller wird igruppe nicht sauber gesetzt
  // Anzeige 0 dann 1 usw.
  // bei Start mit Gruppe II also 1 dann 0 usw.
  // eventuell dann nicht igruppe = igruppe + 1
  var igruppe = 0;

  //alert("Start");

  if (flag == undefined) { flag=0;};
  if (klein == undefined) { klein=0;};
  if (turnier == undefined) { turnier=0;};    // Turnierbuchstabe anzeigen B/S
  if (mannr == undefined) { mannr=0;};
  if (mit9m == undefined) { mit9m=1;};
  if (mittext == undefined) { mittext=1;};
  if (toreanzeigen == undefined) { toreanzeigen=1;};
      
  zeitaend();

  if (kurzanz == 0)
    document.writeln('<table border="solid 1px #FFCC66" width="90%" cellpadding="0" cellspacing="0" class="tab_1" align="center" style="border:solid 1px #FFCC66">')
  else
    if (klein == 1)
    document.writeln('<table width="90%" cellpadding="0" cellspacing="5" align="center" border="0">')
    else
    document.writeln('<table border="solid 1px #FFCC66" width="100%" cellpadding="0" cellspacing="0" class="tab_1" align="center" style="border:solid 1px #FFCC66">');

  for (var my = von; my < bis; my++)
    {

    if (sp_ges_tunr[jahr][my] == 0)
      {
      if (gruppennr == "A")
        {
        igruppe = 0;
        if (sg[jahr + 4][sp_ges_tusp[jahr][my] - 1] != "A") continue;
        }
      if (gruppennr == "B")
        {
        igruppe = 1;
        if (sg[jahr + 4][sp_ges_tusp[jahr][my] - 1] != "B") continue;
        }
      if (gruppennr == "C")
        {
        igruppe = 2;
        if (sg[jahr + 4][sp_ges_tusp[jahr][my] - 1] != "C") continue;
        }
      if (gruppennr == "D")
        {
        igruppe = 3;
        if (sg[jahr + 4][sp_ges_tusp[jahr][my] - 1] != "D") continue;
        }
      if (gruppennr == "I")
        {
        igruppe = 0;
        if (sg[jahr + 4][sp_ges_tusp[jahr][my] - 1] != "I") continue;
        }
      if (gruppennr == "II")
        {
        igruppe = 1;
        if (sg[jahr + 4][sp_ges_tusp[jahr][my] - 1] != "II") continue;
        }
      }
    else
     {
     if (gruppennr == "A")
       {
       igruppe = 0;
       if (spon_sg[jahr - 2][sp_ges_tusp[jahr][my] - 1] != "A") continue;
       }
     if (gruppennr == "B")
       {
       igruppe = 1;
       if (spon_sg[jahr - 2][sp_ges_tusp[jahr][my] - 1] != "B") continue;
       }
     if (gruppennr == "C") continue;    
     if (gruppennr == "D") continue;        
     if (gruppennr == "I") continue;
     if (gruppennr == "II") continue;         
     }


     if (my == s_halb1s - 1)
       {
       if (mittext == 1)
         {
         document.writeln('<tr><td colspan="11">&nbsp;</td></tr>');    
         if (klein == 1)
           document.writeln('<tr><td class="tab_14b" colspan="11">Finalrunde</td></tr>'); 
         else
           document.write('<tr><td class="tab_16" colspan="11">Finalrunde</td></tr>');    
         document.writeln('<tr><td colspan="11">&nbsp;</td></tr>');          
         }
       }

     // Super-Cup
     if (my == s_scup - 1)
       {
       
       if (mittext == 1)
       {
       document.writeln('<tr><td colspan="11">&nbsp;</td></tr>');
       if (klein == 1)
         document.writeln('<tr><td class="tab_14b" colspan="11">Super-Cup</td></tr>'); 
       else
         document.write('<tr><td class="tab_16" colspan="11">Super-Cup</td></tr>');           
       document.writeln('<tr><td colspan="11">&nbsp;</td></tr>');   
       }

       if (turnier == 1)
       {
       document.write('<td class="tab_14">');
       document.write('&nbsp;');
       document.writeln('</td>');
       }
       
       if (klein == 1)
       {
       document.write('<td width="50" class="tab_14">');
       document.write('&nbsp;');
       document.writeln('</td>');
       }       
       else
       {
       document.write('<td class="tab_14">');
       document.write('73');
       document.writeln('</td>');
       // das ist die Spalte der internen spielnummer - bei Scup keine vorhanden
       document.write('<td class="tab_14">');
       document.write('&nbsp;');
       document.writeln('</td>');
       }

       document.writeln('<td width="50" style="background-color:#F87431; text-align:center;"><b>');
       document.write('S-Cup');
       document.writeln('</td>');

       if (klein == 1)
         document.write('<td class="tab_14b">')
       else              
         document.write('<td class="tab_14r1b">');

       //Andreas todo
       //z.Z. manuell scup
       //document.write('17:00');
       document.write('__:__');
       
       document.writeln('</td>');

       if (klein == 1)
       //Andreas todo
       //z.Z. manuell scup
       document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/kuw.gif"></td>');
       //document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/per.gif"></td>');
       else
       {       
       document.write('<td width="60"><img src="');
       //Andreas todo
       //z.Z. manuell scup
       document.write(flag1[54]);
       //document.write(flag1[0]);
       document.writeln('"></td>');       
       }
      
       if (klein == 1)
       {
       document.write('<td class="tab_14bleft">&nbsp;');
       //Andreas todo
       //z.Z. manuell scup
       //document.write('Sieger Bot.-Turnier');
       document.write('Kuwait');
       }
       else
       {
       document.write('<td class="tab_16l">&nbsp;');
       document.write('Sieger Botschaftsturnier');
       }

       document.writeln('</td>');        

       if (klein == 1)
         //Andreas todo
         //z.Z. manuell scup       
         document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/com.gif"></td>');
         //document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/dba.gif"></td>');
       else
       {
       document.write('<td width="60"><img src="');
       //Andreas todo
       //z.Z. manuell scup
       document.write(flag1[0]);
       //document.write(flag1[0]);
       document.writeln('"></td>'); 
       }

       if (klein == 1)
       {
       document.write('<td class="tab_14bleft">&nbsp;');
       //Andreas todo
       //z.Z. manuell scup     
       //document.write('Sieger Sponsoren-Cup');
       document.write('Commerzbank');       
       }
       else
       {
       document.write('<td class="tab_16l">&nbsp;');
       document.write('Sieger Sponsoren-Cup');
       }


       document.writeln('</td>'); 
                     
       if (klein == 1)
         document.write('<td class="tab_14b" width="20">')
       else
         document.write('<td class="tab_16" width="30">');
       
       //Andreas todo
       //z.Z. manuell scup       
       //document.write('2');
       document.write('1');       
       document.writeln('</td>');
        
       document.write('<td class="tab_14b">');
       document.write(':');
       document.writeln('</td>');
        
       if (klein == 1)
         document.write('<td class="tab_14b" width="20">')
       else        
         document.write('<td class="tab_16" width="30">');

       //Andreas todo
       //z.Z. manuell scup          
       //document.write('4');
       document.write('3');       
       document.writeln('</td>');                     

       if ((sp_ges_n9ms[jahr][my] == 1) && (mit9m == 1))
         document.write('<td class="tab_12">nach 9-m</td>');
        
       // und das war es                     
       continue;    
       }

    document.writeln('<tr>');

    // laufende Nummer
    if (lfdnranz == 1)
      {
      document.write('<td class="tab_14">');
      document.write(sp_ges_spnr[jahr][my]);
      document.writeln('</td>');
      }

    // Turnierbuchstaben anzeigen
    if (sp_ges_tunr[jahr][my] == 0)
      {
      if (turnier == 1)
        {
        document.write('<td class="tab_14" style="background-color:#FF9900; text-align:center;">');
        document.write('B');
        document.writeln('</td>');
        }
      }
    else  
      {
      if (turnier == 1)
        {
        document.write('<td class="tab_14" style="background-color:#00FFCC; text-align:center;">');
        document.write('S');
        document.writeln('</td>');
        }
      }
      
    
    // Botschaftsturnier
    if (sp_ges_tunr[jahr][my] == 0)
      {

      if (klein == 1)
      document.write('<td class="tab_14b" width="50">')
      else
      document.write('<td class="tab_14r1b">');
      document.write(sp_ges_tusp[jahr][my]);
      document.writeln('</td>');

      if (klein == 1)
        document.write('<td width="50" ')
      else
        document.write('<td ');      
        
       switch (sg[jahr + 4][sp_ges_tusp[jahr][my] - 1]) {
       case "A":
         document.writeln('style="background-color:#FF6666; text-align:center;"><b>');
         break;
       case "B":
         document.writeln('style="background-color:#99CCFF; text-align:center;"><b>');
         break;
       case "C":
         document.writeln('style="background-color:#FFFF66; text-align:center;"><b>');
         break;
       case "D":
         document.writeln('style="background-color:#99FF33; text-align:center;"><b>');
         break;
       case "I":
         document.writeln('style="background-color:#FF6666; text-align:center;"><b>');
         break;
       case "II":
         document.writeln('style="background-color:#99CCFF; text-align:center;"><b>');
         break;
       case "H1":
         document.writeln('style="background-color:#CC66FF; text-align:center;"><b>');
         break;
       case "H2":
         document.writeln('style="background-color:#CC66FF; text-align:center;"><b>');
         break;       
       case "P":
         document.writeln('style="background-color:#FFCCCC; text-align:center;"><b>');
         break;
       case "F":
         document.writeln('style="background-color:#FFCC33; text-align:center;"><b>');
         break;
       }
      document.write(sg[jahr + 4][sp_ges_tusp[jahr][my] - 1]);
      document.writeln('</td>');

      if (klein == 1)
        document.write('<td class="tab_14b" width="50">')
      else
        document.write('<td class="tab_14r1b">');
      document.write(sz[jahr + 4][sp_ges_tusp[jahr][my] - 1]);
      document.writeln('</td>');


      if (my >= s_letztv)
        {
        if (my < s_letztz)
        {


        if (ausversion == 1)
        {


        if (flag == 0)
        {
        if (klein == 1)
          {
            if (kurz[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]]] == 'o_s')
            {
            document.write('<td width="38"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
            }
            else
            {           
            if (gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]] == 0)
              {
              document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>');
              }
            else            
              {
              document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
              document.write(kurz[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]]]);
              document.writeln('.gif"></td>');
              }
            }        
          }
        else
          {
          document.write('<td width="60"><img src="');
          document.write(flag1[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]]]);
          document.writeln('"></td>');
          }
        }
                
        if (klein == 1)
          document.write('<td class="tab_14bleft">&nbsp;')
        else
          document.write('<td class="tab_16l">&nbsp;');

        if (gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]] == 0)
          {
          document.write(gzwi5t[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]]);
          }
        else 
          {
          if (kurzanz == 0)
            document.write(bots[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]]]);
          else
            document.write(mann[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]]]);
          }

        if ( mannr == 1)
          // Ausgabe Nummer Mannschaft
          document.write('&nbsp;&nbsp' + gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]]);  


        document.writeln('</td>');

        if (flag == 0)
        {
        if (klein == 1)
          {
            if (kurz[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]]] == 'o_s')
            {
            document.write('<td width="38"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
            }
            else
            {
          if (gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]] == 0)
            {
            document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>');
            }
          else            
            {
            document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            document.write(kurz[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]]]);
            document.writeln('.gif"></td>');
            } 
            }       
          }
        else
          {        
          document.write('<td width="60"><img src="');
          document.write(flag1[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]]]);
          document.writeln('"></td>');
          }
        }

        if (klein == 1)
        document.write('<td class="tab_14bleft">&nbsp;')
        else
        document.write('<td class="tab_16l">&nbsp;');

          if (gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]] == 0)
            {
            document.write(gzwi5t[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]]);
            }
          else 
        {        
        if (kurzanz == 0)
          document.write(bots[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]]])
        else
          document.write(mann[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]]]);
          }
          
         if ( mannr == 1)
           // Ausgabe Nummer
           document.write('&nbsp;&nbsp' + gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]]);  
          
        document.writeln('</td>');

        if (klein == 1)
        document.write('<td class="tab_14b" width="20">')
        else
        document.write('<td class="tab_16" width="30">');
        
        if (toreanzeigen == 1)
          document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
        
        document.writeln('</td>');
        
        document.write('<td class="tab_14b" width="20">');
        
        if (toreanzeigen == 1)
          document.write(':');
        
        document.writeln('</td>');
        
        if (klein == 1)
        document.write('<td class="tab_14b" width="20">')
        else        
        document.write('<td class="tab_16" width="30">');
        
        if (toreanzeigen == 1)
          document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
        
        document.writeln('</td>');

        }

        else

        {

          //document.write('<td class="tab_14b">');
          //document.write('Zwischenrunde');
          //document.writeln('</td>');
          
          if (klein == 1)
          document.write('<td class="tab_14">');
          else
          document.write('<td class="tab_14r1b">');          
          if (gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]] == 0)
            {
            document.write(gzwi5t[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]]);
            }
          else
            {
            if (kurzanz == 0)
              document.write(bots[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]]])
            else
              document.write(mann[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][0]]]);
            }
          document.writeln('</td>');

          document.write('<td class="tab_14" width="30">');
          document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write('&nbsp;:&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          document.write('&nbsp;');
          document.writeln('</td>');
          
        if (klein == 1)
        document.write('<td class="tab_14">')
        else
          document.write('<td class="tab_14r1b">');
          if (gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]] == 0)
            {
            document.write(gzwi5t[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]]);
            }
          else
            {
            if (kurzanz == 0)
              document.write(bots[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]]])
            else
              document.write(mann[gzwi5[igruppe][bot4system[sp_ges_tusp[jahr][my] - 1][1]]]);
            }
          document.writeln('</td>');

          }

          igruppe++;
          if (igruppe > 1) igruppe = 0;

        }

        // Halbfinale 1
        if (my == s_halb1 - 1)
          {

//alert(hf1[0])
//alert(l_spnr[0])
//alert(s_letztz)

          // nach letzten Gruppenspiel
          // todo ???? 
          // if ((hf1[0] > 0) && (hf1[1] > 0) && (l_spnr[0] >= s_letztz))
          //if ((hf1[0] > 0) && (hf1[1] > 0))  
          
          // aa todo
          if (ghf5[0][0] > 0)      
          {
      	  
          if (ausversion == 1)
      	  {
 	  
          //Andreas todo
          if (flag == 0)
            {
            //document.write('<td class="tab_14bleft" width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            //document.write(kurz[ghf5[0][0]]);        
            //document.writeln('.gif"></td>');
            //neu:
            if (klein == 1)
              {
                if (ghf5[0][0] == 51)  // o_s
                  {
                  document.write('<td width="38"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
                  }
                else
                  {
                  if (ghf5[0][0] == 0)
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>');
                    }
                  else            
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
                    document.write(kurz[ghf5[0][0]]);
                    document.writeln('.gif"></td>');
                    } 
                  }       
              }
            else
              {        
              document.write('<td width="60"><img src="');
              document.write(flag1[ghf5[0][0]]);
              document.writeln('"></td>');
              }

           
            if (klein == 1)
              document.write('<td class="tab_14bleft">&nbsp;')
            else
              document.write('<td class="tab_16l">&nbsp;');
            
            if (kurzanz == 0)
              document.write(bots[ghf5[0][0]])
            else
              document.write(mann[ghf5[0][0]]);
            
            document.writeln('</td>');
            } 
          else     	  
            {     	  
      	    document.write('<td width="60"><img src="');
      	    document.write(flag1[hf1[0]]);
      	    document.writeln('"></td>');

            document.write('<td class="tab_16l">&nbsp;');
            if (kurzanz == 0)
              document.write(bots[hf1[0]])
            else
              document.write(mann[hf1[0]]);
            document.writeln('</td>');
            }

          //Andreas todo
          if (flag == 0)
            {
            //document.write('<td class="tab_14bleft" width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            //document.write(kurz[ghf5[0][1]]);
            //document.writeln('.gif"></td>');
            //neu:
            if (klein == 1)
              {
                if (ghf5[0][1] == 51)  // o_s
                  {
                  document.write('<td width="38"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
                  }
                else
                  {
                  if (ghf5[0][1] == 0)
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>');
                    }
                  else            
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
                    document.write(kurz[ghf5[0][1]]);
                    document.writeln('.gif"></td>');
                    } 
                  }       
              }
            else
              {        
              document.write('<td width="60"><img src="');
              document.write(flag1[ghf5[0][1]]);
              document.writeln('"></td>');
              }            
            if (klein == 1)
              document.write('<td class="tab_14bleft">&nbsp;')
            else
              document.write('<td class="tab_16l">&nbsp;');
           
            if (kurzanz == 0)
              document.write(bots[ghf5[0][1]])
            else
              document.write(mann[ghf5[0][1]]);
           
            document.writeln('</td>');
            
            // ad 21.05.2009
            if (klein == 1)
              document.write('<td class="tab_14b" width="20">')
            else
              document.write('<td class="tab_16" width="30">');
            
            document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
            document.writeln('</td>');
            document.write('<td class="tab_14b" width="20">');
            document.write(':');
            document.writeln('</td>');
            // ad 21.05.2009
            if (klein == 1)
              document.write('<td class="tab_14b" width="20">')
            else
              document.write('<td class="tab_16" width="30">');
            document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
            document.writeln('</td>');      
            
            if ((sp_ges_n9ms[jahr][my] == 1) && (mit9m == 1))
              document.write('<td class="tab_12">nach 9-m</td>');        
            } 
            else
            {     
            document.write('<td width="60"><img src="');
            document.write(flag1[hf1[1]]);
            document.writeln('"></td>');
  
            document.write('<td class="tab_16l">&nbsp;');
            if (kurzanz == 0)
              document.write(bots[hf1[1]])
            else
              document.write(mann[hf1[1]]);
            document.writeln('</td>');
  
            document.write('<td class="tab_16" width="30">');
            document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
            document.writeln('</td>');
            document.write('<td class="tab_14b">');
            document.write(':');
            document.writeln('</td>');
            document.write('<td class="tab_16" width="30">');
            document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
            document.writeln('</td>');             
            }
          
          }
          else
          {
          document.write('<td width="60"><img src="');
          document.write(flag1[hf1[0]]);
          document.writeln('"></td>');

          document.write('<td class="tab_16">');
          if (kurzanz == 0)
            document.write(bots[hf1[0]])
          else
            document.write(mann[hf1[0]]);
          document.writeln('</td>');

          document.write('<td class="tab_16" width="30">');
          document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write(':');
          document.writeln('</td>');
          document.write('<td class="tab_16" width="30">');
          document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');

          document.write('<td class="tab_16">');
          if (kurzanz == 0)
            document.write(bots[hf1[1]])
          else
            document.write(mann[hf1[1]]);
          document.writeln('</td>');

          document.write('<td width="60"><img src="');
          document.write(flag1[hf1[1]]);
          document.writeln('"></td>');
          }

          }
          else
          {
          if (ausversion == 1)
          {
          
          if (klein == 1)
          document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>')          
          else
          {
          document.write('<td class="tab_14" width="30">');
          document.write('<img src="D_Fahnen/leer.gif">');
          document.writeln('</td>');
          }
          
          if (klein == 1)
          document.write('<td class="tab_14bleft">&nbsp;')
          else
          document.write('<td class="tab_16l">&nbsp;');  
          document.write(ghf5t[0][0]);
          document.writeln('</td>');
          
          if (klein == 1)
          document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>')          
          else
          {          
          document.write('<td class="tab_14" width="30">');
          document.write('<img src="D_Fahnen/leer.gif">');
          document.writeln('</td>');
          }
          
          if (klein == 1)
          document.write('<td class="tab_14bleft">&nbsp;')
          else            
          document.write('<td class="tab_16l">&nbsp;');              
          document.write(ghf5t[0][1]);
          document.writeln('</td>');
          
          document.write('<td class="tab_14" width="30">');
          // ad 22.05.2009          
          //document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write('&nbsp;:&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          // ad 22.05.2009             
          //document.write('&nbsp;');
          document.writeln('</td>');
          }
          else
          {
          document.write('<td class="tab_14r1b">');
          document.write(ghf5t[0][0]);
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write('&nbsp;:&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14r1b">');
          document.write(ghf5t[0][1]);
          document.writeln('</td>');
          }
          }
          }
       // Halbfinale 2
        if (my == s_halb2 - 1)
          {

          // nach letzten Gruppenspiel
          // todo ???? 
          // if ((hf2[0] > 0) && (hf2[1] > 0) && (l_spnr[0] >= s_letztz))
          //if ((hf2[0] > 0) && (hf2[1] > 0))
          
          if (ghf5[1][0] > 0)     
          {
      	  
          if (ausversion == 1)
      	  {
      	  
      	  //Andreas todo
          if (flag == 0)
            {
            //document.write('<td class="tab_14bleft" width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            //document.write(kurz[ghf5[1][0]]);
            //document.writeln('.gif"></td>');
            //neu:
            if (klein == 1)
              {
                if (ghf5[1][0] == 51)  // o_s
                  {
                  document.write('<td width="38"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
                  }
                else
                  {
                  if (ghf5[1][0] == 0)
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>');
                    }
                  else            
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
                    document.write(kurz[ghf5[1][0]]);
                    document.writeln('.gif"></td>');
                    } 
                  }       
              }
            else
              {        
              document.write('<td width="60"><img src="');
              document.write(flag1[ghf5[1][0]]);
              document.writeln('"></td>');
              }              
            if (klein == 1)
              document.write('<td class="tab_14bleft">&nbsp;')
            else
              document.write('<td class="tab_16l">&nbsp;');
              
            if (kurzanz == 0)
              document.write(bots[ghf5[1][0]])
            else
              document.write(mann[ghf5[1][0]]);
            
            document.writeln('</td>');
        
            } 
          else     	  
            { 
        	  document.write('<td width="60"><img src="');
        	  document.write(flag1[hf2[0]]);
        	  document.writeln('"></td>');
  
            document.write('<td class="tab_16l">&nbsp;');
            if (kurzanz == 0)
              document.write(bots[hf2[0]])
            else
              document.write(mann[hf2[0]]);
            document.writeln('</td>');
            }

        	//Andreas todo
          if (flag == 0)
            {
            //document.write('<td class="tab_14bleft" width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            //document.write(kurz[ghf5[1][1]]);
            //document.writeln('.gif"></td>');
            //neu:
            if (klein == 1)
              {
                if (ghf5[1][1] == 51)  // o_s
                  {
                  document.write('<td width="38"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
                  }
                else
                  {
                  if (ghf5[1][1] == 0)
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>');
                    }
                  else            
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
                    document.write(kurz[ghf5[1][1]]);
                    document.writeln('.gif"></td>');
                    } 
                  }       
              }
            else
              {        
              document.write('<td width="60"><img src="');
              document.write(flag1[ghf5[1][1]]);
              document.writeln('"></td>');
              }              
            if (klein == 1)
              document.write('<td class="tab_14bleft">&nbsp;')
            else
              document.write('<td class="tab_16l">&nbsp;');
          
            if (kurzanz == 0)
              document.write(bots[ghf5[1][1]])
            else
              document.write(mann[ghf5[1][1]]);
          
            document.writeln('</td>');
          
            // ad 21.05.2009
            if (klein == 1)
              document.write('<td class="tab_14b" width="20">')
            else
              document.write('<td class="tab_16" width="30">');
            document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
            document.writeln('</td>');
            document.write('<td class="tab_14b" width="20">');
            document.write(':');
            document.writeln('</td>');
            // ad 21.05.2009
            if (klein == 1)
              document.write('<td class="tab_14b" width="20">')
            else
              document.write('<td class="tab_16" width="30">');
            document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
            document.writeln('</td>');              

            if ((sp_ges_n9ms[jahr][my] == 1) && (mit9m == 1))
              document.write('<td class="tab_12">nach 9-m</td>');   
            } 
          else
          { 

          document.write('<td width="60"><img src="');
          document.write(flag1[hf2[1]]);
          document.writeln('"></td>');

          document.write('<td class="tab_16l">&nbsp;');
          if (kurzanz == 0)
            document.write(bots[hf2[1]])
          else
            document.write(mann[hf2[1]]);
          document.writeln('</td>');

          document.write('<td class="tab_16" width="30">');
          document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write(':');
          document.writeln('</td>');
          document.write('<td class="tab_16" width="30">');
          document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          }
          }
          else
          {
          document.write('<td width="60"><img src="');
          document.write(flag1[hf2[0]]);
          document.writeln('"></td>');

          document.write('<td class="tab_16">');
          if (kurzanz == 0)
            document.write(bots[hf2[0]])
          else
            document.write(mann[hf2[0]]);
          document.writeln('</td>');

          document.write('<td class="tab_16" width="30">');
          document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write(':');
          document.writeln('</td>');
          document.write('<td class="tab_16" width="30">');
          document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');

          document.write('<td class="tab_16">');
          if (kurzanz == 0)
            document.write(bots[hf2[1]])
          else
            document.write(mann[hf2[1]]);
          document.writeln('</td>');

          document.write('<td width="60"><img src="');
          document.write(flag1[hf2[1]]);
          document.writeln('"></td>');
          }

          }
          else
          {
          if (ausversion == 1)
          {
          
          if (klein == 1)
          document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>')          
          else
          {
          document.write('<td class="tab_14" width="30">');
          document.write('<img src="D_Fahnen/leer.gif">');
          document.writeln('</td>');
          }
          
          if (klein == 1)
          document.write('<td class="tab_14bleft">&nbsp;')
          else
          document.write('<td class="tab_16l">&nbsp;');  
          document.write(ghf5t[1][0]);
          document.writeln('</td>');
          
          if (klein == 1)
          document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>')          
          else
          {          
          document.write('<td class="tab_14" width="30">');
          document.write('<img src="D_Fahnen/leer.gif">');
          document.writeln('</td>');
          }
          
          if (klein == 1)
          document.write('<td class="tab_14bleft">&nbsp;')
          else          
          document.write('<td class="tab_16l">&nbsp;');          
          document.write(ghf5t[1][1]);
          document.writeln('</td>');          
          
          document.write('<td class="tab_14" width="30">');
          // ad 22.05.2009
          //document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write('&nbsp;:&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          // ad 22.05.2009          
          //document.write('&nbsp;');
          document.writeln('</td>');
          }
          else
          {
          document.write('<td class="tab_14r1b">');
          document.write(ghf5t[1][0]);
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write('&nbsp;:&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14r1b">');
          document.write(ghf5t[1][1]);
          document.writeln('</td>');
          }
          }
          }

        // Platz 3
        if (my == s_platz3 - 1)
          {

          // todo 
          // nach Halbfinal !!!!!!!!!!!!!!!!
          // nach letzten Gruppenspiel
          // if ((platz3[0] > 0) && (l_spnr[0] > 62))
          //if (platz3[0] > 0)
          if (gpla5[0] > 0) 
          {
        	
          if (ausversion == 1)
        	{

          //Andreas todo
          if (flag == 0)
            {
            //document.write('<td class="tab_14bleft" width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            //document.write(kurz[gpla5[0]]);
            //document.writeln('.gif"></td>');
            //neu:
            if (klein == 1)
              {
                if (gpla5[0] == 51)  // o_s
                  {
                  document.write('<td width="38"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
                  }
                else
                  {
                  if (gpla5[0] == 0)
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>');
                    }
                  else            
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
                    document.write(kurz[gpla5[0]]);
                    document.writeln('.gif"></td>');
                    } 
                  }       
              }
            else
              {        
              document.write('<td width="60"><img src="');
              document.write(flag1[gpla5[0]]);
              document.writeln('"></td>');
              }              
            if (klein == 1)
              document.write('<td class="tab_14bleft">&nbsp;')
            else
              document.write('<td class="tab_16l">&nbsp;');
            if (kurzanz == 0)
              document.write(bots[gpla5[0]])
            else
              document.write(mann[gpla5[0]]);
            document.writeln('</td>');
            } 
          else
            {
          	document.write('<td width="60"><img src="');
          	document.write(flag1[platz3[0]]);
          	document.writeln('"></td>');
  
            document.write('<td class="tab_16l">&nbsp;');
            if (kurzanz == 0)
              document.write(bots[platz3[0]])
            else
              document.write(mann[platz3[0]]);
            document.writeln('</td>');
            }

          //Andreas todo
          if (flag == 0)
            {
            //document.write('<td class="tab_14bleft" width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            //document.write(kurz[gpla5[1]]);
            //document.writeln('.gif"></td>');
            //neu:
            if (klein == 1)
              {
                if (gpla5[1] == 51)  // o_s
                  {
                  document.write('<td width="38"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
                  }
                else
                  {
                  if (gpla5[1] == 0)
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>');
                    }
                  else            
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
                    document.write(kurz[gpla5[1]]);
                    document.writeln('.gif"></td>');
                    } 
                  }       
              }
            else
              {        
              document.write('<td width="60"><img src="');
              document.write(flag1[gpla5[1]]);
              document.writeln('"></td>');
              }             
            if (klein == 1)
              document.write('<td class="tab_14bleft">&nbsp;')
            else
              document.write('<td class="tab_16l">&nbsp;');
            if (kurzanz == 0)
              document.write(bots[gpla5[1]])
            else
              document.write(mann[gpla5[1]]);
            document.writeln('</td>');

          // ad 21.05.2009
          if (klein == 1)
            document.write('<td class="tab_14b" width="20">')
          else
            document.write('<td class="tab_16" width="30">');
          document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          document.write('<td class="tab_14b" width="20">');
          document.write(':');
          document.writeln('</td>');
            // ad 21.05.2009
            if (klein == 1)
              document.write('<td class="tab_14b" width="20">')
            else
              document.write('<td class="tab_16" width="30">');
          document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');    

       if ((sp_ges_n9ms[jahr][my] == 1) && (mit9m == 1))
            document.write('<td class="tab_12">nach 9-m</td>');                
                } 
              else
              {
          document.write('<td width="60"><img src="');
          document.write(flag1[platz3[1]]);
          document.writeln('"></td>');

          document.write('<td class="tab_16l">&nbsp;');
          if (kurzanz == 0)
            document.write(bots[platz3[1]])
          else
            document.write(mann[platz3[1]]);
          document.writeln('</td>');

          document.write('<td class="tab_16" width="30">');
          document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write(':');
          document.writeln('</td>');
          document.write('<td class="tab_16" width="30">');
          document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          
          }
          }
          else
          {
          document.write('<td width="60"><img src="');
          document.write(flag1[platz3[0]]);
          document.writeln('"></td>');

          document.write('<td class="tab_16">');
          if (kurzanz == 0)
            document.write(bots[platz3[0]])
          else
            document.write(mann[platz3[0]]);
          document.writeln('</td>');

          document.write('<td class="tab_16" width="30">');
          document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write(':');
          document.writeln('</td>');
          document.write('<td class="tab_16" width="30">');
          document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');

          document.write('<td class="tab_16">');
          if (kurzanz == 0)
            document.write(bots[platz3[1]])
          else
            document.write(mann[platz3[1]]);
          document.writeln('</td>');

          document.write('<td width="60"><img src="');
          document.write(flag1[platz3[1]]);
          document.writeln('"></td>');
          }

          }
          else
          {
          if (ausversion == 1)
          {
          
          if (klein == 1)
          document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>')          
          else
          {
          document.write('<td class="tab_14" width="30">');
          document.write('<img src="D_Fahnen/leer.gif">');
          document.writeln('</td>');
          }
          
          if (klein == 1)
          document.write('<td class="tab_14bleft">&nbsp;')
          else
          document.write('<td class="tab_16l">&nbsp;');          
          document.write(gpla5t[0]);
          document.writeln('</td>');
          
          if (klein == 1)
          document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>')          
          else
          {          
          document.write('<td class="tab_14" width="30">');
          document.write('<img src="D_Fahnen/leer.gif">');
          document.writeln('</td>');
          }
          
          if (klein == 1)
          document.write('<td class="tab_14bleft">&nbsp;')
          else          
          document.write('<td class="tab_16l">&nbsp;');                
          document.write(gpla5t[1]);
          document.writeln('</td>');             
          
          document.write('<td class="tab_14" width="30">');
          // ad 22.05.2009
          //document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write('&nbsp;:&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          // ad 22.05.2009
          //document.write('&nbsp;');
          document.writeln('</td>');
          }
          else
          {
          document.write('<td class="tab_14r1b">');
          document.write(gpla5t[0]);
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write('&nbsp;:&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14r1b">');
          document.write(gpla5t[1]);
          document.writeln('</td>');
          }
          }
          }
  
        
        // Finale
        if (my == s_final - 1)
          {
          
          
          // todo 
          // nach Halbfinal !!!!!!!!!!!!!!!!          
          // nach letzten Gruppenspiel
          //if ((finale[0] > 0) && (l_spnr[0] > 62))
          // if (finale[0] > 0)
          if (gfin5[0] > 0)
          {
       	  
          if (ausversion == 1)
        	{
        	
          //Andreas todo
          if (flag == 0)
            {
            //document.write('<td class="tab_14bleft" width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            //document.write(kurz[gfin5[0]]);
            //document.writeln('.gif"></td>');
            //neu:
            if (klein == 1)
              {
                if (gfin5[0] == 51)  // o_s
                  {
                  document.write('<td width="38"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
                  }
                else
                  {
                  if (gfin5[0] == 0)
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>');
                    }
                  else            
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
                    document.write(kurz[gfin5[0]]);
                    document.writeln('.gif"></td>');
                    } 
                  }       
              }
            else
              {        
              document.write('<td width="60"><img src="');
              document.write(flag1[gfin5[0]]);
              document.writeln('"></td>');
              } 
            
            if (klein == 1)
              document.write('<td class="tab_14bleft">&nbsp;')
            else
              document.write('<td class="tab_16l">&nbsp;');
              
                          if (kurzanz == 0)
                document.write(bots[gfin5[0]])
              else
                document.write(mann[gfin5[0]]);
              document.writeln('</td>');
                } 
              else
              {
        	
       	  document.write('<td width="60"><img src="');
       	  document.write(flag1[finale[0]]);
        	document.writeln('"></td>');

          document.write('<td class="tab_16l">&nbsp;');
          if (kurzanz == 0)
            document.write(bots[finale[0]])
          else
            document.write(mann[finale[0]]);
          document.writeln('</td>');
}

        	//Andreas todo
          if (flag == 0)
            {
            //document.write('<td class="tab_14bleft" width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            //document.write(kurz[gfin5[1]]);
            //document.writeln('.gif"></td>');
            //neu:
            if (klein == 1)
              {
                if (gfin5[1] == 51)  // o_s
                  {
                  document.write('<td width="38"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
                  }
                else
                  {
                  if (gfin5[1] == 0)
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>');
                    }
                  else            
                    {
                    document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
                    document.write(kurz[gfin5[1]]);
                    document.writeln('.gif"></td>');
                    } 
                  }       
              }
            else
              {        
              document.write('<td width="60"><img src="');
              document.write(flag1[gfin5[1]]);
              document.writeln('"></td>');
              } 
            
            if (klein == 1)
              document.write('<td class="tab_14bleft">&nbsp;')
            else
              document.write('<td class="tab_16l">&nbsp;');
                          if (kurzanz == 0)
                document.write(bots[gfin5[1]])
              else
                document.write(mann[gfin5[1]]);
              document.writeln('</td>');
            // ad 21.05.2009
            if (klein == 1)
              document.write('<td class="tab_14b" width="20">')
            else
              document.write('<td class="tab_16" width="30">');
          document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          document.write('<td class="tab_14b" width="20">');
          document.write(':');
          document.writeln('</td>');
            // ad 21.05.2009
            if (klein == 1)
              document.write('<td class="tab_14b" width="20">')
            else
              document.write('<td class="tab_16" width="30">');
          document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');              
          
       if ((sp_ges_n9ms[jahr][my] == 1) && (mit9m == 1))
            document.write('<td class="tab_12">nach 9-m</td>');            
                } 
              else
              {
          document.write('<td width="60"><img src="');
          document.write(flag1[gfin5[1]]);
          document.writeln('"></td>');

          document.write('<td class="tab_16l">&nbsp;');
          if (kurzanz == 0)
            document.write(bots[gfin5[1]])
          else
            document.write(mann[gfin5[1]]);
          document.writeln('</td>');

          document.write('<td class="tab_16" width="30">');
          document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write(':');
          document.writeln('</td>');
          document.write('<td class="tab_16" width="30">');
          document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          
          }
          
          
          }
          else
          {
          document.write('<td width="60"><img src="');
          document.write(flag1[finale[0]]);
          document.writeln('"></td>');

          document.write('<td class="tab_16">');
          if (kurzanz == 0)
            document.write(bots[finale[0]])
          else
            document.write(mann[finale[0]]);
          document.writeln('</td>');

          document.write('<td class="tab_16" width="30">');
          document.write(l_th[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write(':');
          document.writeln('</td>');
          document.write('<td class="tab_16" width="30">');
          document.write(l_ta[sp_ges_tusp[jahr][my] - 1]);
          document.writeln('</td>');

          document.write('<td class="tab_16">');
          if (kurzanz == 0)
            document.write(bots[finale[1]])
          else
            document.write(mann[finale[1]]);
          document.writeln('</td>');

          document.write('<td width="60"><img src="');
          document.write(flag1[finale[1]]);
          document.writeln('"></td>');
          }
          }
          else
          {
          if (ausversion == 1)
          {
          
          if (klein == 1)
          document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>')          
          else
          {
          document.write('<td class="tab_14" width="30">');
          document.write('<img src="D_Fahnen/leer.gif">');
          document.writeln('</td>');
          }
          
          if (klein == 1)
          document.write('<td class="tab_14bleft">&nbsp;')
          else
          document.write('<td class="tab_16l">&nbsp;');
          document.write(gfin5t[0]);
          document.writeln('</td>');
          
          if (klein == 1)
          document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/___.gif"></td>')          
          else
          {          
          document.write('<td class="tab_14" width="30">');
          document.write('<img src="D_Fahnen/leer.gif">');
          document.writeln('</td>');
          }
          
          if (klein == 1)
          document.write('<td class="tab_14bleft">&nbsp;')
          else          
          document.write('<td class="tab_16l">&nbsp;');       
          document.write(gfin5t[1]);
          document.writeln('</td>');          
          
          document.write('<td class="tab_14" width="30">');
          // ad 22.05.2009
          //document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write('&nbsp;:&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          // ad 22.05.2009
          //document.write('&nbsp;');
          document.writeln('</td>');
          }
          else
          {
          document.write('<td class="tab_14r1b">');
          document.write(gfin5t[0]);
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14b">');
          document.write('&nbsp;:&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14" width="30">');
          document.write('&nbsp;');
          document.writeln('</td>');
          document.write('<td class="tab_14r1b">');
          document.write(gfin5t[1]);
          document.writeln('</td>');
          }
          }
          }
        }
      else
        {

 //alert("Vorrunde");
 //alert(l_th[my]);

        if (ausversion == 1)
        {

        if (flag == 0)
        {
        if (klein == 1)
          {
            if (kurz[mh[jahr + 4][my]] == 'o_s')
            {
            document.write('<td width="40"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
            }
            else
            {
            document.write('<td width="40"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            document.write(kurz[mh[jahr + 4][my]]);
            document.writeln('.gif"></td>');
            }        
          }
        else
          {
          document.write('<td width="60"><img src="');
          document.write(flag1[mh[jahr + 4][my]]);
          document.writeln('"></td>');
  	      }
	      }
        
        if (klein == 1)
        document.write('<td class="tab_14bleft">&nbsp;')
        else
        document.write('<td class="tab_16l">&nbsp;');
        
        if (kurzanz == 0)
          document.write(bots[mh[jahr + 4][my]])
        else
          document.write(mann[mh[jahr + 4][my]]);
        document.writeln('</td>');

        if (flag == 0)
        {
        if (klein == 1)
          {
            if (kurz[ma[jahr + 4][my]] == 'o_s')
            {
            document.write('<td width="40"><img src="KFlaggen/aut.gif"><img src="KFlaggen/sui.gif"></td>');        
            }
            else
            {
            document.write('<td width="40"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
            document.write(kurz[ma[jahr + 4][my]]);
            document.writeln('.gif"></td>');
            }        
          }
        else
          {
          document.write('<td width="60"><img src="');
          document.write(flag1[ma[jahr + 4][my]]);
          document.writeln('"></td>');
          }
        }
        
        if (klein == 1)
        document.write('<td class="tab_14bleft">&nbsp;')
        else        
        document.write('<td class="tab_16l">&nbsp;');
        
        if (kurzanz == 0)
          document.write(bots[ma[jahr + 4][my]])
        else
          document.write(mann[ma[jahr + 4][my]]);
        document.writeln('</td>');

        if (klein == 1)
        document.write('<td class="tab_14b" width="20">')
        else  
        document.write('<td class="tab_16" width="30">');
        
        //alert(my)
        document.write(l_th[my]);
        document.writeln('</td>');
        document.write('<td class="tab_14b">');
        document.write(':');
        document.writeln('</td>');
        
        if (klein == 1)
        document.write('<td class="tab_14b" width="20">')
        else 
        document.write('<td class="tab_16" width="30">');
        
        document.write(l_ta[my]);
        document.writeln('</td>');

        }
        else
        {
        document.write('<td width="60"><img src="');
        document.write(flag1[mh[jahr + 4][my]]);
        document.writeln('"></td>');

        document.write('<td class="tab_16">');
        if (kurzanz == 0)
          document.write(bots[mh[jahr + 4][my]])
        else
          document.write(mann[mh[jahr + 4][my]]);
        document.writeln('</td>');

        document.write('<td class="tab_16" width="30">');
        document.write(l_th[my]);
        document.writeln('</td>');
        document.write('<td class="tab_14b">');
        document.write(':');
        document.writeln('</td>');
        document.write('<td class="tab_16" width="30">');
        document.write(l_ta[my]);
        document.writeln('</td>');

        document.write('<td class="tab_16">');
        if (kurzanz == 0)
          document.write(bots[ma[jahr + 4][my]])
        else
          document.write(mann[ma[jahr + 4][my]]);
        document.writeln('</td>');

        document.write('<td width="60"><img src="');
        document.write(flag1[ma[jahr + 4][my]]);
        document.writeln('"></td>');
        }

        igruppe++;
        if (igruppe > 3) igruppe = 0;

        }
      }
    else
    
    // Sponsorencup
    
      {

      if (klein == 1)
      document.write('<td class="tab_14b">')
      else
      document.write('<td class="tab_14r1b">');
      document.write(sp_ges_tusp[jahr][my]);
      document.writeln('</td>');

      if (klein == 1)
        document.write('<td width="50" ')
      else
        document.write('<td ');   

     //todo andere Farben als Botschaft

     switch (spon_sg[jahr - 2][sp_ges_tusp[jahr][my] - 1]) {
     case "A":
       document.writeln('style="background-color:#FFFF66; text-align:center;"><b>');
       break;
     case "B":
       document.writeln('style="background-color:#99FF33; text-align:center;"><b>');
       break;
     case "H1":
       document.writeln('style="background-color:#CC66FF; text-align:center;"><b>');
       break;
     case "H2":
       document.writeln('style="background-color:#CC66FF; text-align:center;"><b>');
       break;       
     case "P":
       document.writeln('style="background-color:#FFCCCC; text-align:center;"><b>');
       break;
     case "F":
       document.writeln('style="background-color:#FFCC33; text-align:center;"><b>');
       break;
     }
      document.write(spon_sg[jahr - 2][sp_ges_tusp[jahr][my] - 1]);
      document.writeln('</td>');


      if (klein == 1)
      document.write('<td class="tab_14b">')
      else
      document.write('<td class="tab_14r1b">');
      document.write(spon_sz[jahr-2][sp_ges_tusp[jahr][my] - 1]);
      document.writeln('</td>');


      sptr=sp_ges_tusp[jahr][my] - 1;

//alert(sptr);
//alert(spon_mh[jahr-2][sptr]);
//alert(sponmannk[spon_mh[jahr-2][sptr]]);
  
  switch (my) {
  case s_halb1s - 1:  
      if (spon_ghf5[0][0] != 0)
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
        document.write(spon_kurz[spon_ghf5[0][0]]);
        document.writeln('.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/');
        document.write(spon_kurz[spon_ghf5[0][0]]);
        document.writeln('.gif"></td>');
        }
      }
      else
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/leer.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/leer.gif"></td>');
        }
      }  
    break;
  case s_halb2s - 1:  
      if (spon_ghf5[1][0] != 0)
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
        document.write(spon_kurz[spon_ghf5[1][0]]);
        document.writeln('.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/');
        document.write(spon_kurz[spon_ghf5[1][0]]);
        document.writeln('.gif"></td>');
        }
      }
      else
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/leer.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/leer.gif"></td>');
        }
      }  
    break;  
  case s_platz3s - 1:
      if (spon_gpla5[0] != 0)
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
        document.write(spon_kurz[spon_gpla5[0]]);
        document.writeln('.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/');
        document.write(spon_kurz[spon_gpla5[0]]);
        document.writeln('.gif"></td>');
        }
      }
      else
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/leer.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/leer.gif"></td>');
        }
      }  
    break;   
  case s_finals - 1:
      if (spon_gfin5[0] != 0)
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
        document.write(spon_kurz[spon_gfin5[0]]);
        document.writeln('.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/');
        document.write(spon_kurz[spon_gfin5[0]]);
        document.writeln('.gif"></td>');
        }
      }
      else
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/leer.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/leer.gif"></td>');
        }
      }  
    break;          
  default:
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
        document.write(spon_kurz[spon_mh[jahr-2][sptr]]);
        document.writeln('.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/');
        document.write(spon_kurz[spon_mh[jahr-2][sptr]]);
        document.writeln('.gif"></td>');
        }
    break;
    }        
    
      if (klein == 1)
      document.write('<td class="tab_14bleft">&nbsp;')
      else
      document.write('<td class="tab_16l">&nbsp;');
      
      // todo 
      // Halbfinale 1
      if (my == s_halb1s - 1)
        {
        if (spon_ghf5[0][0] != 0)
          {
          if (kurzanz == 0)
            document.write(sponmannl[spon_ghf5[0][0]])
          else
            document.write(sponmannk[spon_ghf5[0][0]]);
          }
        else
          document.write(ghf5ts[0][0]);
        }
      else
      {
      if (my == s_halb2s - 1)
      {
        if (spon_ghf5[1][0] != 0)
          {
          if (kurzanz == 0)
            document.write(sponmannl[spon_ghf5[1][0]])
          else
            document.write(sponmannk[spon_ghf5[1][0]]);
          }
        else      
          document.write(ghf5ts[1][0]);
      }
      else
      {
      if (my == s_platz3s - 1)
      {
        if (spon_gpla5[0] != 0)
          {
          if (kurzanz == 0)
            document.write(sponmannl[spon_gpla5[0]])
          else
            document.write(sponmannk[spon_gpla5[0]]);
          }
        else        
          document.write(gpla5ts[0]);
      }
      else  
      {
      if (my == s_finals - 1)
      {
        if (spon_gfin5[0] != 0)
          {
          if (kurzanz == 0)
            document.write(sponmannl[spon_gfin5[0]])
          else
            document.write(sponmannk[spon_gfin5[0]]);
          }
        else 
         document.write(gfin5ts[0]);
      }
      else       
      {
      if (kurzanz == 0)
        document.write(sponmannl[spon_mh[jahr-2][sptr]])
      else
        document.write(sponmannk[spon_mh[jahr-2][sptr]]);
      }
      }
      }
      }
      
      document.writeln('</td>');

  switch (my) {
  case s_halb1s - 1:  
      if (spon_ghf5[0][1] != 0)
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
        document.write(spon_kurz[spon_ghf5[0][1]]);
        document.writeln('.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/');
        document.write(spon_kurz[spon_ghf5[0][1]]);
        document.writeln('.gif"></td>');
        }
      }
      else
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/leer.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/leer.gif"></td>');
        }
      }  
    break;
  case s_halb2s - 1:  
      if (spon_ghf5[1][1] != 0)
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
        document.write(spon_kurz[spon_ghf5[1][1]]);
        document.writeln('.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/');
        document.write(spon_kurz[spon_ghf5[1][1]]);
        document.writeln('.gif"></td>');
        }
      }
      else
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/leer.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/leer.gif"></td>');
        }
      }  
    break;  
  case s_platz3s - 1:
      if (spon_gpla5[1] != 0)
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
        document.write(spon_kurz[spon_gpla5[1]]);
        document.writeln('.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/');
        document.write(spon_kurz[spon_gpla5[1]]);
        document.writeln('.gif"></td>');
        }
      }
      else
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/leer.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/leer.gif"></td>');
        }
      }  
    break;   
  case s_finals - 1:
      if (spon_gfin5[1] != 0)
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
        document.write(spon_kurz[spon_gfin5[1]]);
        document.writeln('.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/');
        document.write(spon_kurz[spon_gfin5[1]]);
        document.writeln('.gif"></td>');
        }
      }
      else
      {
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/leer.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/leer.gif"></td>');
        }
      }  
    break;          
  default:
      if (klein == 1)
        {
        document.write('<td width="38"><img src="KFlaggen/xxx.gif"><img src="KFlaggen/');
        document.write(spon_kurz[spon_ma[jahr-2][sptr]]);
        document.writeln('.gif"></td>');
        }
      else
        {    
        document.write('<td width="30"><img src="D_Fahnen/');
        document.write(spon_kurz[spon_ma[jahr-2][sptr]]);
        document.writeln('.gif"></td>');
        }
    break;
    }  
        
        
        
      if (klein == 1)
        document.write('<td class="tab_14bleft">&nbsp;')
      else
        document.write('<td class="tab_16l">&nbsp;');
      
      // todo 
      // Halbfinale 1
      if (my == s_halb1s - 1)
      {
        if (spon_ghf5[0][1] != 0)
          {
          if (kurzanz == 0)
            document.write(sponmannl[spon_ghf5[0][1]])
          else
            document.write(sponmannk[spon_ghf5[0][1]]);
          }
        else
         document.write(ghf5ts[0][1]);
      }
      else
      {
      if (my == s_halb2s - 1)
      {
        if (spon_ghf5[1][1] != 0)
          {
          if (kurzanz == 0)
            document.write(sponmannl[spon_ghf5[1][1]])
          else
            document.write(sponmannk[spon_ghf5[1][1]]);
          }
        else
          document.write(ghf5ts[1][1]);
      }
      else
      {
      if (my == s_platz3s - 1)
      {
        if (spon_gpla5[1] != 0)
          {
          if (kurzanz == 0)
            document.write(sponmannl[spon_gpla5[1]])
          else
            document.write(sponmannk[spon_gpla5[1]]);
          }
        else        
          document.write(gpla5ts[1]);
      }
      else  
      {
      if (my == s_finals - 1)   
      {
        if (spon_gfin5[1] != 0)
          {
          if (kurzanz == 0)
            document.write(sponmannl[spon_gfin5[1]])
          else
            document.write(sponmannk[spon_gfin5[1]]);
          }
        else 
          document.write(gfin5ts[1]);
      }
      else       
      {
      if (kurzanz == 0)
        document.write(sponmannl[spon_ma[jahr-2][sptr]])
      else
        document.write(sponmannk[spon_ma[jahr-2][sptr]]);
      }
      }
      }
      }
      
      document.writeln('</td>');

      if (klein == 1)
      document.write('<td class="tab_14b" width="20">')
      else
      document.write('<td class="tab_16" width="30">');
      
      
      if ((toreanzeigen == 1) || (my >= s_halb1s - 1))
        document.write(l_spon_th[sptr]);
      
      document.writeln('</td>');
      document.write('<td class="tab_14b">');
      
      if ((toreanzeigen == 1) || (my >= s_halb1s - 1))   
        document.write(':');
      
      document.writeln('</td>');
      if (klein == 1)
      document.write('<td class="tab_14b" width="20">')
      else      
      document.write('<td class="tab_16" width="30">');

      if ((toreanzeigen == 1) || (my >= s_halb1s - 1))     
        document.write(l_spon_ta[sptr]);
      
      document.writeln('</td>');

       if ((sp_ges_n9ms[jahr][my] == 1) && (mit9m == 1))
        document.write('<td class="tab_12">nach 9-m</td>');  

//          igruppe++;
//          if (igruppe > 1) igruppe = 0;

      }
    document.writeln('</tr>');

    // Leerzeile ??????? todo
    if (klein != 1)
    {
    document.writeln('<tr><td>&nbsp;</td></tr>');
    }
    
    }
  document.writeln('</table>');
  }


// Traditionsturnier
function spielplan_x(jahr,von,bis,kurzanz,ausgabe)
  {
  var gerade = 0;


  zeitaend();


  if (kurzanz == 0)
    document.writeln('<table border="solid 1px #FFCC66" width="90%" cellpadding="0" cellspacing="0" class="tab_1" align="center" style="border:solid 1px #FFCC66">')
  else
    document.writeln('<table border="solid 1px #FFCC66" width="100%" cellpadding="0" cellspacing="0" class="tab_1" align="center" style="border:solid 1px #FFCC66">');

  for (var my = von; my < bis; my++)
    {
    document.writeln('<tr>');

    if (ausgabe == 1)
      document.write('<td class="tab_14r1b">');
    else
      document.write('<td class="tab_14r1b">');
      document.write(trad_sp[jahr][my]);
      document.writeln('</td>');

    if (ausgabe == 1)
      document.write('<td class="tab_14r1b">');
    else
      document.write('<td class="tab_14r1b">');
    document.write(trad_sz[jahr][my]);
    document.writeln('</td>');

    document.write('<td width="30"><img src="logoverein/t_');
    document.write(trad_kurz[trad_mh[jahr][my]]);
    document.writeln('.gif"></td>');

    if (ausgabe == 1)
      document.write('<td class="tab_14bleft">&nbsp;');
    else
      document.write('<td class="tab_14r1b">');
      if (kurzanz == 0)
        document.write(tradmannl[trad_mh[jahr][my]])
      else
        document.write(tradmannk[trad_mh[jahr][my]]);
      document.writeln('</td>');

    document.write('<td width="30"><img src="logoverein/t_');
    document.write(trad_kurz[trad_ma[jahr][my]]);
    document.writeln('.gif"></td>');

    if (ausgabe == 1)
      document.write('<td class="tab_14bleft">&nbsp;');
    else
      document.write('<td class="tab_14r1b">');
      if (kurzanz == 0)
        document.write(tradmannl[trad_ma[jahr][my]])
      else
        document.write(tradmannk[trad_ma[jahr][my]]);
      document.writeln('</td>');

    if (ausgabe == 1)
      document.write('<td class="tab_16" width="30">');
    else
      document.write('<td class="tab_14" width="30">');
      document.write(l_trad_th[my]);
      document.writeln('</td>');
      document.write('<td class="tab_14b">');
      document.write(':');
      document.writeln('</td>');
    if (ausgabe == 1)
      document.write('<td class="tab_16" width="30">');
    else
      document.write('<td class="tab_14" width="30">');
      document.write(l_trad_ta[my]);
      document.writeln('</td>');

    document.writeln('</tr>');

    document.writeln('<tr height="4"><td height="4" style="font-size:4px;">&nbsp;</td></tr>');
    }

  document.writeln('</table>');
  }

