/********************************************************/
/* NAME :		 Utiliy.js								*/	
/* DESCRIPTION:	 Client-Side Function					*/
/********************************************************/
/*--------------------------------------------------------------*/
/* FUNCTION:	apri_nascosta						            */
/* DESCRIPTION: apre una finestra nascosta						*/
/*--------------------------------------------------------------*/
function popup_hidden(page, name)
{
	var popup = window.open(page, name, "width=1, height=1, location=0, menubar=0, resizable=0, scrollbars=no, status=0, titlebar=0, toolbar=0, z-lock=0, screenX=5000, screenY=5000, left=5000, top=5000");
	popup.focus();	

}
/*--------------------------------------------------------------*/
/* FUNCTION:	popup_center						            */
/* DESCRIPTION: apre una finestra centrata						*/
/*--------------------------------------------------------------*/
function popup_center(page, name, width, height, resizable)
{
	var posX = (window.screen.width/2)-(width/2)
	var posY = (window.screen.height/2)-(height/2)
	var popup;
	if (resizable == false)
		popup = window.open(page,name,"width=" + width + ",height=" + height + ",location=0,menubar=0,resizable=no,scrollbars=no,status=0,titlebar=0,toolbar=no,z-lock=0,screenX=" + posX + ",screenY=" + posY + ",left=" + posX + ",top=" + posY);
    else
    	popup = window.open(page,name,"width=" + width + ",height=" + height + ",location=0,menubar=0,resizable,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=" + posX + ",screenY=" + posY + ",left=" + posX + ",top=" + posY);	
	popup.focus();
}
