<!-- funzione popup centrata
function newWindow(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

/*<a href="JavaScript:newWindow('imagefoto/evita.jpg','popup',430,300,'')">*/
// -->
// ----------------------------------------------------------------------------------------------

<!-- funzione popup pagina normale
function popup(page) {
	window.open(page,'popup','width=797,height=450,toolbar=0,scrollbars=yes,resizable=yes');	
}
/*<A href='javascript:popup("nomeFile.htm")'>*/
// -->

// ----------------------------------------------------------------------------------------------

<!-- funzione data ultimo aggiornamento
function MakeArray(n) {
this.length = n
return this
}
function FormatDate(ltime) {
var lm = ltime.getMinutes();
nomJour = new MakeArray(7);
nomJour[1] = "Domenica" ; nomJour[2] = "Lunedi" ; nomJour[3] = "Martedi"; nomJour[4] = "Mercoledi";
nomJour[5] = "giovedi" ; nomJour[6] = "Venerdi" ; nomJour[7] = "Sabato";
nomMois = new MakeArray(12);
nomMois[1] = "Gennaio" ; nomMois[2] = "Febbraio" ; nomMois[3] = "Marzo" ; nomMois[4] = "Aprile";
nomMois[5] = "Maggio" ; nomMois[6] = "giugno" ; nomMois[7] = "Luglio" ; nomMois[8] = "Agosto";
nomMois[9] = "Settembre" ; nomMois[10] = "Ottobre" ; nomMois[11] = "Novembre" ; nomMois[12] ="Dicembre";
var ltext =nomJour[ltime.getDay()+1]+" "+ltime.getDate()+" "+nomMois[ltime.getMonth()+1]+" "+ltime.getYear()+" ore "+ltime.getHours()+"h";
ltext += ((lm < 10) ? "0" : "")+lm;
return ltext;
}
/*<SCRIPT language="JavaScript" type="text/javascript">document.writeln("Ultima Modifica : " + FormatDate(new Date(document.lastModified)));</script>*/

// -->
// ----------------------------------------------------------------------------------------------

<!-- funzione select codica banner
function SelectIt(What){
if (What.value=="") {
alert('nulla da selezionare')
}else{
What.focus();
What.select();
if (document.all){
What.createTextRange().execCommand("Copy");
alert("Lo Script e stato copiato negli Appunti   (   Usa il Ctrl V sulla Tastiera per incollare  )");
}}}

// -->
// ----------------------------------------------------------------------------------------------







