Hey gang. THis may be asked somewhere before, but I couldn't find it.

I am trying to pass a variable that is defined in a sql statement, to a
window.open page. I am not having any luck in being able to do this. Here is
what I have.
Oh, using asp, not php.

varida is the variable I am trying to pass. Normally, with a regular
querystring, it passes as ?id=<%=varida%>
but that doesn't give me the results.
so i have tried
Code:
function newwindow()
{
window.open('http://mysite/edit_email.asp?id=" + varida + 
"','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no');
}
and
Code:
function newwindow()
{
window.open('http://mysite/edit_email.asp?id=" + <%=varida%> + 
"','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no');
}
and
Code:
function newwindow()
{
window.open('http://mysite/edit_email.asp?id="<%=varida%>"','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no');
}
none of the above will pass the variable.

can someone help me out here please??


much thanks


i also have this in the link part
Code:
<a HREF="javascript:newwindow('<%=varida%>')">
now when I hover the mouse, it does show the id in the status bar. so that
part is working.

is there a different way of retrieving a querystring other than

userid = request.querystring("id")

maybe that's the problem