Have a Decision Box open a pop up to edit related contact information

Have a Decision Box open a pop up to edit related contact information

I have a create order form. On this form I have a lookup field to a form called contacts. On the contacts form I have a field for Email.

On the main Create Order form I have a decision box that says Update Email. I want this decision box to then checked pop up the related forms contact info in an edit pop up window. This way the user can then adjust the email address if needed in the Contact form and keep it all nice and clean.

I am having trouble getting the pop up window to open the form with the information in it.

The Open URL function odiously can be put on the checkbox to pop open the create new contact form. I used this simple code and that works fine.

if(Update_Email == true)
{
    openUrl("#Form:Add_Contact","popup window","height=<height>,width=<width>");
}

I thought that I might need to store the ID of the related contact to the main form in a variable. I did this:

contactid = Add_Contact[ID = input.contact];

But thats about all I got and can not get the pop up window to open up to an edit screen instead of a create new window. Any help would be very much appreciaeted. I feel like it is a fairly easy task.