I found it.
I use eval(nameDynamicWindow+"="+"window.open'<indirizzo >', "" , "");");
and eval(nameDynamicWindow+".close();");
to close them
thank u as well