function refresh(){document.location.reload();return false;}
window.defaultStatus = '     Decanato di Lecco'; 
function stba(txb){self.status="     Decanato di Lecco | "+txb}

function fullScreen(url) {
	if(document.all)
		TheNewWin = window.open(url+'','','fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'); 
	else
		TheNewWin = window.open(url+'','','titlebar=no,width=' + window.screen.availWidth+',height='+window.screen.availHeight+',screenX=0,screenY=0')
}


function fullWin(url) {
	var H=screen.availHeight-60;
	var W=screen.availWidth-10;
	window.open(url+'','','left=0,top=0,width='+W+',height='+H+',resizable=1,scrollbars=1,status=1');
}

var win = null; 
function NewWindow(mypage,myname,w,h,scroll){ 
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; 
TopPosition = (screen.height) ? (screen.height-h)/2 : 0; 
settings = 
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes' 
win = window.open(mypage,myname,settings) 
} 

var theTarget = "_self";

function controlla() {
     var id_scelta = document.theForm.id_scelta.value;
     var ordina_risultati = document.theForm.ordina_risultati.value;

        if ((id_scelta == "") || (id_scelta== "undefined")) {
           alert("Selezionare il tipo celebrazione e fascia oraria.");
           document.theForm.id_scelta.focus();
           return false;
        }

	}
	

