function rezultat(a) { var n = 0; if(n){ var one = document.getElementById("recent"); var two = document.getElementById("recent2"); two.value = (one.value * a).toFixed(2); } };