function scrivi_animazione(movie,w,h) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+w+"' height='"+h+"' style=margin-left:-3px>");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='movie' value='"+movie+"'/>");
	document.write("<param name='quality' value='high'/>");
	document.write("<param name='wmode' value='transparent'/>");
	document.write("<param name='bgcolor' value='#000000'/>");
	document.write("<embed src='"+movie+"' width='"+w+"' height='"+h+"' quality='high' wmode='transparent' bgcolor='#000000' name='comicradio' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}
function openCerca()
	{
	box2 = document.getElementById('cerca2');
	box2.style.display = "none";
	box = document.getElementById('cerca');
	box.style.display = "block";
	}

function closeCerca()
	{
	box = document.getElementById('cerca');
	box.style.display = "none";
	box2 = document.getElementById('cerca2');
	box2.style.display = "block";
	}


function gotopage (pPagina)
	{
	window.location.replace(pPagina);
	}

function svuota(ID)
	{
	var text = document.getElementById(ID);
	if (text.value == "nome" | text.value == "cognome" | text.value == "telefono" | text.value == "email" | text.value == "indirizzo" | text.value == "citta'" | text.value == "numero occupanti" | text.value == "messaggio" )
	text.value = "";		
	else
	text.value = text.value
	}

function popola(ID)
	{
	var text = document.getElementById(ID);
	if (ID == "nome" & text.value == "")
	text.value = "nome";	
	if (ID == "cognome" & text.value == "")
	text.value = "cognome";	
	if (ID == "telefono" & text.value == "")
	text.value = "telefono";	
	if (ID == "email" & text.value == "")
	text.value = "email";
	if (ID == "indirizzo" & text.value == "")
	text.value = "indirizzo";	
	if (ID == "citta" & text.value == "")
	text.value = "citta'";	
	if (ID == "persone" & text.value == "")
	text.value = "numero occupanti";	
	if (ID == "messaggio" & text.value == "")
	text.value = "messaggio";
		
	
}
