That is what I want to do, show the button only after the "total" button is clicked, so wouldn't have to do the visbility function pieces in the onclick function? Here is what I have, should have included the other function. So when I click SubtotalItem button the OrderTotal button will appear.
<script> function total(current) { calctax(current); sum=<cfloop query="getprods"> <cfif itemid NEQ enditem> eval(current.Subtotal<cfoutput>#itemid#</cfoutput>.value)+ <cfelse> eval(current.Subtotal<cfoutput>#itemid#</cfoutput>.value) </cfif> </cfloop> ; document.order.SH.value=calcsh(sum); sum = sum + eval(current.Tax.value)+ eval(current.SH.value); return format(sum); <script> } <cfform .... <tr> <td align=center CLASS="defaulttext"><b>TOTAL:</b></td> <td align=center colspan="2"><INPUT NAME="SubtotalItem" CLASS="inputlarge" TYPE="button" VALUE="Click to Total Order" onClick="order.totaltxt.value=total(this.form);"></td> <td align="right"><INPUT CLASS="textbox" TYPE="text" NAME="totaltxt" SIZE="10" MAXLENGTH="30" VALUE="0" > </td> </tr> <tr> <td align=center colspan=4> <INPUT NAME="OrderTotal" CLASS="inputlarge" TYPE="submit" VALUE="Submit Order" > </td> </tr> </table> </cfform> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227002 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54