
function controlla_inserimento(usr,psw){
	if ((usr == "") || (psw == "")){
		alert("Eseguire il Login inserendo Username e Password");
		return false;
	}
	else{
		return true;
	}
}

function SwitchMenu(obj)
{
	if(document.getElementById)
	{
		var el = document.getElementById(obj);
		var ar = document.getElementById("masterdiv").getElementsByTagName("span");
		if(el.style.display != "block")
		{
			for (var i=0; i<ar.length; i++)
			{
				if (ar[i].className=="spanArea")
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}
		else
		{
			el.style.display = "none";
		}
	}
}


function poponclick(pagpopup, sb, w, h )
{
	if (w == 0){ w = 630}
	if (h == 0){ h = 330}
	mywindow = window.open(pagpopup, "popup","menubar=0,toolbar=0,directories=0,resizable=0,location=0,status=0,scrollbars="+sb+",width="+w+",height="+h+",left=100,top=100");
	mywindow.focus();
}

function poponclickLink(pagpopup,larghezza,altezza)
{
	mywindow = window.open(pagpopup, "popup","menubar=1,toolbar=1,directories=1,resizable=1,location=1,status=1,scrollbars=1,width="+larghezza+",height="+altezza+",left=100,top=100");
	mywindow.focus();
}


