// DDMM
    function DDMM(Theta) {
      d=Math.floor(Theta)
      m=Math.floor(60*(Theta - d))
      DD=d
      if (d < 10) DD=" &nbsp " + d

      MM=m
      if (m < 10) MM="0" + m

      return DD + "<sup>o</sup> " + MM + "'"
    }


// Len
    function Len(S) {
      return S.length
    }

    function Mid(S, K1, L) {
      return S.substr(K1-1, L)
    }
