// LIBRERIA JS di funzioni generiche

// Apre una nuova finestra 400x300 pixels se dim < 0
function openNewWindow(page,title,width,height) {
	if (width<0) width=400;
	if (height<0) height=300;
	var wnd = window.open(page,"AAA"+title,"width="+width+",height="+height+",resizable=no,scrollbars=0");
	wnd.focus();
	//return wnd;
}

function openNewWindowFull(page,title) {
	var wnd = window.open(page,title,"width=600,height=400,resizable=yes,scrollbars=1");
	wnd.focus();
	// return wnd;
}

function openNewWindowRes(page,title,width,height) {
	if (width<0) width=400;
	if (height<0) height=300;
	var wnd = window.open(page,title,"width="+width+",height="+height);
	wnd.focus();
	//return wnd;
}

function openNewWindowScroll(page,title,width,height) {
	if (width<0) width=400;
	if (height<0) height=300;
	var wnd = window.open(page,title,"width="+width+",height="+height+",scrollbars=1");
	wnd.focus();
	//return wnd;
}

// Apre finestra senza NULLA
function openWindowEmpty(page,title,width,height) {
	var FullScreenWindow = window.open(page, title, "top=100,left=200,left=100,width="+width+",height="+height+",fullscreen=3");
	FullScreenWindow.document.write("<BODY style='background:#c0c0c0;overflow:hidden;'>"+
			"<INPUT TYPE='button' value='yes' onclick='self.close()'></BODY>")
}



