function SubmitForm(frmName) {
	if (NS4) {
    document.forms[frmName].submit();
	} else {
    document.all[frmName].submit();
  }
}

//    Script per gestione layers sovrapposti - (spostamento del layer)
function moveLayers() {
	if (gotlayers) {
		if (NS4) {
			screenWidth = window.innerWidth;
			document.layers['mirrorsKick'].left = 140;
			document.layers['mirrorsKick'].top = 215;
		} else {
			screenWidth = document.body.clientWidth + 18;
			document.all['mirrorsKick'].style.pixelLeft = 140;
			document.all['mirrorsKick'].style.pixelTop = 215;
		}
	}
}

//    Script per gestione layers sovrapposti - (popup della finestra)
function popUp(menuName,on) {
	if (gotlayers) {
		if (on) {
			moveLayers();
			if (NS4) {
				document.layers[menuName].visibility = "show";
			} else {
				document.all[menuName].style.visibility = "visible";
			}
		} else {
			if (NS4) {
				document.layers[menuName].visibility = "hide";
			} else {
				document.all[menuName].style.visibility = "hidden";
			}
		}
	}
}

function ToggleDisplay(oButton, oItems) {
	if ((oItems.style.display == "") || (oItems.style.display == "none"))	{
		oItems.style.display = "block";
		oButton.src = "../Images/menogrey.gif";
	}	else {
		oItems.style.display = "none";
		oButton.src = "../Images/crocegrey.gif";
	}
	return false;
}

function setMonth(monthIndex){
	var ar = new Array(12);	
	ar[0] = "gen00p";
	ar[1] = "feb00p";
	ar[2] = "mar00p";
	ar[3] = "apr00p";
	ar[4] = "mag00p;"
	ar[5] = "giu00p";
	ar[6] = "lug00p";
	ar[7] = "ago00p";
	ar[8] = "set00p";
	ar[9] = "ott00p";
	ar[10] = "nov00p";
	ar[11] = "dic00p";
	var now = new Date();
	var month = now.getMonth();
	window.location = '#' + ar[month];
	
	return ar[month];
	}