function Gesamt () {
    x1        = 281;
    x2        = 54;
    x3        = 36;
    x5        = 176;
    x6        = 85;
    x7        = 77;
    x8        = 10;
    x9        = 60;
    xgesetz   = 371;
    xtarif    = 408;
    xGes      = 1779;
    
    sLohnchar = "";  
    
    p         = document.personalrechner;
    sLohnchar = p.stundenlohn.value;
    
    if ( sLohnchar.search(/,/) ) {
        sLohn = sLohnchar.replace(/,/,".");
    } else {
        sLohn = sLohnchar;
    }
    
    p.sozialversicherung.value = Math.round(sLohn / 1000 * x1 * 100) / 100;
    p.feiertage.value          = Math.round(sLohn / 1000 * x2 * 100) / 100;
    p.krankengeld.value        = Math.round(sLohn / 1000 * x3 * 100) / 100; 
    p.urlaub.value             = Math.round(sLohn / 1000 * x5 * 100) / 100;
    p.sonderzahlungen.value    = Math.round(sLohn / 1000 * x6 * 100) / 100;
    p.altersversorgung.value   = Math.round(sLohn / 1000 * x7 * 100) / 100;
    p.vermoegensbildung.value  = Math.round(sLohn / 1000 * x8 * 100) / 100;
    p.sonstigePersonal2.value  = Math.round(sLohn / 1000 * x9 * 100) / 100;
    
    p.gesGesamt.value          = Math.round(sLohn / 1000 * xgesetz * 100) / 100;
    p.tarifGesamt.value        = Math.round(sLohn / 1000 * xtarif * 100) / 100;
    p.gesamtPersonal.value     = Math.round(sLohn / 1000 * xGes * 100) / 100;
}

function GesamtOLD () {
    x1        = 284;
    x2        = 50;
    x3        = 33;
    x4        = 4;
    x5        = 186;
    x6        = 83;
    x7        = 77;
    x8        = 11;
    x9        = 84;
    xgesetz   = 371;
    xtarif    = 441;
    xGes      = 1812;
    
    sLohnchar = "";  
    
    p         = document.personalrechner;
    sLohnchar = p.stundenlohn.value;
    
    if ( sLohnchar.search(/,/) ) {
        sLohn = sLohnchar.replace(/,/,".");
    } else {
        sLohn = sLohnchar;
    }
    
    p.sozialversicherung.value = Math.round(sLohn / 1000 * x1 * 100) / 100;
    p.feiertage.value          = Math.round(sLohn / 1000 * x2 * 100) / 100;
    p.krankengeld.value        = Math.round(sLohn / 1000 * x3 * 100) / 100; 
    p.sonstigePersonal.value   = Math.round(sLohn / 1000 * x4 * 100) / 100;
    p.urlaub.value             = Math.round(sLohn / 1000 * x5 * 100) / 100;
    p.sonderzahlungen.value    = Math.round(sLohn / 1000 * x6 * 100) / 100;
    p.altersversorgung.value   = Math.round(sLohn / 1000 * x7 * 100) / 100;
    p.vermoegensbildung.value  = Math.round(sLohn / 1000 * x8 * 100) / 100;
    p.sonstigePersonal2.value  = Math.round(sLohn / 1000 * x9 * 100) / 100;
    
    p.gesGesamt.value          = Math.round(sLohn / 1000 * xgesetz * 100) / 100;
    p.tarifGesamt.value        = Math.round(sLohn / 1000 * xtarif * 100) / 100;
    p.gesamtPersonal.value     = Math.round(sLohn / 1000 * xGes * 100) / 100;
}
