	nowDate=new Date();
	theDay=nowDate.getDay();
	var dd=nowDate.getDate();
	var mm=nowDate.getMonth();
	var yy=nowDate.getYear();
	if (yy < 1000) yy+=1900;

	text=new Array(7);
	text[0]="Domenica";
	text[1]="Lunedì";
	text[2]="Martedì";
	text[3]="Mercoledì";
	text[4]="Giovedì";
	text[5]="Venerdì";
	text[6]="Sabato";
	mese=new Array(12);
	mese[0]="Gennaio";
	mese[1]="Febbraio";
	mese[2]="Marzo";
	mese[3]="Aprile";
	mese[4]="Maggio";
	mese[5]="Giugno";
	mese[6]="Luglio";	
	mese[7]="Agosto";
	mese[8]="Settembre";
	mese[9]="Ottobre";
	mese[10]="Novembre";
	mese[11]="Dicembre";
	var temp1 = dd + " " + mese[mm] + " " + yy;		

function PrintDate(){	
//	alert();						
//	document.write("Sono le <br>ore " + nowDate.getHours() + ":" + nowDate.getMinutes()) + "<br>di " + text[theDay] + " " + temp1 + ;
	document.write(text[theDay] + " " + temp1 + "<br>ore " + nowDate.getHours() + ":" + nowDate.getMinutes());
//	document.write(text[theDay] + "<br>" + temp1);
//	document.write("Oggi è Domenica<br>31 Settembre 2006");
}

//function SwitchText(idSrc, idDst) {
//	var Tx;
//	Tx=document.getElementById(idSrc).innerHTML;
//	document.getElementById(idDst).innerHTML=Tx;	
//	}

function changeimage(towhat,idSrc,idDst){
	if (document.images){document.images.targetimage.src=towhat.src;}
//	alert(document.images.targetimage.src);
	var Tx;	
	Tx=document.getElementById(idSrc).innerHTML;
	document.getElementById(idDst).innerHTML=Tx;	
}

function popUp(URL) {
	//alert('URL = "' + URL);
		var W = window.open(URL, '', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=560,height=420');
		}

<!-- The JavaScript Source!! http://javascript.internet.com -->
var pic = null
var finestra = null;


function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  pic = img;
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+80;
  stringa="width="+largh+",height="+altez;
//  finestra=window.open(img,'Galleria',stringa);	
  closePopImg()
  finestra=window.open('pimg.html','',stringa);	
}	 

function closePopImg(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(finestra != null) if(!finestra.closed) finestra.close() 
  }

