//Apre una finestra popup col contenuto di winLocation, la dimensione data, e la centra se dimensionata e winCenter<>0

function popupnone(winLocation,winHeight,winWidth,winCenter)
	{
		config="buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no,titlebar=no"
		if (winWidth!=0)
			{
			config=config+",width="+winWidth
			if (winCenter!=0)
				config=config+",left="+((screen.width) ? (screen.width-winWidth)/2 : 0)
			}
		if (winHeight!=0)
			{
			config=config+",height="+winHeight
			if (winCenter!=0)
				config=config+",top="+((screen.height) ? (screen.height-winHeight)/2 : 0)
			}
		day = new Date();
		id = day.getTime();
 		eval("page" + id + " = window.open(winLocation, '" + id + "','"+ config+"')");
		}
		
function popupfull(winLocation)
	{
		config="buttons=yes,scrollbars=yes,location=yes,menubar=yes,resizable=yes,status=yes,directories=yes,toolbar=yes,titlebar=yes"
		day = new Date();
		id = day.getTime();
 		eval("page" + id + " = window.open(winLocation, '" + id + "','"+ config+"')");
		}
		
function popupmod(winLocation)
	{
		winWidth=650;
		winHeight=510;
		config="buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no,titlebar=yes"
		config=config+",width="+winWidth
		config=config+",left="+((screen.width) ? (screen.width-winWidth)/2 : 0)
		config=config+",height="+winHeight
		config=config+",top="+((screen.height) ? (screen.height-winHeight)/2 : 0)
		day = new Date();
		id = day.getTime();
 		eval("page" + id + " = window.open(winLocation, '" + id + "','"+ config+"')");
		}
		
function popupsto(winLocation)
	{
		winWidth=650;
		winHeight=470;
		config="buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no,titlebar=yes"
		config=config+",width="+winWidth
		config=config+",left="+((screen.width) ? (screen.width-winWidth)/2 : 0)
		config=config+",height="+winHeight
		config=config+",top="+((screen.height) ? (screen.height-winHeight)/2 : 0)
		day = new Date();
		id = day.getTime();
 		eval("page" + id + " = window.open(winLocation, '" + id + "','"+ config+"')");
		}			