closing child window which has form and refreshing parent window

hi all               can anyone tell me on how to close the child which contains a form on submit and to refresh the parent window on the same