Parent and Response document

I have a parent document which is open. Now I have opened a response document of that parent document. I want to close the parent document whenever I am closing the response document using lotus notes/formula function. What to do?