// Kukanja.js
// copyright e.tel. elettronica e telecomunicazioni 
// di ezio reisenhofer - trieste 
// tutti i diritti riservati
// il presente programma deve intendersi proprietà esclusiva
// dell'Autore che ne detiene tutti i diritti
// il codice del presente programma non può essere copiato, modificato, riprodotto ne utilizzato
// senza la preventiva autorizzazione scritta dell'Autore che ne fissa i limiti e le condizioni
// per l'utilizzo.
// La legge tutela il diritto esclusivo dell'Autore.
// Gennaio 2006
//


function displayDate(){
      var this_month = new Array(12);
      this_month[0]  = "Gennaio";
      this_month[1]  = "Febbraio";
      this_month[2]  = "Marzo";
      this_month[3]  = "Aprile";
      this_month[4]  = "Maggio";
      this_month[5]  = "Giugno";
      this_month[6]  = "Luglio";
      this_month[7]  = "Agosto";
      this_month[8]  = "Settembre";
      this_month[9]  = "Ottobre";
      this_month[10] = "Novembre";
      this_month[11] = "Dicembre";
      var today = new Date();
      var day   = today.getDate();
      var month = today.getMonth();
      var year  = today.getYear();
      if (year < 1900){
         year += 1900;
      }
      return(day+" "+this_month[month]+" " +year);
}

function per_informazioni(){
             locationstring = 'mai' + 'lto:' + 'in'+'fo' + '@' + 'kukanja' + '.' + 'it';
             window.location.replace(locationstring);
}

function HoPremuto(cosa,larghezza,altezza) {



         if (document.all) {
             if (larghezza=="null")
             {
                larghezza="";
             }
             else
             {
                var l=parseInt(larghezza)+10
                larghezza=" width="+l.toString()+";"
             }
             if (altezza=="null")
             {
                altezza="";
             }
             else
             {
                var h=parseInt(altezza)+10
                altezza=" height="+h.toString()+";"
             }
    
             Attributi="location=no; status=no; help=no; resizable=no;"+larghezza+" "+altezza+" scrollbars=yes";
          }
          else
          {
             if (larghezza=="null")
             {
                larghezza="";
             }
             else
             {
                larghezza="width="+larghezza
             }
             if (altezza=="null")
             {
                altezza="";
             }
             else
             {
                altezza=",height="+altezza
             }
    
             Attributi="location=no,toolbar=no,menubar=no,personalbar=no,scrollbars=yes,resizable=no,"+larghezza+altezza;

          }


         var DlgUrl=cosa+".html"
         var dlg = window.open(DlgUrl, "ha_dialog", Attributi);

}

