<form ... target="principale"
onsubmit="setTimeout('top.close()',300)">

ciao