function MenuHandler(menuId) {	//Mostra il contenuto del menu il cui id nel parametro menuId nascondendo gli altri.	//Se il men\u00F9 \u00E8 gi\u00E0 visibile lo nasconde senza fare altro.	try {		var menuIdArray = new Array("SGS", "SGA","SGSa", "Normativa","PDS")		var menu = document.getElementById(menuId)				if (menu && menu.style.display != "" && menu.style.display != "none") menu.style.display = "none"		else {			for (var i = 0; i < menuIdArray.length; i++) {				menu = document.getElementById(menuIdArray[i])								if (menu) {					if (menu.id == menuId) {						if (menu.style.display != "block") menu.style.display = "block"					}					else {						if (menu.style.display != "none") menu.style.display = "none"					}				}			}		}	}	catch(e) {QException(e, "MenuHandler")}	}//================================================================================/*dg0 = new Image();dg0.src = "Digit 0.gif";dg1 = new Image();dg1.src = "Digit 1.gif";dg2 = new Image();dg2.src = "Digit 2.gif";dg3 = new Image();dg3.src = "Digit 3.gif";dg4 = new Image();dg4.src = "Digit 4.gif";dg5 = new Image();dg5.src = "Digit 5.gif";dg6 = new Image();dg6.src = "Digit 6.gif";dg7 = new Image();dg7.src = "Digit 7.gif";dg8 = new Image();dg8.src = "Digit 8.gif";dg9 = new Image();dg9.src = "Digit 9.gif";dgam= new Image();dgam.src= "Digit am.gif";dgpm= new Image();dgpm.src= "Digit pm.gif";dgc = new Image();dgc.src = "Digit sep.gif";*/function startDeskCalendar(weekDayId, todayDateId) {	try {		var today = new Date()		var textToday		switch (today.getDay()) {			case 1:				textToday = "Luned\u00EC"			break			case 2:				textToday = "Marted\u00EC"			break			case 3:				textToday = "Mercoled\u00EC"			break			case 4:				textToday = "Gioved\u00EC"			break			case 5:				textToday = "Venerd\u00EC"			break			case 6:				textToday = "Sabato"			break			case 7:				textToday = "Domenica"			break		}				if (document.getElementById(weekDayId)=="[object]") document.getElementById(weekDayId).innerHTML = textToday				var theyear = today.getFullYear()		var themonth = today.getMonth() + 1		var thetoday= today.getDate()					var textMonth			switch (themonth) {			case 1:				textMonth = "Gen"			break			case 2:				textMonth = "Feb"			break			case 3:				textMonth = "Mar"			break			case 4:				textMonth = "Apr"			break			case 5:				textMonth = "Mag"			break			case 6:				textMonth= "Giu"			break			case 7:				textMonth = "Lug"			break			case 8:				textMonth = "Ago"			break			case 9:				textMonth = "Set"			break			case 10:				textMonth = "Ott"			break			case 11:				textMonth = "Nov"			break			case 12:				textMonth = "Dic"			break		}		var calendarString="<center>"		calendarString+="<span style='font-size:9px;color:white;font-weight:bold'>" + theyear + " - " + textMonth + "</span>"				calendarString+="<br><span style='font-size:9px;'>"+textToday+"</span>"		calendarString+="<br><span style='font-face:arial;font-size:28px;font-weight:plain'>" + thetoday  +"</center>"		//document.getElementById(todayDateId).innerHTML = theyear + "/" + themonth + "/" + thetoday		document.getElementById(todayDateId).innerHTML =calendarString		startDigitalClock()	}	catch(e) {QException(e, "startDeskCalendar")}}	function startDigitalClock(){	try {		theTime = setTimeout('startDigitalClock()', 30000);		d = new Date();		hr = d.getHours() + 100;		mn = d.getMinutes() + 100;			if (hr == 100) {			hr = 112;			am_pm = 'am';		}		else if (hr < 112) am_pm='am';		else if (hr == 112) am_pm = 'pm';		else if (hr > 112)	{			am_pm = 'pm';//			hr = (hr-12);		}			tot = '' + hr + mn;		document.hr1.src = 'Digit ' + tot.substring(1,2) + '.gif';		document.hr2.src = 'Digit ' + tot.substring(2,3) + '.gif';		document.mn1.src = 'Digit ' + tot.substring(4,5) + '.gif';		document.mn2.src = 'Digit ' + tot.substring(5,6) + '.gif';//		document.ampm.src = 'Digit ' + am_pm + '.gif';	}	catch(e) {QException(e, "startDeskCalendar")}}//================================================================================function Reindirizza(TipoValore) {//Questa funzione \u00E8 utilizzata dal menu di area clienti del portale Studioconsult. 	//Consente di accedere, dopo aver selezionato la societ\u00E0 dal campo lista, ai diversi db di competenza, ricollegati ai singoli link di menu	var Modulo = document.forms[0];	var frm = parent.corpo;	var soloPath="";	var elencoDb="";	var dbPresenze="";	var dbAmmin="";	var dbAreaPrivata="";	var pathBar="";	if (typeof(Modulo.ElencoPercorsiSocieta)=="object" && typeof(Modulo.ElencoPercorsiSocieta.options)=="object"){		var Valore = Modulo.ElencoPercorsiSocieta.options[Modulo.ElencoPercorsiSocieta.selectedIndex].value;		}	else 	var Valore="";	var currDbPath=Modulo.DbPath.value;	if (Valore!="" && Valore!="nok"){		soloPath=Valore.split("|")[0];		elencoDb=Valore.split("|")[1].split("~");		dbPresenze=elencoDb[1];		dbAmmin=elencoDb[2];		dbAreaPrivata=elencoDb[3];	}	else {		if (typeof(Modulo.lista.value)=="string") {			if (Modulo.lista.value==""){			soloPath=Modulo.DbPath.value;			}		else	{			Valore=Modulo.lista.value.split("|");			soloPath=Valore[1];			elencoDb=Valore[2].split("~");			dbPresenze=elencoDb[1];			dbAmmin=elencoDb[2];			dbAreaPrivata=elencoDb[1];			}		}	}	switch (TipoValore)		{		case "Presenze":			if(Valore!="")				{Valore=dbPresenze + "/Inserimento?OpenForm"; pathBar="Area Amministrativa/Presenze"}		break;		case "Statistiche":			if(Valore!="")				{Valore=dbPresenze + "/vPresAnno?openView&Expand=1"; pathBar="Area Datore di lavoro/Statistiche"}		break;		case "Schede di Costo":			if(Valore!="")				{Valore=dbPresenze + "/vSkCosto?openView&count=-1"; pathBar="Area Datore di lavoro/Schede di Costo"}		break;		case "AreaPrivata":			if(Valore!="")				{Valore=dbPresenze + "/Centrale?OpenFrameset"; pathBar="Area Datore di lavoro/Dati Dipententi"}		break;		case "Documenti":			if(Valore!="")				{Valore=dbPresenze + "/vDipendentiCog?openview"}		break;		case "Amministrazione":			if(Valore!="")				{Valore=dbAmmin; pathBar="Area Amministrativa/Libro Unico"}		break;		case "Scadenzario":			soloPath=currDbPath;			Valore="/main.nsf/MainWeb?openFrameset&Redir=Scadenzario";		break;		case "Consulenza":			soloPath=currDbPath;			frm=parent.cx;//			Valore="/docsconsul.nsf/FSWeb?openFrameset&Vista=vwWPAcrS";			Valore="/docsconsul.nsf?open";//			Valore="/portale.nsf/docs/in_lavorazione?openDocument";		break;		case "ConsulenzaCircolari":			soloPath=currDbPath;//			Valore="docsconsul.nsf/vwWPAcrS?openView&RestrictToCategory=Le Nostre Circolari";			Valore="/main.nsf/MainWeb?openFrameset&Redir=ConsulenzaCircolari";		break;		case "ConsulenzaNews":			soloPath=currDbPath;//			frm=parent.corpo.cx;//			Valore="/newsconsul.nsf/vwWSS?openView&count=5"			Valore="/main.nsf/MainWeb?openFrameset&Redir=ConsulenzaNews";		break;		case "ConsulenzaModuli":			soloPath=currDbPath;//			frm=parent.corpo.cx;//			Valore="main.nsf/modulistica?openView&expandview";			Valore="/main.nsf/MainWeb?openFrameset&Redir=ConsulenzaModuli";		break;		case "NormativaGiurisprudenza":			soloPath=currDbPath;			frm=parent.cx;//			Valore="/docsconsul.nsf/FSWeb?openFrameset&RestrictToCategory=Giurisprudenza&Vista=vwWPAcrS";			Valore="/docsconsul.nsf/vwWPAcrS?openView&RestrictToCategory=Giurisprudenza&Vista=vwWPAcrS";		break;		case "NormativaVigente":			soloPath=currDbPath;			frm=parent.cx;//			Valore="/docsconsul.nsf/FSWeb?openFrameset&RestrictToCategory=Normativa Vigente&Vista=vwWPAcrS";			Valore="/docsconsul.nsf/vwWPAcrS?openView&RestrictToCategory=Normativa Vigente&Vista=vwWPAcrS";		break;		case "NormativaCircolari":			soloPath=currDbPath;			frm=parent.cx;//			Valore="/docsconsul.nsf/FSWeb?openFrameset&RestrictToCategory=Circolari Enti&Vista=vwWPAcrS";			Valore="/docsconsul.nsf/vwWPAcrS?openView&RestrictToCategory=Circolari Enti&Vista=vwWPAcrS";		break;		case "StoricoNormativa":			soloPath=currDbPath;			frm=parent.cx;//			Valore="/docsconsul.nsf/FSWeb?openFrameset&CR=Storico&Vista=vwWSA";			Valore="/docsconsul.nsf/vwWSA?openView&CR=Storico&Vista=vwWSA";//			Valore="/portale.nsf/docs/in_lavorazione?openDocument";		break;		case "FAQ":			soloPath=currDbPath;			frm=parent.cx;			Valore="/faq.nsf?open"		break;		case "LinkUtili":			soloPath=currDbPath;			frm=parent.cx;			Valore="/link.nsf/vwPRWA?openView&RestrictToCategory=Link"		break;		case "in_lavorazione":			soloPath=currDbPath;			Valore="/main.nsf/MainWeb?openFrameset&Redir=in_lavorazione";		break;		}if ((soloPath  + Valore).indexOf(".nsf")<0) {alert("Selezionare una societ\u00E0 dall'elenco.");return void(0)};//alert("parent.QWidgetURLOpen('" + soloPath  + Valore + "','"+ pathBar +"')")	if(Valore!="") parent.QWidgetURLOpen( soloPath  + Valore ,pathBar);//	if(Valore!="") frm.location.href = soloPath  + Valore;//	else alert("Selezionare una societ\u00E0 dall'elenco.")	}