var inputB = document.getElementById ("format_result")
<input id="za_kus" type="text" onkeyup="change()" readonly="readonly">
Jednou to je "format_result" a podruhé "za_kus" 
var inputB = document.getElementById ("format_result")
<input id="za_kus" type="text" onkeyup="change()" readonly="readonly">
Jednou to je "format_result" a podruhé "za_kus"