Well, the first issue you have is that your javascript is client sider and your asp is server side, this means you can only pass the javascript value to the next page as the server side code has already executed and gone away.
One solution would be to embed the value in the querystring of the address and use Request.QueryString on the ASP page to get the value.
Let me state again, for the record, you cannot pass the javascript variable to the ASP on the same page. That ASP script has already executed and created the client side script that is being processed. Once the page shows up in the browser and any client side functions start, the ASP script is gone. You cannot call the javascript value from the ASP because when the ASP script is running, the javascript has not executed yet and that variable does not exist yet.
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation