var isNav, isIE, nVer = parseInt(navigator.appVersion.charAt(0));if (nVer >= 4) {isNav = (navigator.appName == "Netscape") ? 1 : 0;isIE = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;}var last = '';
function popup(c,p,id){larghezza = 3 * document.images["att"+p+"_"+id].width+10;altezza = 3 * document.images["att"+p+"_"+id].height+14;if ((isNav) && (nVer < 5)) altezza = altezza + 10;if (isNav) {altezza = altezza + 10;larghezza = larghezza + 15;}if (isIE) {altezza = altezza + 12;larghezza = larghezza + 15;}window.open('/detail.asp?c=' + c + '&p='+ p +'&id='+ id,'zoom','scrollbars=no,resizable=no,width='+larghezza+',height='+altezza+',top='+(screen.availHeight-altezza)/2+',left='+(screen.availWidth-larghezza)/2+',status=no,location=no,toolbar=no');}
function transac(nome,tipo){switch (tipo){case 0:if (nome!=last)  eval('document.'+nome+'.src=off'+nome+'.src');break;case 1:eval('document.'+nome+'.src=on'+nome+'.src');break;case 2:if ((nome!=last)&&(last!='')) eval('document.'+last+'.src=off'+last+'.src');eval('document.'+nome+'.src=on'+nome+'.src');last=nome;break;case 3:eval('document.'+last+'.src=off'+last+'.src');last='';break;default:alert("Errore!");}}
function s(str){window.open('/core/print/default.asp?'+str,'Print','scrollbars=yes,resizable=no,width=630,height=300,top='+(screen.availHeight-300)/2+',left='+(screen.availWidth-630)/2+',status=no,location=no,toolbar=no');}
function i(str){window.open('/core/print/default.asp?'+str,'Send','scrollbars=yes,resizable=no,width=300,height=300,top='+(screen.availHeight-300)/2+',left='+(screen.availWidth-300)/2+',status=no,location=no,toolbar=no');}
