function showall( pre, post, e ) {
	var toHide = document.getElementById( pre + e );
	var toShow = document.getElementById( post + e );
	toHide.style.display = 'none';
	toShow.style.display = 'block';
}
function hideall( pre, post, e ) {
	var toHide = document.getElementById( pre + e );
	var toShow = document.getElementById( post + e );
	toHide.style.display = 'none';
	toShow.style.display = 'block';
}

var message = "Funzione non disponibile";
function lockContent() {
	// loading pop-up
	window.open('http://www.palestrinacalcioa5.it/popup.html','_blank', 'height=735,width=805,left=150,location=0,menubar=0,resizable=0,scrollbars=0,statusbar=0,toolbar=0');
	disableCopyPaste();
	disableRightClick();
}

function disableRightClick() {
	if ( document.layers ) {
		document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown = clickNS4;
	} else if (document.all && !document.getElementById) {
		document.onmousedown = clickIE4;
	}
	document.oncontextmenu = new Function("alert(message);return false");
}
function clickIE4() {
	if ( event.button == 2 ) {
		alert(message);
		return false;
	}
}
function clickNS4(e) {
	if ( document.layers || document.getElementById && !document.all ) {
		if ( e.which == 2 || e.which == 3 ) {
			alert(message);
			return false;
		}
	}
}

var omitformtags = ["input", "textarea", "select"];

function disableCopyPaste() {
	omitformtags = omitformtags.join("|");
	if ( typeof document.onselectstart != "undefined" ) {
		document.onselectstart = new Function ("return false");
	} else {
		document.onmousedown = disableselect();
		document.onmouseup = reEnable();
	}
}
function disableselect(e) {
	if ( omitformtags.indexOf(e.target.tagName.toLowerCase()) == -1 ) {
		return false;
	}
}
function reEnable() {
	return true;
}

function getJunioresData() {
// 	window.open('http://www.calcioa5live.com/calendarioc5l.asp?DB=JFBBM','', 'height=200,width=200');
// 	window.moveTo(50,50);
}