Using ONCHANGE With Function

What is the price? Price with tax:


<HTML>
<HEAD>
<TITLE> Events and Functions </TITLE>
<SCRIPT LANGUAGE="JavaScript">
function addTax(amt) {
// Assumes: amt is the total price
// Returns: the price with 6% tax added
	return parseFloat(amt) * 1.06;
	}

</SCRIPT>
</HEAD>
<BODY>


<FORM NAME="TaxForm">

What is the price? 
<INPUT TYPE="text" NAME="price" SIZE="10"
ONCHANGE="document.TaxForm.withTax.value = 
 addTax(document.TaxForm.price.value);"> 

Price with tax: 
<INPUT TYPE="text" NAME="withTax" SIZE="10"><BR>

</FORM>