Thanks again for your response japshire. Your last response was successful in getting a sub to execute with the press of a button.

I have the following code(including how you demonstrated how to get a button to execute a sub) on an ASP page:

Code:
<html>

<head>

<Script type="text/vbscript">

Sub Test1
	Document.Write("Hello from Test1!")
End Sub

</script>

<title>CSTools - Organizations</title>

</head>

<body>

<%
Dim strConnect, strCompanyName
Set objConn = Server.CreateObject("ADODB.Connection")
Set objRS = Server.CreateObject("ADODB.RecordSet")
strConnect = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="& Server.MapPath("cstoolsdb.mdb")
objConn.open strConnect
strcompanyname = request.querystring("companyinfo")
objRS.open "SELECT * FROM tblcompanies WHERE companyname = '" & strcompanyname & "'",objConn
%>

<%fillfields%>

<%Sub fillfields%>
<p align="center"><font size="6"><b><u><%=request.querystring("companyinfo")%></u></b></font></p>
<p><font size=4><b>Catagory:</b>&nbsp;<%=objRS("catagory")%></font></p>
<p><font size=4><b>ID:</b>&nbsp;<%=objrs("id")%></font></p>
<p><font size=4><b>Billing Address:</b>&nbsp;<%=objrs("billingaddress")%>&nbsp;&nbsp;&nbsp;<b>Shipping Address:</b>&nbsp;<%=objrs("shippingaddress")%></font></p>
<p><font size=4><b>City:</b>&nbsp;<%=objrs("city")%></font></p>
<p><font size=4><b>State\Province</b>&nbsp;<%=objrs("stateorprovince")%></font></p>
<p><font size=4><b>Postal Code:</b>&nbsp;<%=objrs("postalcode")%></font></p>
<p><font size=4><b>Country:</b>&nbsp;<%=objrs("country")%></font></p>
<p><font size=4><b>Modem:</b>&nbsp;<%=objrs("modemphoneno")%></font></p>
<p><font size=4><b>Suffix:</b>&nbsp;<%=objrs("suffix")%>&nbsp;&nbsp;&nbsp;<b>Logon:</b>&nbsp;<%=objrs("logon")%>&nbsp;&nbsp;&nbsp;<b>Password:</b>&nbsp;<%=objrs("password")%></font></p>
<p><font size=4><b>Navy Issues:</b>&nbsp;<%=objrs("navyissues")%>&nbsp;&nbsp;&nbsp;<b>Associate Membership:</b>&nbsp;<%=objrs("associatemembership")%></font></p>
<%End Sub%>

<%
objRS.close
set objRS = Nothing
objConn.close
set objConn = Nothing
%>

<button onclick="Test1">Test1</button>

</body>

</html>
What I want the button to do is execute the sub "fillfields" when it is clicked. Any ideas on how to accomplish that would be greatly appreciated.