<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear Javascript List,</FONT></DIV>
<DIV><FONT face=Arial size=2>I am teaching myself javascripting and have decided
to tackle this form menu, I have to display the totals, days,and email
confirm.</FONT></DIV>
<DIV><FONT face=Arial size=2>The only thing is I cannot get the script far
enough to calculate the total, I get an error message saying product.length is
null or not an object.</FONT></DIV>
<DIV><FONT face=Arial size=2>Could you possibly give me a solution to calculate
and display the subtotal and total so I can move on to the days and email
calcs.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>p.s </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have enclosed the form </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>function calc(f){ <BR> var qty = new
Array();<BR> var subtotal;<BR> <BR> var total = 0;<BR> var i
= 0;<BR> var num= 1;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> while ( num !=0 && i <
product.length) {<BR> qty[i] =
num;<BR>
subtotal = subtotal + qty[i] *
prices[i]<BR> <BR> <BR> <BR>
}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
}</FONT></DIV></BODY></HTML>