seems like if the confirm statement is true, the javascript send a querystring to your asp page (the same page).
This asp page presumable request the same query string and does sth with it, like inserting the queried value inside a SQL statement and runs that, usally in form of a var.
//Martin :-)