SOURCE CODE:
<html><head><title>Checkout</title>
<script language="vbscript">
function calcVB()
dim price, tax, total, cost
price = document.form.txtP.value
tax = getTaxVB()
total =(price * tax)
document.form.txtT.value = formatCurrency(total)
cost = price + total
document.form.txtC.value = formatCurrency(cost)
end function
</script>
<script language="vbscript">
function getTaxVB()
intTax = 0.085
getTaxVB= intTax
end function
</script>
</head>
<body bgcolor="#FFFF99" text="#800000">
<h2>Checkout</h2>
<form name="form" method="post"
action="javascript:void(0);">
<input type="text" value="0" name="txtP" size="7">Product Price <br><br>
<input type="text" name="txtT" size="7">Total Tax in Dollars <br><br>
<input type="text" name="txtC" size="7">Total Cost of the Product <br><br>
<input type="button" value="Calculate My Total"
name="btnSubmit" onClick="calcVB()">
</form></body></html>