function openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
	if(window.screen)if(isCenter)if(isCenter=="true"){
		var myLeft = ((screen.width-myWidth)/2)-10;
		var myTop = ((screen.height-myHeight)/2)+10;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
		window.focus()	
	}
	window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function invioVoto(id,txt){	
	var nomeLocale = new String(txt)
	nomeLocale=nomeLocale.replace("[*]","'")
	
	if (frmSchedaLocale.flagVotato.value==1 || frmSchedaLocale.flagVotato.value==3){
		alert("Siamo spiacenti oggi hai gia votato per il locale, "+frmSchedaLocale.nomeLocaleVotato.value+"!\nSi ricorda che è possibile effettuare una sola votazione al giorno.")
		return
	}
		
	if (confirm("Sei sicuro di voler dare un voto al locale : " + nomeLocale + "?")) {
		frmSchedaLocale.idLocale.value = id;
		frmSchedaLocale.flagVotato.value = 1;
		frmSchedaLocale.invioDB.value =  1;
		frmSchedaLocale.submit();		
	}else{
		alert("Hai scelto di non votare per il locale : " + nomeLocale + "!")
	}
}

function noVoto(){
	alert("           :::::::::::: ATTENZIONE :::::::::::: \n\nPer votare bisogna essere registrati con una card ILove\n\nSe sei un utente già registrato basta effettuare il login.\n\n")
}