// JavaScript Document

<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		index_navigation_02_14 = newImage("i/index_navigation_02_14.jpg");
		index_navigation_04_15 = newImage("i/index_navigation_04_15.jpg");
		index_navigation_06_16 = newImage("i/index_navigation_06_16.jpg");
		index_navigation_08_17 = newImage("i/index_navigation_08_17.jpg");
		index_navigation_10_18 = newImage("i/index_navigation_10_18.jpg");
		index_navigation_12_19 = newImage("i/index_navigation_12_19.jpg");
		preloadFlag = true;
	}
}

// -->

<!-- Begin
function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,4)=="req_") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(4,30).toUpperCase();
alert(""+shortFieldName+": Valore Richiesto");
return false;
}
else
return true;
}
//  End -->

 <!--
  var stile = "top=10, left=10, width=420, height=350, status=no, menubar=no, toolbar=no, scrollbars=yes";
     function Popup(apri) {
        window.open(apri, "", stile);
     }
 //-->
 
 <!--
function openChild(file,window) {
    childWindow=open(file,window,'resizable=yes,width=50,height=50');
    if (childWindow.opener == null) childWindow.opener = self;
    }
//-->

<!-- Begin
var isNav4, isIE4;
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
isNav4 = (navigator.appName == "Netscape") ? 1 : 0;
isIE4 = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;
}
function fitWindowSize() {
if (isNav4) {
window.innerWidth = document.layers[0].document.images[0].width;
window.innerHeight = document.layers[0].document.images[0].height;
}
if (isIE4) {
window.resizeTo(500, 500);
width = 500 - (document.body.clientWidth -  document.images[0].width);
height = 500 - (document.body.clientHeight -  document.images[0].height);
window.resizeTo(width, height);
   }
}
//  End -->