function cambiasrc(item, imgnuova)
{
    item.src=imgnuova;
}


function stampa_flash(percorso, width, height, id) 
{ 
document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" id=\""+id+"\" width=\""+width+"\" height=\""+height+"\">"); 
document.write("<param name=\"movie\" value=\""+percorso+"\">"); 
document.write("<param name=\"menu\" value=\"false\">"); 
document.write("<param name=\"quality\" value=\"high\">"); 
document.write("<param name=\"scale\">"); 
document.write("<param name=\"wmode\" value=\"transparent\">"); 
document.write("<embed src=\""+percorso+"\" menu=\"false\" quality=\"high\" scale=\"noborder\" wmode=\"transparent\" width="+width+" height="+height+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">"); 
document.write("</embed>"); 
document.write("</object>"); 
} 

function scrivi_flash_foto(percorso, width, height, id, xmlpath) 
{ 
document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" id=\""+id+"\" width=\""+width+"\" height=\""+height+"\">"); 
document.write("<param name=\"movie\" value=\""+percorso+"\">"); 
document.write("<param name=\"menu\" value=\"false\">"); 
document.write("<param name=\"quality\" value=\"high\">"); 
document.write("<param name=\"scale\">");
document.write("<param name=\"FlashVars\" value=\"xmlpath="+xmlpath+"\">"); 
document.write("<param name=\"wmode\" value=\"transparent\">"); 
document.write("<embed src=\""+percorso+"\" FlashVars=\"xmlpath="+xmlpath+"\" menu=\"false\" quality=\"high\" scale=\"noborder\" wmode=\"transparent\" width="+width+" height="+height+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">"); 
document.write("</embed>"); 
document.write("</object>"); 
} 


function getpos(piform)
{
	var wform;
	wform=document.getElementById(piform);
	wform.elements["posizionescroll"].value=document.body.scrollTop;
	alert(wform.elements["posizionescroll"].value);

}

function setpos(pivalue)
{
	document.body.scrollTop=pivalue;
}




function fillinputhidden(piorigine,pidestinazione)
{
	var worigine=document.getElementById(piorigine);
	document.getElementById(pidestinazione).value=document.getElementById(piorigine).value;
	
//	pidestinazione.value=piogirine.value;
}
 
function fillinputhiddenfromselect(piorigine,pidestinazione)
{
	var worigine=document.getElementById(piorigine);
	document.getElementById(pidestinazione).value=document.getElementById(piorigine).options[worigine.selectedIndex].value;
}



