function adessooraJS(){
var d = new Date()
var ora = d.getHours()
var minuti = d.getMinutes()
var msg = " ore " + ora + ":" + minuti
if (ora < 12) 
{
document.write("giorno" + msg)
}
else
{
document.write("pomeriggio" + msg)
}
} 

function adessogiornoJS(){
var d = new Date()
theDay=d.getDay()
switch (theDay)
{
case 1:
document.write("348.2666713") 
break
case 2:
document.write("348.2666713") 
break
case 3:
document.write("348.2666713") 
break
case 4:
document.write("348.2666713") 
break
case 5:
document.write("348.2666713") 
break
case 6: 
document.write("348.2666713") 
break 
case 0: 
document.write("348.2666713") 
break 
default: 
document.write("bo")
}
} 


function DebugOpen()
{
	dbg = document.getElementById('Debug');
	dbg.style.height = '300px';
	dbg.style.width = '100%';
}

function DebugClose()
{
	dbg = document.getElementById('Debug');
	dbg.style.height = '20px';
	dbg.style.width = '20px';
}

function printwindow()
{   
	win = open(document.location.href + '/print_page', null, "height=400,width=760,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}
	
function sendwindow(prefix)
{ 
	win = open(prefix+"ModShow/ShowEmailDialog?url="+document.location.href+"&title="+document.title,null,"height=350,width=600,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

function addbookmark()
{
	window.external.AddFavorite( location.href, document.title );
}

// CREDITS:
// bbcsite.com
// vietato l'uso a terzi, anche solo parziale del presente file
// senza autorizzazione scritta da parte della BBC
// copyright BBC

function start(desktopURL,w,h)
{

    desktop = window.open(desktopURL, "new","toolbar=no,screenX=0,screenY=0,left=100,top=80,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+w+",height="+h );
}
txt1="<a href='http://www.bbcsite.com/gestione/' target='_blank' class='Gestione'>Gestione</a>";
txt2="http://www.bbcsite.com/statxml/countxml.asp?tipo=1&idsupp=";
