kodu strasznie duzo (nie chce mi sie przeglądać) więc strzelam że powinno być coś takiego
<button onclick="var_xu_txt.Format(0)" type="button"></button> <button onclick="var_xu_txt.Format(1)" type="button"></button> <button onclick="var_xu_txt.Format(2)" type="button"></button>
domyślnie button jest typu submit - dlatego wysyła formularz, można to też załątwić poprzez onclick="jakies funkcje; return false"