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 mostraMenu(menuCorrente) {
	if (document.getElementById) {
		questoMenu = document.getElementById(menuCorrente).style
		if (questoMenu.display == "block") {
			questoMenu.display = "none"
		}
		else {
			questoMenu.display = "block"
		}
		return false
	}
	else {
		return true
	}
}

function reload_page() {
	javascript:location.reload();
		
	var today = new Date();  // data/orario di oggi
   	var expires = new Date();  // variabile necessaria a calcolare la scadenza
	
    expires.setTime(today.getTime() + (1000*60*60*24)); // fra 24 ore in millisecondi  
	document.cookie="size=0;  expires=" + expires.toGMTString() + "; path=/;"// attivo il cookie
    document.cookie="colore=0; expires=" + expires.toGMTString() + "; path=/;"// attivo il cookie
	
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function inizializza_cookie() {

	var today = new Date();  // data/orario di oggi
   	var expires = new Date();  // variabile necessaria a calcolare la scadenza
	
    expires.setTime(today.getTime() + (1000*60*60*24)); // fra 24 ore in millisecondi  
	document.cookie="size=0;  expires=" + expires.toGMTString() + "; path=/;"// attivo il cookie
    document.cookie="colore=0; expires=" + expires.toGMTString() + "; path=/;"// attivo il cookie
	
}

function tutto_schermo(){
 
	top.window.moveTo(0,0);
	if (document.all) 
 	{
  		top.window.resizeTo(screen.availWidth,screen.availHeight);
 	}
 
	else 
 	if (document.layers||document.getElementById) 
 	{
  		if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
   		{
    		top.window.outerHeight = screen.availHeight;
    		top.window.outerWidth = screen.availWidth;
   		}
 	}

}

function ok(){
	alert ("\n Grazie di averci scritto, ti risponderemo al pił presto.")

}

function dataAggiornamento(){
	document.write(document.lastModified);
}