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 openwindow(page,name,w,h,st,res,l,t)
{
	str="width="+w+",height="+h+",status="+st+",resizable="+res+",left="+l+",top="+t;
	w=window.open(page,name,str);
	w.focus();
}

function changeFoto(id,foto)
{
immagine = window.document.getElementById(id)
immagine.src = foto
}

function changeFotoTitolo(id,foto,titolo)
{
immagine = window.document.getElementById(id)
immagine.src = foto
immagine.alt = titolo
}

function changeVideo(id,video)
{
box = window.document.getElementById(id);
testo = "";
testo = testo + "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='505' height='317' id='video' style=margin-left:-3px>";
testo = testo + "<param name='allowScriptAccess' value='sameDomain' />";
testo = testo + "<param name='movie' value='"+video+"'/>";
testo = testo + "<param name='quality' value='high'/>";
testo = testo + "<param name='wmode' value='transparent'/>";
testo = testo + "<param name='bgcolor' value='#000000'/>";
testo = testo + "<embed src='"+video+"' width='505' height='317' quality='high' wmode='transparent' bgcolor='#000000' name='video' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
testo = testo + "</object>";
box.innerHTML = testo;
}

function changeVideoPiccolo(id,video)
{
box = window.document.getElementById(id);
testo = "";
testo = testo + "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='238' height='240' id='video' style=margin-left:-3px>";
testo = testo + "<param name='allowScriptAccess' value='sameDomain' />";
testo = testo + "<param name='movie' value='"+video+"'/>";
testo = testo + "<param name='quality' value='high'/>";
testo = testo + "<param name='wmode' value='transparent'/>";
testo = testo + "<param name='bgcolor' value='#000000'/>";
testo = testo + "<embed src='"+video+"' width='238' height='240' quality='high' wmode='transparent' bgcolor='#000000' name='video' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
testo = testo + "</object>";
box.innerHTML = testo;
}

function getRds()
{
parent.hiddenFrame.location = "getRds.asp";
}

function displayRds(sText)
{
var BoxRds = document.getElementById('BoxRds');
BoxRds.innerHTML = sText;
}

function Ajax()
{
var testoRds = document.getElementById('testoRds');
parent.displayRds(testoRds.innerHTML);
}

function loadMusic()
{
if (window.pop_media_player == null)
	{
	alert(window.pop_media_player)
	openwindow('media_player.asp','pop_media_player',300,400,0,0,0,0);
	}
else
	{
	alert(window.pop_media_player)	
	}
}

function svuota(ID)
	{
	var text = document.getElementById(ID);
	if (text.value == "(nome)" | text.value == "(e-mail)" | text.value == "email" | text.value == "(testo)" | text.value == "password")
	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 == "e-mail" & text.value == "")
	text.value = "(e-mail)";
	if (ID == "email" & text.value == "")
	text.value = "email";
	if (ID == "testo" & text.value == "")
	text.value = "(testo)";	
	if (ID == "password" & text.value == "")
	text.value = "password";		
	}

