k.
The function provided was javascript...
I was trying to explain in my last paragraph that since the browser sees pages rendered by ASP.NET as nothing more than common XHTML/CSS/Javascript, nothing stops you from writing your own javascript and wiring it up exactly the same way as you normally would were you not working within a .NET environment.