timoh
committed
on 27 Oct 05
fixing javascript for credit calculation