prompt user to save changes in form

how can i prompt users automatically to save changes in from

duplicate:
http://www.scriptcase.net/forum/showthread.php?4246-functionality-for-save-changes