How can I force a document save in a frameset environment?

Hi there!

I have a web application in a frameset environment. How can I force users to save a document when they click outside the frame? The user cannot go any further unless they save the document.

Any ideas?

Gérald