function Rstatus()
{
	defaultStatus = "Pietro Santini - Strutture in legno a Ferrara"
	setTimeout(Rstatus,5);
}

 Rstatus();
function foto(param)
{
	window.open('./foto.php?foto='+param,'Foto','scrollbars=yes,resizable=no,width=500,height=350,status=no,location=no,toolbar=no');
}
function foto_verti(param)
{
	window.open('./foto.php?foto='+param,'Foto','scrollbars=yes,resizable=no,width=500,height=450,status=no,location=no,toolbar=no');
}

// richiamata per verificare che abbia immesso i dati nel form
function valid3(form)
{

	nome = form.nome.value;
	msg = form.msg.value;
	email = form.email.value;
	
	if (nome=='' || msg=='' || email =='')
		{
			alert('Attenzione, dati mancanti nella compilazione!');
			return false;
		}
}

function apri(cat,num) {
	
	for (i= 1; i < num; i++) 
	{
		if(document.getElementById('tr_'+cat +'_'+i).className == "bott_vis")
			document.getElementById('tr_'+cat +'_'+i).className ="bott_nasc";
		else
			document.getElementById('tr_'+cat +'_'+i).className ="bott_vis";
		
	}
//	alert(" vis "+document.getElementById('td_'+cat).className);
/*	
	if(document.getElementById('td_'+cat).className == "bottone_2")
	{
		document.getElementById('td_'+cat).className = "bottone_3";
	}
	else
	{
		document.getElementById('td_'+cat).className = "bottone_2";	
	}*/
}
window.onresize = function()
{
	document.getElementById("td_home").className = document.getElementById("td_home").className;
}

