Need help with Email Automation and closing window

Hi,

on my form i have button(copies form fields to mail fields like To,CC, and attechment) using that i compose a mail

after that i need to close form window how do i do that?

Subject: need help with Email Automation and closing window

is your button using lotuscript or formula language? post your code.