in my form
i give the user two options,
either to 'add a new transaction' or delete an existing one.
the code for it is:
for add transaction
<table align=center border='1' bordercolor="#ffffff" cellpadding="0" cellspacing="0" class='verdana2' width="100%">
<tr
<td bgcolor='#cccccc' align='middle'> <b><A style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Sans-Serif; TEXT-DECORATION: none" href="Input.asp" ><center>Add New Transaction</center></a></b> </td>
</tr>
</table>
for delete transaction ( use sessions with it)
<td align='left' class='cellDesc'>
<A style="TEXT-DECORATION: none" href='Input.asp?sessionNum=<%=rsData.fields("ENTRY_NUMBER")%>' >
<IMG alt="Modify Transaction Details" src ="images/configpencil.png" border=0 >
</A>
</td>
and on input form in the body tag i write
<body onload="test();">
the function is called , when i am using the 'add new transaction'
but is not called when i use the 'edit transaction'