function PopUpWindow(v_codice,w,e)
{
v_options = "toolbar=no,width="+w+",height="+e+",directories=no,status=no,scrollbars=yes,resize=no,menubar=no";
msgWindow=window.open(v_codice,"displayWindow",v_options)
} 

function img_popup(file,w,h) {


   winStats='toolbar=no,location=no,directories=no,menubar=no,';
   winStats+='scrollbars=yes,width='+ w +',height=' + h;
	
   floater=window.open("","",winStats) ;
   floater.document.writeln ("<HTML><head><TITLE>PREVIEW</TITLE></head>");
   floater.document.writeln ("<link rel=\"stylesheet\" href=\"/css/commonStyle.css\" type=\"text/css\">");
   floater.document.writeln ("<body bgcolor='white' link='#333333' vlink='#666666' alink='#666666'>");
   floater.document.writeln ("<center>");
   floater.document.writeln ("<img src=\"" + file + "\"alt=\"PREVIEW\"");
   floater.document.writeln ("<br><center><a href='javascript:self.close()'>chiudi/close</center>");
   floater.document.writeln ("</body></HTML>")  ; 
   //floater.document.close();
   floater.focus();


}


function detail_popup(testo) {


   winStats='toolbar=no,location=no,directories=no,menubar=no,';
   winStats+='scrollbars=yes,width=250,height=200';
	
   floater=window.open("","",winStats) ;
   floater.document.writeln ("<HTML><head><TITLE><?php echo $txtLang[$lang][gen_txt_info_aggiuntive] ?></TITLE></head>");
   floater.document.writeln ("<link rel=\"stylesheet\" href=\"/css/commonStyle.css\" type=\"text/css\">");
   floater.document.writeln ("<body bgcolor='white' link='#333333' vlink='#666666' alink='#666666'>");
   floater.document.writeln (testo);
   floater.document.writeln ("<br><center><a href='javascript:self.close()'>chiudi/close</center>");
   floater.document.writeln ("</body></HTML>")  ; 
   //floater.document.close();
   floater.focus();


}
