<script language="javascript">
function calcTotal()
{
var p = document.frmtest.price.value;
if (!p || p.length == 0 || isNaN(p))
p = 0.0;
else
p = parseFloat(p);
var n = document.frmtest.quantity.value;
if (!n || n.length ==0 || isNaN(n))
n = 0.0;
else
n = parseInt(n);