Thanks. I tried the window.document.location = url1 and still get the object required: window
error.
This is being used on a ASP page (part of it is pulling data from a database. I'll post a copy of my current code in this message. If I put the response.redirect(url1) in it gives me this error:
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
Even though there is nothing being sent to the page.
<html>
<head>
<title>Home Page</title>
</head>
<body>
<p><%@ LANGUAGE="VBSCRIPT" %> <%
'Declaring variables
Dim cust_id1
Dim act_flags1
Dim url1
Dim objConn
Dim objRS
Dim strSQL
'Setting Variables
Set objConn = Server.CreateObject("ADODB.Connection"
Set objRS = Server.CreateObject("ADODB.Recordset"
objConn.ConnectionString = "DSN=inv_data"
'Assigning Form results to variable
cust_id1 = CStr (Request ("cust_id"

)
'Open a connection
objConn.Open
'defining SQL statement and retrieving data
strSQL = "SELECT ACT_FLAGS FROM billmstr WHERE cust_id = '" + cust_id1 +"'"
ObjRS.Open strSQL, objConn
act_flags1 = objRS("ACT_FLAGS"

act_flags1 = Mid(act_flags1, 5, 1)
'Determine if flag is on
if act_flags1 = "Y" then
url1 = "../" + cust_id1
else
url1 = "reject.htm"
End If
'Close the Recordset object
objRS.Close
'Delete the Recordset Object
Set objRS = Nothing
'Close the Connection object
objConn.Close
'Delete the Connection Object
Set objConn = Nothing
%></p>
</body>
</html>