<script language="javascript">
function MoneyValue()
{
  
   if (document.Form1.txtAmount.value!="" && document.Form1.txtUnitPrice.value!="")
   {
     document.Form1.txtMoney.value=document.Form1.txtAmount.value*document.Form1.txtUnitPrice.value;
     document.Form1.txtMoney.value=adv_format( document.Form1.txtMoney.value,3)
     
   }
}
</script>
<tr>
<td class="input_td" width="20%" style="HEIGHT: 24px">领用数量<font color="red">*</font></td>
<td height="24" style="HEIGHT: 24px"><input class="TextArea" id="txtAmount" onblur="MoneyValue()" type="text" name="txtAmount"
runat="server" Width="224px" maxLength="13">
</td>
</tr>
<tr>
<td class="input_td" width="20%">单价<font color="red">*</font></td>
<td height="24"><input class="TextArea" id="txtUnitPrice" onblur="MoneyValue()" type="text" name="txtUnitPrice"
runat="server" Width="224px" maxLength="13">
</td>
</tr>
<tr>
<td class="input_td" width="20%">单位<font color="red">*</font></td>
<td height="24"><asp:textbox id="txtUnit" runat="server" Width="224px" CssClass="TextArea"></asp:textbox></td>
</tr>
<tr>
<td class="input_td" width="20%">金额</td>
<td height="24"><asp:textbox id="txtMoney" runat="server" Width="224px" CssClass="TextArea" MaxLength="20"></asp:textbox>
</td>
</tr>
OK了。你新建一个页面,把javascript加到head区,然后把其余的写到form里边
运行就OK了.