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 == "name" | text.value == "surname" | text.value == "phone" | text.value == "email" | text.value == "address" | text.value == "city" | text.value == "persons" | text.value == "message" )
	text.value = "";		
	else
	text.value = text.value
	}

function popola(ID)
	{
	var text = document.getElementById(ID);
	if (ID == "nome" & text.value == "")
	text.value = "name";	
	if (ID == "cognome" & text.value == "")
	text.value = "surname";	
	if (ID == "telefono" & text.value == "")
	text.value = "phone";	
	if (ID == "email" & text.value == "")
	text.value = "email";
	if (ID == "indirizzo" & text.value == "")
	text.value = "address";	
	if (ID == "citta" & text.value == "")
	text.value = "city";	
	if (ID == "persone" & text.value == "")
	text.value = "persons";	
	if (ID == "messaggio" & text.value == "")
	text.value = "message";
		
	
}
