Hello I am very new to this and thought posting here would help.
Okay so I have a site where one of the links I have set up to open a pop up window which will display Terms & Agreement information, at the bottom there is a check box and a submit button for users to click on if they agree to the terms. I was able to get that working but the thing is when the user clicks in the check box and hits submit I want them to be directed to a page which has a form on it but I wanted the page to open in the original (Parent) window. This is where I am lost cause I found some coding which will open the page with the form in the pop up window but Ideally once they agree to terms and hit submit I'd like the pop up window to disappear and the new page open in the Parent window... is this possible below is the coding I'm using.

Here is the form:
<form method="get" action="this is where my link will go" onsubmit="return yes_no(this.form) " name="Agree">
<INPUT name="agree" name="agree" value="agree" type="checkbox"> I agree to terms
<input type="submit" name="submit" value="Accept Terms">
</form>


Javascript being used:

<!--Pop Up Terms Window-->
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
//-->
</SCRIPT>


<!--Agree check box-->
<script language="javascript1.2">
function yes_no()
{
var agree=document.Agree.agree.checked;
if (agree == true){
return true;

}else{
alert("you must agree to terms if you would like to submit a story");
return false;
}
}
</script>


<!--load page back in parent window-->
<SCRIPT>
function loadinparent(url, closeSelf){
self.opener.location = url;
if(closeSelf) self.close();
}

//-->
</SCRIPT>