Hello all, i need a help that i have a submit form a iframe.

Normally the code process is :
Code:
<a href="submit_news7c98.html?iframe=true&amp;width=420&amp;height=560" name="submit_news" class='ie6fix' id='submit_news' rel="prettyPhoto">Submit Query</a>
Now iframe load and form process to form_process.php and then when i click submit the form process to form_process2.php now i will able to close the iframe after submit.

I have tried simple javascript solution like body onload function timer function but they only work with if the open the submit_news7c98.html page direct it is not working when i am opening it as iframe from my site.

so anybody can help me on this ?