
function pop (url,w,h,s,f) {
LeftPosition =(screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
window.open(url,'new','width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+s+',fullscreen='+f+'')
}

function showLay(layId) {
eval("styleUsed="+layId+".style.display;");
if (styleUsed=="none") { eval(""+layId+".style.display='block';"); } 
else { eval(""+layId+".style.display='none';"); }
}

function linkEst(url) {
if (window.confirm("Si sta abbandonando questo sito, le informazioni contenute nel nuovo sito prescelto possono non essere conformi al DLvo 541/92 che regola la pubblicità sui medicinali per uso umano e le opinioni espresse non riflettono necessariamente le posizioni dell'Azienda, né sono da essa avvallate. Cliccare OK per procedere, ANNULLA per annullare.")) 
{
window.open (url);
}
}

glossarioWidth = 200;

function glossarioBody() {return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}

function glossarioHide() {
document.getElementById('glossario').style.visibility = 'hidden';
}

function glossarioShow(tit,txt,e) {
document.getElementById('glossario').style.width = glossarioWidth;
document.getElementById('glossarioTit').style.width = glossarioWidth;
document.getElementById('glossarioTxt').style.width = glossarioWidth;
document.getElementById('glossarioTitM').innerHTML = tit;
document.getElementById('glossarioTxtM').innerHTML = txt;
if (!e) e = window.event;
posX = e.clientX;
posY = e.clientY;
if ( posX + (glossarioWidth+6) > glossarioBody().clientWidth) {
posX = posX - glossarioWidth;
}
if (glossarioBody().scrollTop > 0) {
posY = e.clientY + glossarioBody().scrollTop;
}
document.getElementById('glossario').style.marginLeft = posX;
document.getElementById('glossario').style.marginTop  = posY + 20;
document.getElementById('glossario').style.visibility = 'visible';
}




