<!--
       function aprimodulo(par, par2,didascalia)
       {
         var popupWin = window.open('', '',par2);
        
         popupWin.document.write('<html><head><title>');
         popupWin.document.write('Foto JoBicocca</title></head>');
         popupWin.document.write('<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">');
         popupWin.document.write('<center><img src='+par+' name=\'immagine\' alt=\'\'></center></body></html>');
         //popupWin.document.write('<html><head></head><body><center><img src='+par+' name=\'immagine\'></center></body></html>');
         popupWin.resizeTo(popupWin.document.immagine.width+160,popupWin.document.immagine.height+120);
       }

var winOpened;

function aprifinestra(page,tar,att)
{
   att = 'width=800,height=600 ,toolbar=yes, location=yes,status=yes,menubar=no,scrollbars=yes,resizable=yes';
   winOpened=window.open(page,tar,att);
}


function resizeDialogToContent()
  {
    // resize window so there are no scrollbars visible
    var dw = window.dialogWidth;
    while (isNaN(dw))
    {
      dw = dw.substr(0,dw.length-1);
    }
    difw = dw - this.document.body.clientWidth;
    window.dialogWidth = this.document.body.scrollWidth+difw+'px';

    var dh = window.dialogHeight;
    while (isNaN(dh))
    {
      dh = dh.substr(0,dh.length-1);
    }
    difh = dh - this.document.body.clientHeight;
    window.dialogHeight = this.document.body.scrollHeight+difh+'px';
  }
  
 //
// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
// Function found at Simon Willison's weblog - http://simon.incutio.com/
//

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
 

-->

