Enable a "close window" button with xPages?

I have a xPage that displays view information with a button that when clicked open another xPage with a search function. in the search xPage I put a button that says “Close” when the user clicks this button I want the application to go back to the original xPage with the full view. I cannot find a simple action to close the xPage do you know how to accomplish this?

Thanks

Subject: navigating away from xPage usin javascript

I tried this “on the cancel button in the search xPage” I enter this javascript code on the client-side:

location = “list1.xsp”

where list1.xsp is my originalxPage with a view

on FireFox 3 worked OK but when I tried the same in Lotus Notes Client 851 I got this java error:

javax.servlet.ServletException: The request is not coming from a trusted Rich Client part

com.ibm.domino.xsp.module.nsf.NSFService.doService(Unknown Source)

com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(Unknown Source)

com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(Unknown Source)

com.ibm.domino.xsp.bridge.websrv.servlets.DispatcherServlet.service(Unknown Source)

org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(Unknown Source)

org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(Unknown Source)

org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(Unknown Source)

org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(Unknown Source)

javax.servlet.http.HttpServlet.service(Unknown Source)

com.ibm.pvc.webhttpservice.BridgeServlet.service(Unknown Source)

com.ibm.ws.webcontainer.servlet.ServletWrapper.service(Unknown Source)

com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Unknown Source)

com.ibm.pvc.internal.webcontainer.servlet.ServletWrapper.handleRequest(Unknown Source)

com.ibm.pvc.internal.webcontainer.servlet.ServletWrapper.handleRequest(Unknown Source)

com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(Unknown Source)

com.ibm.ws.webcontainer.WebContainer.handleRequest(Unknown Source)

com.ibm.wsspi.webcontainer.WebContainer.handleRequest(Unknown Source)

com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Unknown Source)

com.ibm.ws.http.HttpConnection.readAndHandleRequest(Unknown Source)

com.ibm.ws.http.HttpConnection.run(Unknown Source)

com.ibm.ws.util.ThreadPool$Worker.run(Unknown Source)

Subject: The request is not coming from a trusted Rich Client part

I have the same error in notes Client but not in web clientThe request is not coming from a trusted Rich Client part what dose it mean ?