Sonya,
<script>
function fn()
{
var item = document.getElementById("summa");
function foo() {
var output = document.getElementById("count");
output.innerHTML = (this.value / 3).toFixed(2);
}
item.addEventListener("input", foo);
foo.bind(item)();
}
function popup_show(){
if(fn) { fn() ;fn = null};
$('#popup').show();}
</script>