    pythagoras = new Array(6.356, 5.078, 11.111, 16.761, 15.625, 20.988, 25.000, 29.767, 28.809, 33.333, 37.570, 36.719, 40.741, 44.507, 43.750, 47.325, 46.606, 50.000);
    med_1_6    = new Array(4.989, 6.056, 10.742, 15.195, 16.147, 20.331, 25.155, 29.688, 28.889, 33.195, 36.528, 37.241, 40.372, 43.346, 43.982, 46.777, 47.375, 50.000);
    med_1_5    = new Array(4.713, 6.250, 10.668, 14.878, 16.252, 20.199, 25.186, 29.862, 28.712, 33.167, 36.317, 37.345, 40.297, 43.111, 44.029, 46.667, 47.527, 50.000);
    mediaton   = new Array(4.298, 6.541, 10.557, 14.401, 16.407, 20.000, 25.233, 28.446, 30.123, 33.126, 36.000, 37.500, 40.186, 42.757, 44.098, 46.501, 47.755, 50.000);
    med_2_7    = new Array(4.000, 6.748, 10.478, 14.059, 16.519, 19.858, 25.266, 30.309, 28.255, 33.096, 35.772, 37.611, 40.106, 42.502, 44.148, 46.382, 47.917, 50.000);
    med_1_3    = new Array(3.602, 7.023, 10.372, 13.600, 16.667, 19.668, 25.310, 30.556, 28.000, 33.057, 35.468, 37.758, 40.000, 42.161, 44.214, 46.223, 48.132, 50.000);
    equi       = new Array(5.613, 5.613, 10.910, 15.910, 15.910, 20.630, 25.085, 29.289, 29.289, 33.258, 37.004, 37.004, 40.540, 43.877, 43.877, 47.027, 47.027, 50.000);
    liste      = new Array(pythagoras, med_1_6, med_1_5, mediaton, med_2_7, med_1_3, equi);
    function formatiere(s, t, m, nr, q)
    {
      bund = Math.round(liste[t][nr] * s) / 100;
      bund = bund + "";
      po = bund.indexOf(".");
      if(po == -1) {
        bund = bund + ".";
        po   = bund.length - 1;
      }
      while(po < q) {
        bund = " " + bund;
        po   = bund.indexOf(".");
      }
      while(po >= bund.length - 2) {
        bund = bund + "0";
      }
      return bund + " " + m;
    }
    function calculate() {
      s = f.mySize.value;
      s = s.replace(",", ".")
      if(isNaN(s)) {
        alert("Bitte als Seitenlänge eine Zahl eingeben.\nIl valore della lunghezza va indicato con un numero.\nLength has to be a number.");
        return;
      }
      q = s.indexOf(".");
      if(q == -1) {
        q = s.length;
      }
      t = f.temperatur.selectedIndex;
      m = f.mass[f.mass.selectedIndex].text;
      f.t0.value  = formatiere(s, t, m,  0, q);
      f.t1.value  = formatiere(s, t, m,  1, q);
      f.t2.value  = formatiere(s, t, m,  2, q);
      f.t3.value  = formatiere(s, t, m,  3, q);
      f.t4.value  = formatiere(s, t, m,  4, q);
      f.t5.value  = formatiere(s, t, m,  5, q);
      f.t6.value  = formatiere(s, t, m,  6, q);
      f.t7.value  = formatiere(s, t, m,  7, q);
      f.t8.value  = formatiere(s, t, m,  8, q);
      f.t9.value  = formatiere(s, t, m,  9, q);
      f.t10.value = formatiere(s, t, m, 10, q);
      f.t11.value = formatiere(s, t, m, 11, q);
      f.t12.value = formatiere(s, t, m, 12, q);
      f.t13.value = formatiere(s, t, m, 13, q);
      f.t14.value = formatiere(s, t, m, 14, q);
      f.t15.value = formatiere(s, t, m, 15, q);
      f.t16.value = formatiere(s, t, m, 16, q);
      f.t17.value = formatiere(s, t, m, 17, q);
    }
