I'm trying to use a function to grab client side variables but I am very discouraged and ready to admit defeat. The three things that retard me are:

A. How do I send the request to the function from a dynamicly made hyperlink
B. How do I get it back
C. and how do I put these variables into the querystring

Can anyone help before I request a demotion at work.

code:

<HTML><HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function blah()
{
var strURL;
strURL = Tcode.options(Tcode.selectedIndex).innerText;
strURL2 = pass.value;
blah = "header.asp?Joe.Tcode=" + strURL + "&" + "Joe.pass=" + strURL2;
}
-->
</SCRIPT></HEAD>


<BODY>
<!--Do all the DB Connect stuff here-->
<%Set QueryD = Connect.Execute (Qstr)%>
<%Do Until QueryD.EOF%>
<TR>
<td><b>
<a href=<%=QueryD("Stuff")%>?OnClick=(blah)>
Request for <%=QueryD("Stuff")%></b><br></a>
<%QueryD.MoveNext%>
<%loop%>
</td></TR></Table><P>
</BODY>
</HTML>