Save and close opener

Hi,

I have a popup window (form) that has a button on it that runs the following javascript in IE6.

{

var child = document.forms[0];

var parent = opener.document.forms[0];

parent.Status.value = “Final”;

parent.SkillsDev.value = “This employee has choosen not to complete the Skills Development section”;

parent.submit();

parent.close();

child.close();

}

It writes the field values OK, saves the parent form and closes the parent/opener but won’t close the child.

It also throws an error - “object doesn’t support this property or method”. When I run the debugger it stops on parent.submit(); and shows “permission denied”.

Thanks,

Gary