function mostraScheda(anno,numero) {

	var gURL = '/schedanews.asp?anno='+anno + '&numero=' + numero;
	//Cross-browser XMLHttpRequest object
	if (window.XMLHttpRequest) { // Mozilla, Safari, etc 
		xmlhttp=new XMLHttpRequest();
		if (xmlhttp.overrideMimeType) {
			xmlhttp.overrideMimeType('text/xml');
		}
		
		xmlhttp.onreadystatechange=mostraRisultato;
		xmlhttp.open("GET", gURL, true);
		xmlhttp.send(null);
	} else if (window.ActiveXObject) { //IE 
		
		xmlhttp=new ActiveXObject('Microsoft.XMLHTTP'); 
		if (xmlhttp) {
			xmlhttp.onreadystatechange=mostraRisultato;
			xmlhttp.open('GET', gURL, false);
			xmlhttp.send();
		}
	}
		
}

function mostraRisultato() {
	//alert(xmlhttp.responseText);
	if (xmlhttp.readyState==4) { 
		if (xmlhttp.status==200) {
			
			document.getElementById('percorso').innerHTML = "<a class='path' title='' href='default.asp'>Home</a> > <a class='path' title='' href='news.asp'>News</a> > Scheda"
			nascondiSpan("paginazione");
			mostraSpan("scheda");
			document.getElementById('scheda').innerHTML=xmlhttp.responseText;
			//document.location.href='#LinkBack';
		}
	}
}

function mostraPaginazione()
{
	nascondiSpan('scheda');
	mostraSpan('paginazione')
	document.getElementById('percorso').innerHTML = "<a class='path' title='' href='default.asp'>Home</a> > News"
}

function mostraSpan(id){
	
	
	
	if (document.all){
		document.all.item(id).style.display = 'block';
	}else {
		document.getElementById(id).style.display = 'block';
	}

}

function nascondiSpan(id){
	
	if (document.all){
			document.all.item(id).style.display = 'none';
	}else {
		document.getElementById(id).style.display = 'none';
	}
}
