function visarticolo(cod,titolo,href){

document.getElementById('titolopopup').innerHTML=titolo
if(document.getElementById('communicationspan')){
document.getElementById('backscreen').style.display='inline';
document.getElementById('communicationframe').style.display='none';
document.getElementById('communicationspan').style.display='inline';
document.getElementById('communication').style.display='inline';

var sc=0;
//if(document.all)
//    sc=document.documentElement.scrollTop
//else
//    sc=document.body.scrollTop;
//alert(document.documentElement.scrollTop+"-"+document.body.scrollTop)
//alert(document.body.scrollTop)
if(document.body.scrollTop>document.documentElement.scrollTop)
    sc=document.body.scrollTop
else
    sc=document.documentElement.scrollTop

document.getElementById('communication').style.top=sc+'px';
if(href!=null)
    ajaxInsertInTag(href,document.getElementById('communicationspan'));
else
    ajaxInsertInTag('/it/jsp/cat?r=dsa&ka='+cod+'&rn='+Math.random(),document.getElementById('communicationspan'),null,"document.getElementById('qtaacq').select()");
}else{
if(href!=null)
    ajaxInsertInTag(href,document.getElementById('communicationspan'));
else
    ajaxInsertInTag('/it/ssi/articolo2.htm?&rn='+Math.random(),parent.document.getElementById('communicationspan'),null,"elthis.select()",parent.document.getElementById('qtaacq'));
}
return false
}

function setScrollWidth(){
document.getElementById("backscreen").style.width=document.body.scrollWidth
document.getElementById("graytable").width=document.body.scrollWidth
}

function setScrollHeight(){
document.getElementById("backscreen").style.height=document.body.scrollHeight
document.getElementById("graytable").height= document.body.scrollHeight
}
