var a, b, k, Verbrauch, Ladereserve, Einsatztage, Strahlung;
 var Standort=new Array (18);

 for (a=0; a<18; a++)
 {
 Standort[a]=new Array(14);
 }

Standort[1][0]="Berlin";
Standort[1][1]="0.64";
Standort[1][2]="1.22";
Standort[1][3]="2.2";
Standort[1][4]="3.64";
Standort[1][5]="4.97";
Standort[1][6]="5";
Standort[1][7]="4.75";
Standort[1][8]="4.5";
Standort[1][9]="2.9";
Standort[1][10]="1.58";
Standort[1][11]="0.95";
Standort[1][12]="0.64";

Standort[2][0]="Bonn";
Standort[2][1]="0.74";
Standort[2][2]="1.32";
Standort[2][3]="2.2";
Standort[2][4]="3.71";
Standort[2][5]="4.94";
Standort[2][6]="5.22";
Standort[2][7]="4.87";
Standort[2][8]="4.58";
Standort[2][9]="2.79";
Standort[2][10]="1.75";
Standort[2][11]="0.9";
Standort[2][12]="0.74";

Standort[3][0]="Braunschweig";
Standort[3][1]="0.67";
Standort[3][2]="1.27";
Standort[3][3]="2.14";
Standort[3][4]="3.69";
Standort[3][5]="5.06";
Standort[3][6]="5.37";
Standort[3][7]="5.02";
Standort[3][8]="4.52";
Standort[3][9]="2.83";
Standort[3][10]="1.65";
Standort[3][11]="0.75";
Standort[3][12]="0.67";

Standort[4][0]="Freiburg";
Standort[4][1]="0.91";
Standort[4][2]="1.68";
Standort[4][3]="2.7";
Standort[4][4]="4.04";
Standort[4][5]="5.11";
Standort[4][6]="5.74";
Standort[4][7]="5.56";
Standort[4][8]="4.96";
Standort[4][9]="3.38";
Standort[4][10]="2.07";
Standort[4][11]="1.13";
Standort[4][12]="0.91";

Standort[5][0]="Hamburg";
Standort[5][1]="0.57";
Standort[5][2]="1.06";
Standort[5][3]="2.13";
Standort[5][4]="3.5";
Standort[5][5]="4.99";
Standort[5][6]="4.89";
Standort[5][7]="5.01";
Standort[5][8]="4.43";
Standort[5][9]="2.67";
Standort[5][10]="1.53";
Standort[5][11]="0.69";
Standort[5][12]="0.57";

Standort[6][0]="Kassel";
Standort[6][1]="0.68";
Standort[6][2]="1.37";
Standort[6][3]="2.24";
Standort[6][4]="3.69";
Standort[6][5]="4.87";
Standort[6][6]="5.12";
Standort[6][7]="4.88";
Standort[6][8]="4.43";
Standort[6][9]="2.77";
Standort[6][10]="1.55";
Standort[6][11]="0.71";
Standort[6][12]="0.68";

Standort[7][0]="Mannheim";
Standort[7][1]="0.82";
Standort[7][2]="1.5";
Standort[7][3]="2.41";
Standort[7][4]="3.91";
Standort[7][5]="5.05";
Standort[7][6]="5.47";
Standort[7][7]="5.15";
Standort[7][8]="4.77";
Standort[7][9]="3.02";
Standort[7][10]="1.78";
Standort[7][11]="0.91";
Standort[7][12]="0.82";

Standort[8][0]="Norderny";
Standort[8][1]="0.63";
Standort[8][2]="1.27";
Standort[8][3]="2.34";
Standort[8][4]="3.99";
Standort[8][5]="5.41";
Standort[8][6]="5.38";
Standort[8][7]="5.26";
Standort[8][8]="4.67";
Standort[8][9]="2.89";
Standort[8][10]="1.64";
Standort[8][11]="0.74";
Standort[8][12]="0.63";

Standort[9][0]="Nürnberg";
Standort[9][1]="0.87";
Standort[9][2]="1.54";
Standort[9][3]="2.44";
Standort[9][4]="3.84";
Standort[9][5]="5.11";
Standort[9][6]="5.27";
Standort[9][7]="4.9";
Standort[9][8]="4.56";
Standort[9][9]="2.74";
Standort[9][10]="1.71";
Standort[9][11]="0.9";
Standort[9][12]="0.87";

Standort[10][0]="Osnabrück";
Standort[10][1]="0.69";
Standort[10][2]="1.53";
Standort[10][3]="2.14";
Standort[10][4]="3.6";
Standort[10][5]="4.9";
Standort[10][6]="5.12";
Standort[10][7]="4.92";
Standort[10][8]="4.45";
Standort[10][9]="2.78";
Standort[10][10]="1.67";
Standort[10][11]="0.81";
Standort[10][12]="0.69";

Standort[11][0]="Passau";
Standort[11][1]="0.97";
Standort[11][2]="1.66";
Standort[11][3]="2.84";
Standort[11][4]="3.59";
Standort[11][5]="4.83";
Standort[11][6]="5.02";
Standort[11][7]="5.59";
Standort[11][8]="4.24";
Standort[11][9]="2.81";
Standort[11][10]="1.95";
Standort[11][11]="0.9";
Standort[11][12]="0.97";

Standort[12][0]="Saarbrücken";
Standort[12][1]="0.84";
Standort[12][2]="1.5";
Standort[12][3]="2.49";
Standort[12][4]="3.93";
Standort[12][5]="5.2";
Standort[12][6]="5.76";
Standort[12][7]="5.38";
Standort[12][8]="4.92";
Standort[12][9]="3.13";
Standort[12][10]="1.83";
Standort[12][11]="0.92";
Standort[12][12]="0.84";

Standort[13][0]="Stuttgart";
Standort[13][1]="0.98";
Standort[13][2]="1.69";
Standort[13][3]="2.57";
Standort[13][4]="4.03";
Standort[13][5]="5.23";
Standort[13][6]="5.54";
Standort[13][7]="5.42";
Standort[13][8]="5.61";
Standort[13][9]="3.26";
Standort[13][10]="1.99";
Standort[13][11]="1.08";
Standort[13][12]="0.98";

Standort[14][0]="Trier";
Standort[14][1]="0.78";
Standort[14][2]="1.36";
Standort[14][3]="2.42";
Standort[14][4]="3.83";
Standort[14][5]="5.1";
Standort[14][6]="5.53";
Standort[14][7]="5.21";
Standort[14][8]="4.78";
Standort[14][9]="2.98";
Standort[14][10]="1.77";
Standort[14][11]="0.87";
Standort[14][12]="0.78";

Standort[15][0]="Würzburg";
Standort[15][1]="0.85";
Standort[15][2]="1.61";
Standort[15][3]="2.51";
Standort[15][4]="4";
Standort[15][5]="5.24";
Standort[15][6]="5.59";
Standort[15][7]="5.34";
Standort[15][8]="4.89";
Standort[15][9]="3.12";
Standort[15][10]="1.81";
Standort[15][11]="0.89";
Standort[15][12]="0.85";

Standort[16][0]="Athen";
Standort[16][1]="2.55";
Standort[16][2]="3.3";
Standort[16][3]="4.62";
Standort[16][4]="6.15";
Standort[16][5]="7.0";
Standort[16][6]="8.15";
Standort[16][7]="8.15";
Standort[16][8]="7.45";
Standort[16][9]="6.25";
Standort[16][10]="4.4";
Standort[16][11]="2.85";
Standort[16][12]="2.23";


 var Modulausrichtung=new Array (14);

 for (a=0; a<11; a++)
 {
 Modulausrichtung[a]=new Array(14);
 }


Modulausrichtung[1][1]="1";
Modulausrichtung[1][2]="1";
Modulausrichtung[1][3]="1";
Modulausrichtung[1][4]="1";
Modulausrichtung[1][5]="1";
Modulausrichtung[1][6]="1";
Modulausrichtung[1][7]="1";
Modulausrichtung[1][8]="1";
Modulausrichtung[1][9]="1";
Modulausrichtung[1][10]="1";
Modulausrichtung[1][11]="1";
Modulausrichtung[1][12]="1";


Modulausrichtung[2][1]="1.44";
Modulausrichtung[2][2]="1.4";
Modulausrichtung[2][3]="1.17";
Modulausrichtung[2][4]="1.08";
Modulausrichtung[2][5]="1";
Modulausrichtung[2][6]="0.96";
Modulausrichtung[2][7]="0.97";
Modulausrichtung[2][8]="1.03";
Modulausrichtung[2][9]="1.17";
Modulausrichtung[2][10]="1.3";
Modulausrichtung[2][11]="1.47";
Modulausrichtung[2][12]="1.42";

Modulausrichtung[3][1]="1.57";
Modulausrichtung[3][2]="1.5";
Modulausrichtung[3][3]="1.19";
Modulausrichtung[3][4]="1.05";
Modulausrichtung[3][5]="0.94";
Modulausrichtung[3][6]="0.9";
Modulausrichtung[3][7]="0.91";
Modulausrichtung[3][8]="1";
Modulausrichtung[3][9]="1.18";
Modulausrichtung[3][10]="1.37";
Modulausrichtung[3][11]="1.16";
Modulausrichtung[3][12]="1.55";

Modulausrichtung[4][1]="1.63";
Modulausrichtung[4][2]="1.54";
Modulausrichtung[4][3]="1.15";
Modulausrichtung[4][4]="0.98";
Modulausrichtung[4][5]="0.85";
Modulausrichtung[4][6]="0.81";
Modulausrichtung[4][7]="0.83";
Modulausrichtung[4][8]="0.92";
Modulausrichtung[4][9]="1.14";
Modulausrichtung[4][10]="1.38";
Modulausrichtung[4][11]="1.68";
Modulausrichtung[4][12]="1.61";

Modulausrichtung[5][1]="1.37";
Modulausrichtung[5][2]="1.33";
Modulausrichtung[5][3]="1.15";
Modulausrichtung[5][4]="1.07";
Modulausrichtung[5][5]="1";
Modulausrichtung[5][6]="0.97";
Modulausrichtung[5][7]="0.98";
Modulausrichtung[5][8]="1.03";
Modulausrichtung[5][9]="1.15";
Modulausrichtung[5][10]="1.25";
Modulausrichtung[5][11]="1.4";
Modulausrichtung[5][12]="1.36";

Modulausrichtung[6][1]="1.48";
Modulausrichtung[6][2]="1.42";
Modulausrichtung[6][3]="1.16";
Modulausrichtung[6][4]="1.05";
Modulausrichtung[6][5]="0.95";
Modulausrichtung[6][6]="0.91";
Modulausrichtung[6][7]="0.92";
Modulausrichtung[6][8]="1";
Modulausrichtung[6][9]="1.16";
Modulausrichtung[6][10]="1.31";
Modulausrichtung[6][11]="1.51";
Modulausrichtung[6][12]="1.46";

Modulausrichtung[7][1]="1.52";
Modulausrichtung[7][2]="1.43";
Modulausrichtung[7][3]="1.12";
Modulausrichtung[7][4]="0.99";
Modulausrichtung[7][5]="0.88";
Modulausrichtung[7][6]="0.82";
Modulausrichtung[7][7]="0.84";
Modulausrichtung[7][8]="0.93";
Modulausrichtung[7][9]="1.12";
Modulausrichtung[7][10]="1.3";
Modulausrichtung[7][11]="1.55";
Modulausrichtung[7][12]="1.49";

Modulausrichtung[8][1]="1.01";
Modulausrichtung[8][2]="1.01";
Modulausrichtung[8][3]="0.99";
Modulausrichtung[8][4]="0.98";
Modulausrichtung[8][5]="0.97";
Modulausrichtung[8][6]="0.96";
Modulausrichtung[8][7]="0.96";
Modulausrichtung[8][8]="0.97";
Modulausrichtung[8][9]="0.99";
Modulausrichtung[8][10]="1";
Modulausrichtung[8][11]="1.01";
Modulausrichtung[8][12]="1";

Modulausrichtung[9][1]="0.99";
Modulausrichtung[9][2]="1";
Modulausrichtung[9][3]="0.96";
Modulausrichtung[9][4]="0.95";
Modulausrichtung[9][5]="0.93";
Modulausrichtung[9][6]="0.92";
Modulausrichtung[9][7]="0.92";
Modulausrichtung[9][8]="0.94";
Modulausrichtung[9][9]="0.96";
Modulausrichtung[9][10]="0.98";
Modulausrichtung[9][11]="1";
Modulausrichtung[9][12]="0.98";

Modulausrichtung[10][1]="0.95";
Modulausrichtung[10][2]="0.96";
Modulausrichtung[10][3]="0.91";
Modulausrichtung[10][4]="0.89";
Modulausrichtung[10][5]="0.88";
Modulausrichtung[10][6]="0.86";
Modulausrichtung[10][7]="0.86";
Modulausrichtung[10][8]="0.88";
Modulausrichtung[10][9]="0.92";
Modulausrichtung[10][10]="0.94";
Modulausrichtung[10][11]="0.96";
Modulausrichtung[10][12]="0.94";





 function check() {

var Zeichen="0123456789", Eingabe, laenge, c, d;

Eingabe=window.document.F1.T71.value;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);
if (Zeichen.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern eingeben");
window.document.F1.T71.value=0;
window.document.F1.T71.focus();
break;
}
}

Eingabe=window.document.F1.T81.value;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);
if (Zeichen.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern eingeben");
window.document.F1.T81.value=0;
window.document.F1.T81.focus();
break;
}
}

Eingabe=window.document.F1.T91.value;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);
if (Zeichen.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern eingeben");
window.document.F1.T91.value=0;
window.document.F1.T91.focus();
break;
}
}

Eingabe=window.document.F1.T101.value;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);
if (Zeichen.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern eingeben");
window.document.F1.T101.value=0;
window.document.F1.T101.focus();
break;
}
}




var Zeichen1="0123456789.", m

Eingabe=window.document.F1.T12.value;
Eingabe=Eingabe.replace(",",".")
window.document.F1.T12.value=Eingabe;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);


if (Zeichen1.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern und , eingeben");
window.document.F1.T12.value=0;
window.document.F1.T12.focus();
break;
}
}

Eingabe=window.document.F1.T22.value;
Eingabe=Eingabe.replace(",",".")
window.document.F1.T22.value=Eingabe;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);


if (Zeichen1.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern und , eingeben");
window.document.F1.T22.value=0;
window.document.F1.T22.focus();
break;
}
}

Eingabe=window.document.F1.T32.value;
Eingabe=Eingabe.replace(",",".")
window.document.F1.T32.value=Eingabe;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);


if (Zeichen1.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern und , eingeben");
window.document.F1.T32.value=0;
window.document.F1.T32.focus();
break;
}
}

Eingabe=window.document.F1.T42.value;
Eingabe=Eingabe.replace(",",".")
window.document.F1.T42.value=Eingabe;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);


if (Zeichen1.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern und , eingeben");
window.document.F1.T42.value=0;
window.document.F1.T42.focus();
break;
}
}

Eingabe=window.document.F1.T52.value;
Eingabe=Eingabe.replace(",",".")
window.document.F1.T52.value=Eingabe;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);


if (Zeichen1.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern und , eingeben");
window.document.F1.T52.value=0;
window.document.F1.T52.focus();
break;
}
}

Eingabe=window.document.F1.T62.value;
Eingabe=Eingabe.replace(",",".")
window.document.F1.T62.value=Eingabe;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);


if (Zeichen1.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern und , eingeben");
window.document.F1.T62.value=0;
window.document.F1.T62.focus();
break;
}
}

Eingabe=window.document.F1.T72.value;
Eingabe=Eingabe.replace(",",".")
window.document.F1.T72.value=Eingabe;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);


if (Zeichen1.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern und , eingeben");
window.document.F1.T72.value=0;
window.document.F1.T72.focus();
break;
}
}

Eingabe=window.document.F1.T82.value;
Eingabe=Eingabe.replace(",",".")
window.document.F1.T82.value=Eingabe;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);
if (Zeichen1.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern und , eingeben");
window.document.F1.T82.value=0;
window.document.F1.T82.focus();
break;
}
}

Eingabe=window.document.F1.T92.value;
Eingabe=Eingabe.replace(",",".")
window.document.F1.T92.value=Eingabe;
laenge=Eingabe.length;

for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);
if (Zeichen1.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern und , eingeben");
window.document.F1.T92.value=0;
window.document.F1.T92.focus();
break;
}
}

Eingabe=window.document.F1.T102.value;
Eingabe=Eingabe.replace(",",".")
window.document.F1.T102.value=Eingabe;
laenge=Eingabe.length;


for (c=0; c<laenge; c++)
{
d=Eingabe.charAt(c);
if (Zeichen1.indexOf(d)==-1)
{
alert ("Bitte nur Ziffern und , eingeben");
window.document.F1.T102.value=0;
window.document.F1.T102.focus();
break;
}
}
window.document.F1.T11.value=window.document.F1.D1.value;
window.document.F1.T13.value=window.document.F1.T11.value * window.document.F1.T12.value;

window.document.F1.T21.value=window.document.F1.D2.value;
window.document.F1.T23.value=window.document.F1.T21.value * window.document.F1.T22.value;

window.document.F1.T31.value=window.document.F1.D3.value;
window.document.F1.T33.value=window.document.F1.T31.value * window.document.F1.T32.value;

window.document.F1.T41.value=window.document.F1.D4.value;
window.document.F1.T43.value=window.document.F1.T41.value * window.document.F1.T42.value;

window.document.F1.T51.value=window.document.F1.D5.value;
window.document.F1.T53.value=window.document.F1.T51.value * window.document.F1.T52.value;

window.document.F1.T61.value=window.document.F1.D6.value;
window.document.F1.T63.value=window.document.F1.T61.value * window.document.F1.T62.value;


window.document.F1.T73.value=window.document.F1.T71.value * window.document.F1.T72.value;
window.document.F1.T83.value=window.document.F1.T81.value * window.document.F1.T82.value;
window.document.F1.T93.value=window.document.F1.T91.value * window.document.F1.T92.value;
window.document.F1.T103.value=window.document.F1.T101.value * window.document.F1.T102.value;



window.document.F1.T1.value=window.document.F1.T13.value*1.0 + window.document.F1.T23.value*1.0 + window.document.F1.T33.value*1.0 + window.document.F1.T43.value*1.0 + window.document.F1.T53.value*1.0 + window.document.F1.T63.value*1.0 + window.document.F1.T73.value*1.0 + window.document.F1.T83.value*1.0 + window.document.F1.T93.value*1.0 + window.document.F1.T103.value*1.0;
window.document.F1.T2.value=Math.round(window.document.F1.T1.value/12.0*10)/10;


return;
}


 function Energiebedarf() {

window.document.F1.T11.value=window.document.F1.D1.value;
window.document.F1.T13.value=window.document.F1.T11.value * window.document.F1.T12.value;

window.document.F1.T21.value=window.document.F1.D2.value;
window.document.F1.T23.value=window.document.F1.T21.value * window.document.F1.T22.value;

window.document.F1.T31.value=window.document.F1.D3.value;
window.document.F1.T33.value=window.document.F1.T31.value * window.document.F1.T32.value;

window.document.F1.T41.value=window.document.F1.D4.value;
window.document.F1.T43.value=window.document.F1.T41.value * window.document.F1.T42.value;

window.document.F1.T51.value=window.document.F1.D5.value;
window.document.F1.T53.value=window.document.F1.T51.value * window.document.F1.T52.value;

window.document.F1.T61.value=window.document.F1.D6.value;
window.document.F1.T63.value=window.document.F1.T61.value * window.document.F1.T62.value;


window.document.F1.T73.value=window.document.F1.T71.value * window.document.F1.T72.value;
window.document.F1.T83.value=window.document.F1.T81.value * window.document.F1.T82.value;
window.document.F1.T93.value=window.document.F1.T91.value * window.document.F1.T92.value;
window.document.F1.T103.value=window.document.F1.T101.value * window.document.F1.T102.value;



window.document.F1.T1.value=window.document.F1.T13.value*1.0 + window.document.F1.T23.value*1.0 + window.document.F1.T33.value*1.0 + window.document.F1.T43.value*1.0 + window.document.F1.T53.value*1.0 + window.document.F1.T63.value*1.0 + window.document.F1.T73.value*1.0 + window.document.F1.T83.value*1.0 + window.document.F1.T93.value*1.0 + window.document.F1.T103.value*1.0;
window.document.F1.T2.value=Math.round(window.document.F1.T1.value/12.0*10)/10;

if (window.document.F1.Datum.value==1)
{
window.document.F1.T201.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==2)
{
window.document.F1.T202.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==3)
{
window.document.F1.T203.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==4)
{
window.document.F1.T204.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==5)
{
window.document.F1.T205.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==6)
{
window.document.F1.T206.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==7)
{
window.document.F1.T207.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==8)
{
window.document.F1.T208.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==9)
{
window.document.F1.T209.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==10)
{
window.document.F1.T210.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==11)
{
window.document.F1.T211.value=window.document.F1.T1.value;
}
if (window.document.F1.Datum.value==12)
{
window.document.F1.T212.value=window.document.F1.T1.value;
}

return;
}


 function Jahr() {

window.document.F1.T11.value=window.document.F1.D1.value;
window.document.F1.T13.value=window.document.F1.T11.value * window.document.F1.T12.value;

window.document.F1.T21.value=window.document.F1.D2.value;
window.document.F1.T23.value=window.document.F1.T21.value * window.document.F1.T22.value;

window.document.F1.T31.value=window.document.F1.D3.value;
window.document.F1.T33.value=window.document.F1.T31.value * window.document.F1.T32.value;

window.document.F1.T41.value=window.document.F1.D4.value;
window.document.F1.T43.value=window.document.F1.T41.value * window.document.F1.T42.value;

window.document.F1.T51.value=window.document.F1.D5.value;
window.document.F1.T53.value=window.document.F1.T51.value * window.document.F1.T52.value;

window.document.F1.T61.value=window.document.F1.D6.value;
window.document.F1.T63.value=window.document.F1.T61.value * window.document.F1.T62.value;


window.document.F1.T73.value=window.document.F1.T71.value * window.document.F1.T72.value;
window.document.F1.T83.value=window.document.F1.T81.value * window.document.F1.T82.value;
window.document.F1.T93.value=window.document.F1.T91.value * window.document.F1.T92.value;
window.document.F1.T103.value=window.document.F1.T101.value * window.document.F1.T102.value;



window.document.F1.T1.value=window.document.F1.T13.value*1.0 + window.document.F1.T23.value*1.0 + window.document.F1.T33.value*1.0 + window.document.F1.T43.value*1.0 + window.document.F1.T53.value*1.0 + window.document.F1.T63.value*1.0 + window.document.F1.T73.value*1.0 + window.document.F1.T83.value*1.0 + window.document.F1.T93.value*1.0 + window.document.F1.T103.value*1.0;
window.document.F1.T2.value=Math.round(window.document.F1.T1.value/12.0*10)/10;


window.document.F1.T201.value=window.document.F1.T1.value;
window.document.F1.T202.value=window.document.F1.T1.value;
window.document.F1.T203.value=window.document.F1.T1.value;
window.document.F1.T204.value=window.document.F1.T1.value;
window.document.F1.T205.value=window.document.F1.T1.value;
window.document.F1.T206.value=window.document.F1.T1.value;
window.document.F1.T207.value=window.document.F1.T1.value;
window.document.F1.T208.value=window.document.F1.T1.value;
window.document.F1.T209.value=window.document.F1.T1.value;
window.document.F1.T210.value=window.document.F1.T1.value;
window.document.F1.T211.value=window.document.F1.T1.value;
window.document.F1.T212.value=window.document.F1.T1.value;


return;
}


function Sommer() {

window.document.F1.T11.value=window.document.F1.D1.value;
window.document.F1.T13.value=window.document.F1.T11.value * window.document.F1.T12.value;

window.document.F1.T21.value=window.document.F1.D2.value;
window.document.F1.T23.value=window.document.F1.T21.value * window.document.F1.T22.value;

window.document.F1.T31.value=window.document.F1.D3.value;
window.document.F1.T33.value=window.document.F1.T31.value * window.document.F1.T32.value;

window.document.F1.T41.value=window.document.F1.D4.value;
window.document.F1.T43.value=window.document.F1.T41.value * window.document.F1.T42.value;

window.document.F1.T51.value=window.document.F1.D5.value;
window.document.F1.T53.value=window.document.F1.T51.value * window.document.F1.T52.value;

window.document.F1.T61.value=window.document.F1.D6.value;
window.document.F1.T63.value=window.document.F1.T61.value * window.document.F1.T62.value;


window.document.F1.T73.value=window.document.F1.T71.value * window.document.F1.T72.value;
window.document.F1.T83.value=window.document.F1.T81.value * window.document.F1.T82.value;
window.document.F1.T93.value=window.document.F1.T91.value * window.document.F1.T92.value;
window.document.F1.T103.value=window.document.F1.T101.value * window.document.F1.T102.value;



window.document.F1.T1.value=window.document.F1.T13.value*1.0 + window.document.F1.T23.value*1.0 + window.document.F1.T33.value*1.0 + window.document.F1.T43.value*1.0 + window.document.F1.T53.value*1.0 + window.document.F1.T63.value*1.0 + window.document.F1.T73.value*1.0 + window.document.F1.T83.value*1.0 + window.document.F1.T93.value*1.0 + window.document.F1.T103.value*1.0;
window.document.F1.T2.value=Math.round(window.document.F1.T1.value/12.0*10)/10


//window.document.F1.T201.value=window.document.F1.T1.value;
//window.document.F1.T202.value=window.document.F1.T1.value;
//window.document.F1.T203.value=window.document.F1.T1.value;
//window.document.F1.T204.value=window.document.F1.T1.value;
//window.document.F1.T205.value=window.document.F1.T1.value;
window.document.F1.T206.value=window.document.F1.T1.value;
window.document.F1.T207.value=window.document.F1.T1.value;
window.document.F1.T208.value=window.document.F1.T1.value;
//window.document.F1.T209.value=window.document.F1.T1.value;
//window.document.F1.T210.value=window.document.F1.T1.value;
//window.document.F1.T211.value=window.document.F1.T1.value;
//window.document.F1.T212.value=window.document.F1.T1.value;


return;
}


function Akku() {

k=1/((100-window.document.F3.K1.value)/100);
Ladereserve=window.document.F3.D1.value;
Einsatztage=window.document.F2.T2.value;

Verbrauch=window.document.F1.T201.value/12;
Ladestrom=window.document.F2.T301.value;

a=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 a=Verbrauch*Ladereserve*k;
}

Ladereserve=window.document.F3.D2.value;
Verbrauch=window.document.F1.T202.value/12;
Ladestrom=window.document.F2.T302.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}

window.document.F3.T201.value=a;
window.document.F3.T202.value=b;
if (b>a)
{
a=b;
}
Ladereserve=window.document.F3.D3.value;
Verbrauch=window.document.F1.T203.value/12;
Ladestrom=window.document.F2.T304.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
window.document.F3.T203.value=b;
if (b>a)
{
a=b;
}
Ladereserve=window.document.F3.D4.value;
Verbrauch=window.document.F1.T204.value/12;
Ladestrom=window.document.F2.T304.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
window.document.F3.T204.value=b;
if (b>a)
{
a=b;
}
Ladereserve=window.document.F3.D5.value;
Verbrauch=window.document.F1.T205.value/12;
Ladestrom=window.document.F2.T305.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
window.document.F3.T205.value=b;
if (b>a)
{
a=b;
}
Ladereserve=window.document.F3.D6.value;
Verbrauch=window.document.F1.T206.value/12;
Ladestrom=window.document.F2.T306.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
window.document.F3.T206.value=b;
if (b>a)
{
a=b;
}
Ladereserve=window.document.F3.D7.value;
Verbrauch=window.document.F1.T207.value/12;
Ladestrom=window.document.F2.T307.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
window.document.F3.T207.value=b;
if (b>a)
{
a=b;
}
Ladereserve=window.document.F3.D8.value;
Verbrauch=window.document.F1.T208.value/12;
Ladestrom=window.document.F2.T308.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;

if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
window.document.F3.T208.value=b;
if (b>a)
{
a=b;
}
Ladereserve=window.document.F3.D9.value;
Verbrauch=window.document.F1.T209.value/12;
Ladestrom=window.document.F2.T309.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
window.document.F3.T209.value=b;
if (b>a)
{
a=b;
}
Ladereserve=window.document.F3.D10.value;
Verbrauch=window.document.F1.T210.value/12;
Ladestrom=window.document.F2.T310.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
window.document.F3.T210.value=b;
if (b>a)
{
a=b;
}
Ladereserve=window.document.F3.D11.value;
Verbrauch=window.document.F1.T211.value/12;
Ladestrom=window.document.F2.T311.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
window.document.F3.T211.value=b;
if (b>a)
{
a=b;
}
Ladereserve=window.document.F3.D12.value;
Verbrauch=window.document.F1.T212.value/12;
Ladestrom=window.document.F2.T312.value;
b=(Verbrauch*Ladereserve+((Verbrauch-Ladestrom)*(Einsatztage-Ladereserve)))*k;
if (Ladestrom>Verbrauch) {
 b=Verbrauch*Ladereserve*k;
}
window.document.F3.T212.value=b;
if (b>a)
{
a=b;
}

window.document.F3.T1.value=a;

return;
}


 function Solarmodul() {

a=window.document.F1.T201.value/(Standort[window.document.F2.D1.value][1]*Modulausrichtung[window.document.F2.D2.value][1]*1.02*window.document.F2.T1.value);
window.document.F2.T201.value=Math.round(a*window.document.F2.T2.value/7);

b=window.document.F1.T202.value/(Standort[window.document.F2.D1.value][2]*Modulausrichtung[window.document.F2.D2.value][2]*1.01*window.document.F2.T1.value);
window.document.F2.T202.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}

b=window.document.F1.T203.value/(Standort[window.document.F2.D1.value][3]*Modulausrichtung[window.document.F2.D2.value][3]*0.95*window.document.F2.T1.value);
window.document.F2.T203.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}

b=window.document.F1.T204.value/(Standort[window.document.F2.D1.value][4]*Modulausrichtung[window.document.F2.D2.value][4]*0.91*window.document.F2.T1.value);
window.document.F2.T204.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}

b=window.document.F1.T205.value/(Standort[window.document.F2.D1.value][5]*Modulausrichtung[window.document.F2.D2.value][5]*0.88*window.document.F2.T1.value);
window.document.F2.T205.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}

b=window.document.F1.T206.value/(Standort[window.document.F2.D1.value][6]*Modulausrichtung[window.document.F2.D2.value][6]*0.87*window.document.F2.T1.value);
window.document.F2.T206.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}

b=window.document.F1.T207.value/(Standort[window.document.F2.D1.value][7]*Modulausrichtung[window.document.F2.D2.value][7]*0.86*window.document.F2.T1.value);
window.document.F2.T207.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}

b=window.document.F1.T208.value/(Standort[window.document.F2.D1.value][8]*Modulausrichtung[window.document.F2.D2.value][8]*0.86*window.document.F2.T1.value);
window.document.F2.T208.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}

b=window.document.F1.T209.value/(Standort[window.document.F2.D1.value][9]*Modulausrichtung[window.document.F2.D2.value][9]*0.89*window.document.F2.T1.value);
window.document.F2.T209.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}

b=window.document.F1.T210.value/(Standort[window.document.F2.D1.value][10]*Modulausrichtung[window.document.F2.D2.value][10]*0.98*window.document.F2.T1.value);
window.document.F2.T210.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}

b=window.document.F1.T211.value/(Standort[window.document.F2.D1.value][11]*Modulausrichtung[window.document.F2.D2.value][11]*1*window.document.F2.T1.value);
window.document.F2.T211.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}

b=window.document.F1.T212.value/(Standort[window.document.F2.D1.value][12]*Modulausrichtung[window.document.F2.D2.value][12]*1.02*window.document.F2.T1.value);
window.document.F2.T212.value=Math.round(b*window.document.F2.T2.value/7);
if (b>a)
{
a=b;
}
a=a*window.document.F2.T2.value/7;
window.document.F2.T3.value=Math.round(a);

window.document.F2.T301.value=Math.round(a*Standort[window.document.F2.D1.value][1]*Modulausrichtung[window.document.F2.D2.value][1]*1.02/12);
window.document.F2.T302.value=Math.round(a*Standort[window.document.F2.D1.value][2]*Modulausrichtung[window.document.F2.D2.value][2]*1.01/12);
window.document.F2.T303.value=Math.round(a*Standort[window.document.F2.D1.value][3]*Modulausrichtung[window.document.F2.D2.value][3]*0.95/12);
window.document.F2.T304.value=Math.round(a*Standort[window.document.F2.D1.value][4]*Modulausrichtung[window.document.F2.D2.value][4]*0.91/12);
window.document.F2.T305.value=Math.round(a*Standort[window.document.F2.D1.value][5]*Modulausrichtung[window.document.F2.D2.value][5]*0.88/12);
window.document.F2.T306.value=Math.round(a*Standort[window.document.F2.D1.value][6]*Modulausrichtung[window.document.F2.D2.value][6]*0.87/12);
window.document.F2.T307.value=Math.round(a*Standort[window.document.F2.D1.value][7]*Modulausrichtung[window.document.F2.D2.value][7]*0.86/12);
window.document.F2.T308.value=Math.round(a*Standort[window.document.F2.D1.value][8]*Modulausrichtung[window.document.F2.D2.value][8]*0.86/12);
window.document.F2.T309.value=Math.round(a*Standort[window.document.F2.D1.value][9]*Modulausrichtung[window.document.F2.D2.value][9]*0.89/12);
window.document.F2.T310.value=Math.round(a*Standort[window.document.F2.D1.value][10]*Modulausrichtung[window.document.F2.D2.value][10]*0.98/12);
window.document.F2.T311.value=Math.round(a*Standort[window.document.F2.D1.value][11]*Modulausrichtung[window.document.F2.D2.value][11]*1/12);
window.document.F2.T312.value=Math.round(a*Standort[window.document.F2.D1.value][12]*Modulausrichtung[window.document.F2.D2.value][12]*1.02/12);


return;
}

function Leistung() {

 var U, I, P, Q, L, dU, Wv, WvP;
 U=window.document.Kabel.U.value;
 U=U.replace(",",".")
 I=window.document.Kabel.I.value;
 I=I.replace(",",".")
 if (I*1>0)
 {
  window.document.Kabel.P.value=U*I;
 }
 Kabelberechnung();
return;
}

function Strom() {

 var U, I, P, Q, L, dU, Wv, WvP;
 U=window.document.Kabel.U.value;
 U=U.replace(",",".")
 P=window.document.Kabel.P.value;
 P=P.replace(",",".")
 if (P*1>0)
 {
  window.document.Kabel.I.value=P/U;
 }
 Kabelberechnung();
return;
}


function Kabelberechnung() {

 var U, I, P, Q, L, dU, Wv, WvP, R;
 I=window.document.Kabel.I.value;
 I=I.replace(",",".");
 Q=window.document.Kabel.Q.value;
 Q=Q.replace(",",".");

 U=window.document.Kabel.U.value;
 U=U.replace(",",".");
 L=window.document.Kabel.L.value;
 L=L.replace(",",".");
 P=window.document.Kabel.P.value;
 P=P.replace(",",".");
 if (I*1>0)
 {
  window.document.Kabel.P.value=U*I;
 }

 R=L*0.0185/Q;

 window.document.Kabel.dU.value=Math.round(R*I*10)/10;
 window.document.Kabel.Wv.value=Math.round(R*I*I*10)/10;
 window.document.Kabel.WvP.value=Math.round(R*I*I*100/(U*I)*10)/10;

return;
}
