<!--
function miaData() {
// controlla la data sul client e la invia in formato gg/mm/aaaa
    var oggi = new Date();
    var giorno = oggi.getDate();
    var mese = oggi.getMonth();
    mese++;
    var anno = oggi.getYear();

    if (navigator.appName=="Netscape") {
        anno = 1900 + anno
    }
    if (mese < 10) {
        mese = "0" + mese;
    }
    if (giorno < 10) {
        giorno = "0" + giorno;
    }
    return (giorno + "/" + mese + "/" + anno);
}

function miaOra() {
// controlla l'ora sul client e la riporta in formato oo:mm
	var adesso = new Date();
    var ore = adesso.getHours();
    if (ore < 10) {
        ore = "0" + ore;
    }
    var minuti = adesso.getMinutes();
    if (minuti < 10) {
        minuti = "0" + minuti;
    }
    return (ore + ":" + minuti);
}

function mioPopup(url,nome,proprieta) {
// apre nuova finestra
    window.open(url,nome,proprieta)
}

function scriviTag(form,elemento,tag) {
// inserisce un testo in un elemento di una form
// provato solo su IE
    var posto = eval("document." + form + "." + elemento);
    posto.focus();
    document.selection.createRange().text += tag;
	return;
}

function toggle_base(id){
   if (document.all){
     if(document.all[id].style.display == 'none'){
       document.all[id].style.display = '';
     } else {
       document.all[id].style.display = 'none';
     }
  return false;
   } else if (document.getElementById){
     if(document.getElementById(id).style.display == 'none'){
       document.getElementById(id).style.display = 'block';
     } else {
       document.getElementById(id).style.display = 'none';
     }
  return false;
   }
 }

 function popup(url,w,h) {
	var myWin = window.open(url,"myWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+w+',height='+h);
}

function popuppics(path,w,h) {
	var myPicsWin = window.open('/gallery/foto.asp?path='+path,"myPictureWindow",'resizable,width='+w+',height='+h);
}
 // -->

