document.getElementById("ans").value=total;