function uber ()
{
var index, inhalt;
var lamda, richt, dicke, ralt, ueff, rech1, rech2, uneu, uwert,  b, zw1, zw2, zw3, zw4, zw5, ubonus, hinweise, richtg;
var win;
// Mauer
index=window.document.berechn1.baustoff.selectedIndex;
inhalt=window.document.berechn1.baustoff.options[index].value;

switch (inhalt)
        {
        case '1': lamda=0.92; b=21.4; break;
        case '2': lamda=2.10; b=39.4; break;
        case '3': lamda=0.20; b=8.3; break;
        case '4': lamda=0.22; b=6.7; break;
        case '5': lamda=0.29; b=8.3; break;
        case '6': lamda=0.24; b=5.5; break;
        case '7': lamda=0.33; b=9.3; break;
        case '8': lamda=0.22; b=6.7; break;
        case '9': lamda=0.13; b=7.3; break;
        case '10': lamda=0.5; b=11.7; break;
        case '11': lamda=0.7; b=16.1; break;
        case '12': lamda=0.99; b=21.9; break;
        case '13': lamda=0.6; b=18.1; break;
        case '14': lamda=0.62; b=11.7; break;
        case '15': lamda=0.18; b=7.8; break;
        case '16': lamda=0.25; b=7.8; break;
        case '17': lamda=0.91; b=21.4; break;
        case '18': lamda=0.55; b=15; break;
        case '19': lamda=0.5; b=12.5; break;
        case '20': lamda=0.58; b=15.6; break;
        case '21': lamda=0.81; b=20.6; break;
        case '22': lamda=0.96; b=23.3; break;
        case '23': lamda=2.1; b=37.8; break;
        case '24': lamda=3.5; b=52.8; break;
        case '25': lamda=3.5; b=52.8; break;
case '26': lamda=0.14; b=4.9; break;
case '27': lamda=0.16; b=5.6; break;
case '28': lamda=0.18; b=6.3; break;
case '29': lamda=0.21; b=7.3; break;
case '30': lamda=0.18; b=10.0; break;
case '31': lamda=0.12; b=4.3; break;
case '32': lamda=0.08; b=3.6; break;
case '33': lamda=0.16; b=5.2; break;
case '34': lamda=0.21; b=5.9; break;
        }
dicke=window.document.berechn1.dicke.value;
rech1=0.17+(dicke/100)/lamda;
rech2=1/rech1;
uwert=(Math.round (rech2*100))/100;
window.document.berechn1.uwert.value=(uwert);
// Himmelsrichtung
index=window.document.berechn1.richtg.selectedIndex;
inhalt=window.document.berechn1.richtg.options[index].value;
switch (inhalt)
        {
        case '1': richt=5.72;  break;
        case '2': richt=3.92;  break;
        case '3': richt=3.92; break;
        case '4': richt=2.27; break;
        }
zw1=7.63*uwert;
zw2=b+zw1;
zw3=b+133.5;
zw4=zw2/zw3;
zw5=richt*zw4
ueff=uwert-zw5;
window.document.berechn1.uneu.value=(ueff);
//Auswertung
ubonus=(Math.round(ueff/uwert*100));
window.document.berechn1.verbesserung.value=(ubonus);
if (ueff > 1.5)
        {
        window.document.berechn1.hinweise.value=("Bad. It is a heat-isolation necessary.");
        }
else if (ueff > 1.0)
        {
        window.document.berechn1.hinweise.value=("Bad. It is a heat-isolation necessary.  It is dependent on the surface of the windows and walls.  It is the economic viability of the measures to test.");
        }
else if (ueff > 0.6)
        {
        window.document.berechn1.hinweise.value=("An additional mineral heat-isolation is case-wisely too superior.");
        }

else if (ueff > 0.55)
        {
        window.document.berechn1.hinweise.value=("An additional mineral heat-isolation is case-wisely too superior. If corresponds an outer wall of sand-lime brick 24 cm, 1,5 cm of interior plaster and isolation 5 cm with WLG 040 U=0,56 W/m2K.");
        }

else if (ueff > 0.5)
        {
        window.document.berechn1.hinweise.value=("Economically meaningful solution. No measures necessary. If corresponds an outer wall of sand-lime brick 36,5 cm, 1,5 cm of interior plaster and isolation 5 cm with WLG 040 U=0,5 W/m2K");
        }
else if (ueff > 0.45)
        {
        window.document.berechn1.hinweise.value=("Economically meaningful solution. No measures necessary.If corresponds an outer wall of sand-lime brick 24 cm, 1,5 cm of interior plaster and isolation 5 cm with WLG 030 U=0,45 W/m2K  or if corresponds an outer wall of sand-lime brick 36,5 cm, 1,5 cm of interior plaster and isolation 5 cm with WLG 040 U=0,5 W/m2K.");
        }

        else if (ueff > 0.4)
        {
        window.document.berechn1.hinweise.value=("Economically meaningful solution. No measures necessary. If corresponds an outer wall of sand-lime brick 24 cm, 1,5 cm of interior plaster and isolation 8 cm with WLG 030 U=0,4 W/m2K  or if corresponds an outer wall of sand-lime brick 36,5 cm, 1,5 cm of interior plaster and isolation 5 cm with WLG 030 U=0,42 W/m2K.");
        }
else if (ueff > 0.35)
        {
        window.document.berechn1.hinweise.value=("Goot. If corresponds an outer wall of sand-lime brick 24 cm, 1,5 cm of interior plaster and isolation 8 cm with WLG 040 U=0,37 W/m2K.");
        }

else if (ueff > 0.3)
        {
        window.document.berechn1.hinweise.value=("Goot. If corresponds an outer wall of sand-lime brick 24 cm, 1,5 cm of interior plaster and isolation 8 cm with WLG 030 U=0,31 W/m2K or if corresponds an outer wall of sand-lime brick 36,5 cm, 1,5 cm of interior plaster and isolation 8 cm with WLG 030 U=0,3 W/m2K.");
        }

else if   (ueff > 0.25)
        {
        window.document.berechn1.hinweise.value=("Very good. If corresponds an outer wall of sand-lime brick 24 cm, 1,5 cm of interior plaster and isolation 12 cm with WLG 040 U=0,28 W/m2K or if corresponds an outer wall of sand-lime brick 36,5 cm, 1,5 cm of interior plaster and isolation 12 cm with WLG 040 U=0,27 W/m2K.");
        }

else if   (ueff > 0.2)
        {
        window.document.berechn1.hinweise.value=("Very good. If corresponds an outer wall of sand-lime brick 24 cm, 1,5 cm of interior plaster and isolation 12 cm with WLG 030 U=0,22 W/m2K or if corresponds an outer wall of sand-lime brick 36,5 cm, 1,5 cm of interior plaster and isolation 12 cm with WLG 030 U=0,21 W/m2K.");
        }

else if   (ueff > 0.15)
        {
        window.document.berechn1.hinweise.value=("Very good. If corresponds an outer wall of sand-lime brick 24 cm, 1,5 cm of interior plaster and isolation 20 cm with WLG 040 U=0,18 W/m2K or if corresponds an outer wall of sand-lime brick 36,5 cm, 1,5 cm of interior plaster and isolation 20 cm with WLG 040 U=0,17 W/m2K.");
        }

else if   (ueff > 0.1)
        {
        window.document.berechn1.hinweise.value=("Very good. If corresponds an outer wall of sand-lime brick 24 cm, 1,5 cm of interior plaster and isolation 20 cm with WLG 030 U=0,14 W/m2K or if corresponds an outer wall of sand-lime brick 36,5 cm, 1,5 cm of interior plaster and isolation 20 cm with WLG 030 U=0,14 W/m2K.");
        }
        else if    (ueff < 0.1)
        {
        window.document.berechn1.hinweise.value=("Excellent. If corresponds an outer wall of sand-lime brick 36,5 cm, 1,5 cm of interior plaster and isolation 27 cm with WLG 030.");
        }
}

//Dieses Skript stammt von Michael Mailers JavaScripts
//URL: http://www.webaid.de/js  --  eMail: mm@webaid.de
if (document.layers){
    window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
    window.onmousedown=rightclick;
    window.onmouseup=rightclick;

    function rightclick(e) {
    if (e.which == 3) {
    // Put right mouse code here
    alert('Bitte beachten Sie die Urheberrechte.');
    return false;
    }
    else {
        return true;
        }
    }
}
if (document.all){
    function click() {
    if (event.button==2) {
    alert('Bitte beachten Sie die Urheberrechte.')
    }

    if (event.button==3) {
    alert('Bitte beachten Sie die Urheberrechte.')}
    }
    document.onmousedown=click
}
