function apripopup(x) {

    remote = window.open("","remotewin","width=700,height=500,scrollbars=yes,left=0,top=0,toolbar=no,menubar=no,location=no");

         if (x==1) {

    remote.location.href = "stampa/sis_pieg_light.asp";

         }
		 else if (x==2) {

    remote.location.href="stampa/sis_pieg_medium.asp";

         }
		 
		 else if (x==3) {

    remote.location.href = "stampa/sis_pieg_strong.asp";

         }
		 
		 else if (x==4) {

    remote.location.href = "stampa/sis_pieg_shock.asp";

         }
		 
		 else if (x==5) {

    remote.location.href = "stampa/sis_pieg_modulo.asp";

         }
		 
		 else if (x==6) {

    remote.location.href = "stampa/sis_pieg_ecobox.asp";

         }
		 
		 else if (x==7) {

    remote.location.href = "stampa/sis_comp_light.asp";

         }
		 
		 else if (x==8) {

    remote.location.href = "stampa/sis_comp_medium.asp";

         }
		 
		 else if (x==9) {

    remote.location.href = "stampa/sis_comp_strong.asp";

         }
		 
		 else if (x==10) {

    remote.location.href = "stampa/sis_comp_shock.asp";

         }
		 
		 else if (x==11) {

    remote.location.href = "stampa/sis_comp_mini.asp";

         }
		 
		 else if (x==12) {

    remote.location.href = "stampa/sis_3d_light.asp";

         }
		 
		 else if (x==13) {

    remote.location.href = "stampa/sis_3d_medium.asp";

         }
		 
		 else if (x==14) {

    remote.location.href = "stampa/sis_kraft_light.asp";

         }
		 
		 else if (x==15) {

    remote.location.href = "stampa/sis_kraft_medium.asp";

         }
		 
		 else if (x==16) {

    remote.location.href = "stampa/sis_kraft_shock.asp";

         }
		 
		 else if (x==17) {

    remote.location.href = "stampa/sol_spec_mis.asp";

         }
		 
		 else if (x==18) {

    remote.location.href = "stampa/sol_spec_kit.asp";

         }
		 
		 else if (x==19) {

    remote.location.href = "stampa/prot_ag_sac.asp";

         }
		 
		 else if (x==20) {

    remote.location.href = "stampa/prot_ag_acc.asp";

         }
		 
		 else if (x==21) {

    remote.location.href = "stampa/prot_urti_pol.asp";

         }
		 
		 else if (x==22) {

    remote.location.href = "stampa/prot_urti_prof.asp";

         }
		 
		 else if (x==23) {

    remote.location.href = "stampa/prot_urti_shock.asp";

         }
		 
		 else if (x==24) {

    remote.location.href = "stampa/imb_comp_klip.asp";

         }
		 
		 else if (x==25) {

    remote.location.href = "stampa/imb_comp_bobine.asp";

         }
		 
		 else if (x==26) {

    remote.location.href = "stampa/imb_comp_reg.asp";

         }
		 
		 else if (x==27) {

    remote.location.href = "stampa/imb_comp_film.asp";

         }
		 
		 else if (x==28) {

    remote.location.href = "stampa/imb_comp_cargo.asp";

         }
		 
		 else if (x==29) {

    remote.location.href = "stampa/servizi.asp";

         }
		 
		 else if (x==30) {

    remote.location.href = "stampa/servizi_02.asp";

         }
		 
		 else if (x==31) {

    remote.location.href = "stampa/servizi_03.asp";

         }
		 
		 else if (x==32) {

    remote.location.href = "stampa/servizi_04.asp";

         }
		 
		 else if (x==33) {

    remote.location.href = "stampa/servizi_05.asp";

         }
		 
		 else if (x==34) {

    remote.location.href = "stampa/servizi_06.asp";

         }
		 
		 else if (x==35) {

    remote.location.href = "stampa/servizi_07.asp";

         }
		 
		  else if (x==36) {

    remote.location.href = "stampa/3dpack_prodotto.asp";

         }
		 
		  else if (x==37) {

    remote.location.href = "stampa/3dpack_pers.asp";

         }
		 
		 	  else if (x==38) {

    remote.location.href = "stampa/sis_kraft_strong.asp";

         }
		 	 	  else if (x==39) {

    remote.location.href = "stampa/IPPC.asp";

         }
		 
		 	 	  else if (x==40) {

    remote.location.href = "stampa/3dpack_montaggio.asp";

         }
		 
		  else if (x==41) {

    remote.location.href = "stampa/azienda.asp";

         }
		 
		 
		  else if (x==42) {

    remote.location.href = "stampa/certificazione.asp";

         }		 
		 		 
		  else if (x==43) {

    remote.location.href = "stampa/consegne.asp";

         }
		 
		 		 		 
         if (remote.opener == null) remote.opener = window;

    remote.opener.name = "opener";

    }
	
	function agenti(x) {

    remote = window.open("","remotewin","width=300,height=180,scrollbars=yes,left=0,top=0,toolbar=no,menubar=no,location=no");

         if (x==1) {

    remote.location.href = "agenti.asp";

         }
		 		 
         if (remote.opener == null) remote.opener = window;

    remote.opener.name = "opener";

    }
	
	function contatti(x) {

    remote = window.open("","remotewin","width=349,height=400,scrollbars=no,left=0,top=0,toolbar=no,menubar=no,location=no");

         if (x==1) {

    remote.location.href = "contatti.html";

         }
		 		 
         if (remote.opener == null) remote.opener = window;

    remote.opener.name = "opener";

    }
	
	function chiudipopup() {

    window.close();
        }

	// netscape resize fix
if (document.layers) {
	widthcheck = window.innerwidth
	heightcheck = window.innerheight
	window.onresize = resizefix
}

function resizefix() {
	if (widthcheck != window.innerwidth || heightcheck != window.innerheight)
	document.location.href = document.location.href
}

function Cerca(Stringa)
{ document.location="ricerca.asp?chiave=" + Stringa
}
