function reload(pg)
{
        document.azzu.pag.value=pg;
        document.azzu.submit()
}
    
function clickCategory(CatIDStr) 
{
  var txtObj = document.getElementById("t_" + CatIDStr);

  if (txtObj.style.display == 'none') 
  {
    txtObj.style.display = '';
  }
  else 
  {
    txtObj.style.display = 'none';
  }
}

function data()
{
  week= new Array(6);
  week[1]="lunedi";
  week[2]="martedi";
  week[3]="mercoledi";
  week[4]="giovedi" ; 
  week[5]="venerdi";
  week[6]="sabato";
  week[0]="domenica";
  
  month= new Array(11);
  month[0]="gennaio";
  month[1]="febbraio";
  month[2]="marzo";
  month[3]="aprile"; 
  month[4]="maggio";
  month[5]="giugno";
  month[6]="luglio";
  month[7]="agosto";
  month[8]="settembre";
  month[9]="ottobre";
  month[10]="novembre" ; 
  month[11]="dicembre";
  cDate = new Date();
  zs=week[cDate.getDay()];
  zs=zs + " " + cDate.getDate();
  zs=zs + " "+ month[cDate.getMonth()];
  zs=zs +" "+[cDate.getFullYear()];
  document.write(zs);
}

function controlla_ricerca(form) {
	Ctrl = document.formricerca.searchbox;
	if (Ctrl.value.length < 4) {
		validatePrompt (Ctrl, "Devi inserire almeno 4 caratteri.");
	return false;
	}
document.forms['formricerca'].submit();    	
return true;
}

function validatePrompt (Ctrl, PromptStr) {
	alert (PromptStr)
	return false;
}
