function popup(url, name, width, height, scrollbars, status) 
{ 
if (document.all) { 
var x = window.screenLeft; 
var y = window.screenTop; 
var w = window.document.body.offsetWidth; 
var h = window.document.body.offsetHeight; 
} 
else { 
var x = window.screenX; 
var y = window.screenY; 
var w = window.outerWidth; 
var h = window.outerHeight; 
} 
var cntx = x + Math.round((w - width) / 2); 
//var cnty = y + Math.round((h - height) / 2); 
var cnty = 100;

window.open (url, name, 'left=' + cntx + ', top=' + cnty + ', width=' + width + ', height=' + height + ', scrollbars='+scrollbars+', resizable=yes, status='+status+' +' ); 
} 

function chiudi() {
	window.self.close()
}


function show5(){
	if (!document.layers&&!document.all&&!document.getElementById)
	return
	var Digital=new Date()
	var hours=Digital.getHours()
	var minutes=Digital.getMinutes()
	var seconds=Digital.getSeconds()
	
	var dn="AM"
	if (hours>12){
	dn="PM"
	//hours=hours-12
	}
	
	if (hours==0)
	hours=12
	if (minutes<=9)
	minutes="0"+minutes
	if (seconds<=9)
	seconds="0"+seconds
 
	//change font size here to your desire
	//myclock="<font size='5' face='Arial' ><b><font size='1'>Orario:</font></br>"+hours+":"+minutes+":"+seconds+" "+dn+"</b></font>"
	//myclock= "Ore: " + hours + ":" + minutes + ":" + seconds
	myclock= hours + ":" + minutes + ":" + seconds

	if (document.layers){
		document.layers.box_alto_info_3.document.write(myclock)
		document.layers.box_alto_info_3.document.close()
	}
	else if (document.all)
		box_alto_info_3.innerHTML=myclock
	else if (document.getElementById)
		document.getElementById("box_alto_info_3").innerHTML=myclock
	setTimeout("show5()",1000)
	
}

function getElement(id){
	return (typeof document.getElementById != "undefined")?document.getElementById(id):document.all[id];
}

function showHide(id){
	div = getElement(id);
	//div.style.visibility = (div.style.visibility=="" || div.style.visibility=="visible")?"hidden":"visible";
	div.style.display = (div.style.display=="" || div.style.display=="block")?"none":"block";
}