path = location.pathnamecar = path.indexOf('.nsf/')+4//RIAPRE LA HOME PAGE DEL SITO DELL'UNIONE DEI COMUNIfunction HomePortale(){//	window.top.frames['Primo'].location = 'http://' + location.host + path.substring(0,car)	window.top.location = 'http://' + location.host + path.substring(0,car)}function openDocPopup(id,_width,_height,view,comune,temp){	if (!view){		view = '0'	}	if (!comune){		comune = ''	}	if (!temp){		temp = 'no'	}	//url='http://' + location.host + path.substring(0,car) + '/' + view + '/' + id + '?openDocument&view=' + view + '&comune=' + comune + '&popup=true&'	url='http://' + location.host + path.substring(0,car) + '/$$OpenDominoDocument.xsp?documentId=' + id + '&action=openDocument&view=' + view + '&comune=' + comune + '&popup=true&';	//alert(url);	window.open(url, '_blank', 'titlebar=no, toolbar=no, menubar=no, scrollbars= no, resizable=' + temp+', width=' + _width + ', height=' + _height + ', top=70, left=320');}//APRE UN POPUPfunction openPopup(new_win,_width,_height,opt1,opt2){	url='http://' + location.host + path.substring(0,car) + '/frminfo?openForm&opt1=' + opt1 + '&opt2=' + opt2 + '&'	if (new_win == 'true'){			window.open(url, '_blank', 'titlebar=no, toolbar=no, menubar=no, scrollbars= no, resizable=no, width=' + _width + ', height=' + _height + ', top=70, left=320');	}else{		window.location.replace(url)	}}//ESEGUE LA RICERCAfunction search(){	if (document.forms[0].cerca.value == ''){		alert('Inserire un testo da ricercare')		document.forms[0].cerca.focus()	}else{	document.forms[0].submit()	}}//VISUALIZZA LA DATA E L'ORA CORRENTE NEL FORMfunction TimeOutfunc() {	var today = new Date();	var numerogiorno =today.getDate();	var stringa;	var giorno; 	var mese ;	var anno=today.getYear()+1900;	var h=today.getHours() ;	var m=today.getMinutes();	var s=today.getSeconds();		var mesi = new Array();     mesi[0] = "gennaio";     mesi[1] = "febbraio";     mesi[2] = "marzo";     mesi[3] = "aprile";     mesi[4] = "maggio";     mesi[5] = "giugno";     mesi[6] = "luglio";     mesi[7] = "agosto";     mesi[8] = "settembre";     mesi[9] = "ottobre";     mesi[10] = "novembre";     mesi[11] = "dicembre";    var giorni = new Array();     giorni[0] = "domenica";     giorni[1] = "luned\u00EC";     giorni[2] = "marted\u00EC";     giorni[3] = "mercoled\u00EC";     giorni[4] = "gioved\u00EC";     giorni[5] = "venerd\u00EC";     giorni[6] = "sabato";		giorno = giorni[today.getDay()]; 		mese = mesi[today.getMonth()] ;	if(s<=9) s="0"+s;	if(m<=9) m="0"+m;	if(h<=9) h="0"+h;		var dataora = giorno + " " + numerogiorno +" " +mese+ ", "+ anno +" ore " + h+":"+m+":"+s;	if (document.getElementById("timer"))		document.getElementById("timer").innerHTML = dataora;}
