I have a form that goes through a js validation. When the form is submitted the user is redirected to target="_blank". I then want the _parent form window to reset itself and remove all the users entries.

Here is my validation script, but I can't get the form to reset:

PHP Code:
<script language="JavaScript">

function 
checksubmit()
{
if (
document.formname.title.value == "select")
   {
      
alert("Please select an appropriate title!")
      
document.formname.title.focus()
      return 
false
   
}
   if (
document.formname.fname.value == "")
   {
      
alert("Please enter your First Name!")
      
document.formname.fname.focus()
      return 
false
   
}
 if (
document.formname.lname.value == "")
   {
      
alert("Please enter your Last Name!")
      
document.formname.lname.focus()
      return 
false
   
}


   if (
document.formname.address1.value == "")
   {
      
alert("Please enter a valid address!")
      
document.formname.address1.focus()
      return 
false
   
}
    if (
document.formname.city.value == "")
   {
      
alert("Please enter a valid city name!")
      
document.formname.city.focus()
      return 
false
   
}
    if (
document.formname.state.value == "select")
   {
      
alert("Please select a State!")
      
document.formname.state.focus()
      return 
false
   
}
    if (
document.formname.zip.value == "")
   {
      
alert("Please enter your zip code!")
      
document.formname.zip.focus()
      return 
false
}

<!-- 
Here is where I'm trying to create a clear form function -->

function clear_form() {
document.formname.reset();
}
   return true
}
//--></SCRIPT> 

And here is the form:



<form name="formname" action="http://www.somesite.info/news/join.asp" method="post" onSubmit="return checksubmit(); setTimeout('clear_form()', 200); return true" target="_blank">


Can someone please tell how this is done and if I'm on the right track?

THANKS EVERYONE!!