<!--
function chkAreaRiservata(theForm)
{
	var selValue = theForm.aree.value;
	
	if(theForm.username.value=="")
	{
		alert("Inserire lo Username");
		theForm.username.focus();
		return false;
	}

	if(theForm.password.value=="")
	{
		alert("Inserire la Password");
		theForm.password.focus();
		return false;
	}

	switch(selValue)
	{
		case "mail":
			theForm.action = "http://mx6.aruba.it/cgi-bin/sqwebmail";
			break;
		case "intranet":
			theForm.action = "/gestionale/index.asp";
			break;
		case "management":
			theForm.action = "/management/default.asp";
			break;
		default:
			return false;
			break;
	}
	return true;
}

var temp;
function popup_open(popupfile, popupname, popupwidth, popupheight, resize, status, scroll, tool, menu)
{
	var winleft = (screen.width - popupwidth) / 2;
	var wintop = (screen.height - popupheight) / 2;
	var params = "width=" + popupwidth + ",height=" + popupheight + ",top=" + wintop + ",left=" + winleft + ",resizable=" + resize + ",status=" + status + ",scrollbars=" + scroll + ",toolbar=" + tool + ",location=0,directories=0,menubar=" + menu + "";
	if((navigator.appName.indexOf("Explorer")!=-1)&&(parseInt(navigator.appVersion.substring(0,1))<4))
	{
		newwin = window.open( popupfile , popupname , params)	;
	}
	else
	{
		if(temp)
		{
			if(!temp.closed)
			{
				temp.close();temp="";
			}
		}

		newwin = window.open( popupfile , popupname , params)	;
		temp = newwin;
		temp.name = "temp";
		newwin="";
	}
}

// -->
