function impostaNotizie(prmId, prmData, prmTitolo, prmUltimo) {
     app +='<span class="arancio">'+prmData+'</span> <a href="index.php?c=news-detail&id='+prmId+'">'+prmTitolo+'</a> <span class="arancio">'+prmUltimo+'</span>'
}

function padlength(prm){
//	var output=(what.toString().length==1)? "0"+what : what;
//	return output;
	return (prm.toString().length==1)? "0"+prm : prm;
}

function displaytime() {
	rome.setSeconds(rome.getSeconds()+1);
	document.getElementById('time_rome').innerHTML=padlength(rome.getHours())+":"+padlength(rome.getMinutes())+":"+padlength(rome.getSeconds());

	newyork.setSeconds(newyork.getSeconds()+1)
	document.getElementById('time_newyork').innerHTML=padlength(newyork.getHours())+":"+padlength(newyork.getMinutes())+":"+padlength(newyork.getSeconds());

	siliconvalley.setSeconds(siliconvalley.getSeconds()+1)
	document.getElementById('time_siliconvalley').innerHTML=padlength(siliconvalley.getHours())+":"+padlength(siliconvalley.getMinutes())+":"+padlength(siliconvalley.getSeconds());

	sidney.setSeconds(sidney.getSeconds()+1)
	document.getElementById('time_sidney').innerHTML=padlength(sidney.getHours())+":"+padlength(sidney.getMinutes())+":"+padlength(sidney.getSeconds());
}