<script type="text/javascript">
function submitform()

<form method="POST" action="" name="comm">
<p><input type="text" name="T1" size="20"> <a href="javascript: submitform()">

What i need is on clicking the submit link, the current popup or page should be closed.
But it must not close before the form data is posted.I mean....The data is posted on the form itself and after executing the php code on the top, the popup or page should close. Any suggestions or help will be greately appreciated.