//PER IL BUG DI NN sul ridimensionamento delle finestre
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

function Popup(apri) {
		  var w = 200;
		   var h = 150;
		   var l = Math.floor((screen.width-w)/2);
		   var t = Math.floor((screen.height-h)/2);
      window.open(apri,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l+",status=no, menubar=no, toolbar=no scrollbar=no");

     }
<!--//--><![CDATA[//><!--

sfFocus = function() {
	var sfEls = document.getElementsByTagName("INPUT");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onfocus=function() {
			this.className+=" sffocus";
		}
		sfEls[i].onblur=function() {
			this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfFocus);

//--><!]]>
