If you want to refresh the main or parent window from a pop up, use this small javascript code:
<script>window.opener.location.href=window.opener.location.href;</script>
This will cause the parent window to reload the content, and is useful when the popup code changes something in a database, and you need the parent window to reflect those changes.