Javascript/active server pages (asp)

Hi all,
I have two radio buttons to control deleting or updating of records.
The following javascript identifies which radio button is clicked. Then information about the record is displayed when the save button is clicked.

So, based on the client side info I’ll need to determine whether to execute the update or delete statement on the server side when the save button is clicked. How can I acheive this? how can I pass the value of the radio buttons to server side asp code.
if del_ then
str = " Delete from …
elsif upd_ then
str = " Update abc where …"
end if

This is the javascript that controls the radio button clicks
oRadBtns = document.getElementById(‘mytbl’).getElementsByTagName(‘input’);
for(i=0; i < oRadBtns.length; i++){
oRadBtns[i].value += oRadBtns[i].parentNode.parentNode.lastChild.innerHTML;
document.getElementById(‘btnSave’).onclick=function(){ // my Save button
var str = "You have selected


for(i=0; i < oRadBtns.length; i++) {
str += oRadBtns[i].value+"

alert(str );

My radio buttons:
<td><input type=“radio” name=“action1” value=“del_” />Delete</td>
<td><input type=“radio” name=“action1” value=“upd_” />Update</td>

The selected value will be passed to the server in the action1 field. Exactly which action1 field it will use depends on whether you are using POST or GET with the form.

if request.Form(“btnadd”) <> “” then // save button
if request.Form(“action1”) <> “” then // this isn’t firing
response.Write(“not null”)
end if
end if

Never mind, I got it. Thank you for your help.