I have an order form that I would like to calculate as each object is selected. The form has 5 different select ofjects and some of them have base prices while others are additional prices. I'm new to web programming but am a programmer so I will catch on quickly. I need to understand how to:
1. Take the value of the selectObj, ASSIGN a unit price and total the selections of that row?

2. At the same time the above is happening, I need to accumulate the Total in each row for the Grand Total field at the end of the form.

Any help would be greatly appreciated.

<!-------------------------------------------------------------------------------->
<! --- a new table to hold our item ordering fields: >
<!-------------------------------------------------------------------------------->

<p>And tell us what you would like:</p>

<table border="0" cellpadding="0" width="550" id="table2">
<tr>
<td width="250" height="31"><b>Photograph: </b></td>
<td align="center" width="100" height="31"><b>Size </b></td>
<td align="center" width="150" height="31"><b>Frame Style</b></td>
<td align="center" width="200" height="31"><b>Frame Material</b></td>
<td align="center" height="31" width="100"><b>Quantity </b></td>
<td align="center" height="31" width="140"><b>Finish</b></td>
<td align="center" height="31" width="140"><b>Total</b></td>
</tr>
<tr>
<td width="250">
<select id="selectPhoto1">
<option value="">Choose a photograph</option>
<option value="val0">A Kiss</option>
<option value="val1">Almost Shy</option>
<option value="val2">Athens</option>
<option value="val3">Blue Eyes</option>
<option value="val4">Ice Trees</option>
<option value="val5">Iggy Pop Live</option>
<option value="val6">In the Woods</option>
<option value="val7">Just Landing</option>
<option value="val8">Little Man</option>
<option value="val9">Lone Morning Deer</option>
</select>
</td>
<td width="250">
<select id="selectSize1">
<option value="">Choose a Size</option>
<option value="size0">8 X 11 - $65.00</option>
<option value="size1">11 X 14 - $95.00</option>
<option value="size2">16 X 20 - $120.00</option>
<option value="size3">20 X 24 - $150.00</option>
</select>
</td>
<td width="250">
<select id="selectFrameStyle1">
<option value="">Choose a Frame Style</option>
<option value="fStyle0">Antique</option>
<option value="fStyle1">Basic</option>
<option value="fStyle2">Modern</option>
<option value="fStyle3">Old World</option>
</select>
</td>
<td width="250">
<select id="selectFrameMaterial1">
<option value="">Choose a Frame Material</option>
<option value="fMat0">Color - Black</option>
<option value="fMat1">Color - Brown</option>
<option value="fMat2">Color - Blue</option>
<option value="fMat9">Gold</option>
<option value="fMat10">Metal</option>
<option value="fMat11">Pewter</option>
<option value="fMat12">Silver</option>
<option value="fMat13">Wood - Light</option>
<option value="fMat14">Wood - Dark</option>
<option value="fMat15">Pewter</option>
<option value="fMat16">Silver</option>
</select>
</td>
<td width="250">
<select id="SelectQuantity1">
<option value="">Choose Quantity</option>
<option value="quant0">0</option>
<option value="quant1">1</option>
<option value="quant2">2</option>
<option value="quant3">3</option>
</select>
</td>
<td width="250">
<select id="selectFinish"1>
<option value="">Choose Finish</option>
<option value="finish0">8 x 11 - Oil Brush - $25.00</option>
<option value="finish1">11x 14 - Oil Brush - $25.00</option>
<option value="finish2">16 x 20 - Oil Brush - $45.00</option>
<option value="finish3">20 x 24 - Oil Brush - $55.00</option>
</select>
</td>
<td>
<input type="text" name="total1" size="12" tabindex="99"></td>
</td>
</tr>
<td width="250">
<select id="selectPhoto2">
<option value="">Choose a photograph2</option>
<option value="val0">A Kiss</option>
<option value="val1">Almost Shy</option>
<option value="val2">Athens</option>
<option value="val3">Blue Eyes</option>
<option value="val4">Ice Trees</option>
<option value="val5">Iggy Pop Live</option>
<option value="val6">In the Woods</option>
<option value="val7">Just Landing</option>
<option value="val8">Little Man</option>
<option value="val9">Lone Morning Deer</option>
</select>
</td>
<td width="250">
<select id="selectSize2">
<option value="">Choose a Size</option>
<option value="size0">8 X 11 - $65.00</option>
<option value="size1">11 X 14 - $95.00</option>
<option value="size2">16 X 20 - $120.00</option>
<option value="size3">20 X 24 - $150.00</option>
</select>
</td>
<td width="250">
<select id="selectFrameStyle2">
<option value="">Choose a Frame Style</option>
<option value="fStyle0">Antique</option>
<option value="fStyle1">Basic</option>
<option value="fStyle2">Modern</option>
<option value="fStyle3">Old World</option>
</select>
</td>
<td width="250">
<select id="selectFrameMaterial2">
<option value="">Choose a Frame Material</option>
<option value="fMat0">Color - Black</option>
<option value="fMat1">Color - Brown</option>
<option value="fMat2">Color - Blue</option>
<option value="fMat9">Gold</option>
<option value="fMat10">Metal</option>
<option value="fMat11">Pewter</option>
<option value="fMat12">Silver</option>
<option value="fMat13">Wood - Light</option>
<option value="fMat14">Wood - Dark</option>
<option value="fMat15">Pewter</option>
<option value="fMat16">Silver</option>
</select>
</td>
<td width="250">
<select id="SelectQuantity2">
<option value="">Choose Quantity</option>
<option value="quant0">0</option>
<option value="quant1">1</option>
<option value="quant2">2</option>
</select>
</td>
<td width="250">
<select id="selectFinish2">
<option value="">Choose Finish</option>
<option value="finish0">8 x 11 - Oil Brush - $25.00</option>
<option value="finish1">11x 14 - Oil Brush - $25.00</option>
<option value="finish2">16 x 20 - Oil Brush - $45.00</option>
<option value="finish3">20 x 24 - Oil Brush - $55.00</option>
</select>
</td>
<td>
<input type="text" name="total2" size="12" tabindex="99"></td>
</td>
</tr>
<td width="250">
<select id="selectPhoto3">
<option value="">Choose a photograph</option>
<option value="val0">A Kiss</option>
<option value="val1">Almost Shy</option>
<option value="val2">Athens</option>
<option value="val3">Blue Eyes</option>
<option value="val4">Ice Trees</option>
<option value="val5">Iggy Pop Live</option>
<option value="val6">In the Woods</option>
<option value="val7">Just Landing</option>
<option value="val8">Little Man</option>
<option value="val9">Lone Morning Deer</option>

</select>
</td>
<td width="250">
<select id="selectSize3">
<option value="">Choose a Size</option>
<option value="size0">8 X 11 - $65.00</option>
<option value="size1">11 X 14 - $95.00</option>
<option value="size2">16 X 20 - $120.00</option>
<option value="size3">20 X 24 - $150.00</option>
</select>
</td>
<td width="250">
<select id="selectFrameStyle3">
<option value="">Choose a Frame Style</option>
<option value="fStyle0">Antique</option>
<option value="fStyle1">Basic</option>
<option value="fStyle2">Modern</option>
<option value="fStyle3">Old World</option>
</select>
</td>
<td width="250">
<select id="selectFrameMaterial3">
<option value="">Choose a Frame Material</option>
<option value="fMat0">Color - Black</option>
<option value="fMat1">Color - Brown</option>
<option value="fMat2">Color - Blue</option>
<option value="fMat9">Gold</option>
<option value="fMat10">Metal</option>
<option value="fMat11">Pewter</option>
<option value="fMat12">Silver</option>
<option value="fMat13">Wood - Light</option>
<option value="fMat14">Wood - Dark</option>
<option value="fMat15">Pewter</option>
<option value="fMat16">Silver</option>
</select>
</td>
<td width="250">
<select id="SelectQuantity3">
<option value="">Choose Quantity</option>
<option value="quant0">0</option>
<option value="quant1">1</option>
<option value="quant2">2</option>
<option value="quant3">3</option>
</select>
</td>
<td width="250">
<select id="selectFinish3">
<option value="">Choose Finish</option>
<option value="finish0">8 x 11 - Oil Brush - $25.00</option>
<option value="finish1">11x 14 - Oil Brush - $25.00</option>
<option value="finish2">16 x 20 - Oil Brush - $45.00</option>
<option value="finish3">20 x 24 - Oil Brush - $55.00</option>
</select>
</td>
<td>
<input type="text" name="total3" size="12" tabindex="99"></td>
</td>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td width="250">
<p align="right"><b>Sales Tax:</b></td>
</td>
<td width="250">
<input type="text" name="salesTax" size="12" tabindex="99"></td>
</td>
</tr>
<tr></tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td width="250">
<p align="right"><b>Grand Total:</b></td>
</td>
<td width="250">
<input type="text" name="GrandTotal" size="12" tabindex="99"></td>
</td>
</tr>
<tr></tr>
<tr></tr>
<!-------------------------------------------------------------------------------->
<! --- complete our form with the requisite "submit" button, and provide >
<! --- A reset button for the convenience of our customers >
<!-------------------------------------------------------------------------------->

<p> </p>
<table border="0" cellpadding="2" width="550" id="table3">
<tr>
<td width="563">
<p align="center">
<input type="submit" value="Submit" name="subButton" tabindex="50" onclick="checkReqFields()">
<input type="reset" value="Reset" name="resetButton" tabindex="50"></td>
</tr>
</table>
</form>
</body>
[/HTML]