if(Anz[7]!=0){
//Woche
woc="";mawg=0;chwg=0;mahg=0;chhg=0;
for(i=1;i<8;i++){mawg=mawg+maw[i];chwg=chwg+chw[i]}
for(i=1;i<25;i++){mahg=mahg+mah[i];chhg=chhg+chh[i]}
wom=maw.length;stm=mah.length;
woc=woc+"<table class=bl width=99% align=center><tr><th class=rw1 colspan=5><u>Matches & Challenges</u></th></tr>";
woc=woc+"<tr><th class=rw2 width=10%> </th><th colspan=2 class=rw2>Matches</th><th colspan=2 class=rw2>Challenges</th></tr>";
woc=woc+"<tr><th class=rw2>Gesmt</th><th colspan=2 class=rw3>"+mawg+"</th><th colspan=2 class=rw3>"+chwg+"</th></tr><tr><th class=rw2 colspan=5>Verteilung auf Wochentage</th></tr>";
woc=woc+"<tr><th class=rw2>Mo<br>Di<br>Mi<br>Do<br>Fr<br>Sa<br>So</th><th width=5% align=right class=rw3>";
/*Match Woche*/
max=Math.max(maw[1],maw[2],maw[3],maw[4],maw[5],maw[6],maw[7]);
pr=(max*100)/mawg;mul[0]=(100/pr);
for(i=1;i<wom;i++){woc=woc+maw[i]+" <br>"}
woc=woc+"</th><th width=40% align=left class=rw3>";
for(i=1;i<wom;i++){pro=(maw[i]*a)/mawg;if(pro==0||isNaN(pro)==true){woc=woc+"<br>"}else{woc=woc+tb1+pro*mul[0];woc=woc+"% bgcolor="+f[0]+">"+tb2}}
woc=woc+"</th><th width=5% align=right class=rw3>";
/*Chalanges Woche*/
max=Math.max(chw[1],chw[2],chw[3],chw[4],chw[5],chw[6],chw[7]);
pr=(max*100)/chwg;mul[1]=(100/pr);
for(i=1;i<wom;i++){woc=woc+chw[i]+" <br>";}
woc=woc+"</th><th width=40% align=left class=rw3>";
for(i=1;i<wom;i++){pro=(chw[i]*a)/chwg;if(pro==0||isNaN(pro)==true){woc=woc+"<br>"}else{woc=woc+tb1+pro*mul[1];woc=woc+"% bgcolor="+f[1]+">"+tb2}}
woc=woc+"</th></tr><tr><th class=rw2 colspan=5>Verteilung auf Uhrzeit</th></tr>";
/*Match & Chalange Std*/
for(go=1;go<=3;go++){
if(go==1){woc=woc+"<tr><th class=rw2>";for(i=0;i<8;i++){woc=woc+i+" bis "+(i+1)+"<br>"};woc=woc+"</th><th width=5% align=right class=rw3>";tvo=1;tgo=9}
if(go==2){woc=woc+"<tr><th class=rw2>";for(i=8;i<9;i++){woc=woc+i+" bis "+(i+1)+"<br>"};for(i=9;i<10;i++){woc=woc+"&nbsp;&nbsp;"+i+" bis "+(i+1)+"<br>"};for(i=10;i<16;i++){woc=woc+i+" bis "+(i+1)+"<br>"};woc=woc+"</th><th width=5% align=right class=rw3>";tvo=9;tgo=17}
if(go==3){woc=woc+"<tr><th class=rw2>";for(i=16;i<24;i++){woc=woc+i+" bis "+(i+1)+"<br>"};woc=woc+"</th><th width=5% align=right class=rw3>";tvo=17;tgo=stm}
for(i=tvo;i<tgo;i++){woc=woc+mah[i]+" <br>"}
woc=woc+"</th><th width=40% align=left class=rw3>";
max=Math.max(mah[1],mah[2],mah[3],mah[4],mah[5],mah[6],mah[7],mah[8],mah[9],mah[10],mah[11],mah[12],mah[13],mah[14],mah[15],mah[16],mah[17],mah[18],mah[19],mah[20],mah[21],mah[22],mah[23],mah[24]);
pr=(max*100)/mahg;mul[2]=(100/pr);
for(i=tvo;i<tgo;i++){pro=(mah[i]*a)/mahg;if(pro==0||isNaN(pro)==true){woc=woc+"<br>"}else{woc=woc+tb1+pro*mul[2];woc=woc+"% bgcolor="+f[0]+">"+tb2}}
woc=woc+"</th><th width=5% align=right class=rw3>";
/*Chalanges Std*/
for(i=tvo;i<tgo;i++){woc=woc+chh[i]+" <br>"}
woc=woc+"</th><th width=40% align=left class=rw3>";
max=Math.max(chh[1],chh[2],chh[3],chh[4],chh[5],chh[6],chh[7],chh[8],chh[9],chh[10],chh[11],chh[12],chh[13],chh[14],chh[15],chh[16],chh[17],chh[18],chh[19],chh[20],chh[21],chh[22],chh[23],chh[24]);
pr=(max*100)/chhg;mul[3]=(100/pr);
for(i=tvo;i<tgo;i++){pro=(chh[i]*a)/chhg;if(pro==0||isNaN(pro)==true){woc=woc+"<br>"}else{woc=woc+tb1+pro*mul[3];woc=woc+"% bgcolor="+f[1]+">"+tb2}}
woc=woc+"</th></tr>"}
woc=woc+"</table>";
document.write(woc);
}