<form ... target="principale"
onsubmit="opener.name='principale'; setTimeout('window.close()',500)">

ciao