onload=function() {
if(!document.getElementsByTagName) return;
l=document.getElementsByTagName("a");
for(i=0;i<l.length;i++) {
if(l[i].className.indexOf("popupprincipale")!=-1) {
if (l[i].title) l[i].title +=" (nuova finestra)";
if (!l[i].title) l[i].title ="Il collegamento apre una nuova finestra";
l[i].onclick = function() {
principale(this.href);
return(false)};
l[i].onkeypress = function(e) {
var key;
if(window.event)  key = (e) ? e.keyCode : window.event.keyCode;
else  key = e.which;
if(key && (key == 13 || key == 32)) {
principale(this.href);
return(false)}};
}
if(l[i].className.indexOf("popupcheckurl")!=-1) {
if (l[i].title) l[i].title +=" (nuova finestra)";
if (!l[i].title) l[i].title ="Il collegamento apre una nuova finestra";
l[i].onclick = function() {
checkurl(this.href);
return(false)};
l[i].onkeypress = function(e) {
var key;
if(window.event)  key = (e) ? e.keyCode : window.event.keyCode;
else  key = e.which;
if(key && (key == 13 || key == 32)) {
checkurl(this.href);
return(false)}};
}
}
}
function principale(str) { 
larg=600; 
alt=411; 
toptop=(screen.height/2)-(alt/1.8); 
leftleft=(screen.width/2)-(larg/2); 
searchWin = window.open(str,'','top='+toptop+',left='+leftleft+',scrollbars=no,width='+larg+',height='+alt+',status=no,location=no,toolbar=no'); 
}
function checkurl(str) { 
larg=387; 
alt=444;
toptop=(screen.height/2)-(alt/1.8); 
leftleft=(screen.width/2)-(larg/2); 
searchWin = window.open(str,'','top='+toptop+',left='+leftleft+',scrollbars=no,width='+larg+',height='+alt+',status=no,location=no,toolbar=no'); 
}
