function popup(url,ptitle,pWidth,pHeight)
{
	large = screen.width;
	large = (large/2)-(pWidth/2);
	haut = screen.height;
	haut = (haut/2)-(pHeight/2);
	fenetre = window.open(url,ptitle,'fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width='+pWidth+',height='+pHeight+',top='+haut+',left='+large+',true');
}

function popup2(url,ptitle,pWidth,pHeight)
{
	large = screen.width;
	large = (large/2)-(pWidth/2);
	fenetre = window.open(url,ptitle,'fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width='+pWidth+',height='+pHeight+',top=0,left='+large+',true');
}

function fQuit()
{
	top.window.opener.focus();
	top.window.close();
}

function openFullscreen(pName, pPage) 
{
	var yes = 1;
	var no = 0;
	var menubar = no; 		// The File, Edit, View Menus
	var scrollbars = no; 	// Horizontal and vertical scrollbars
	var locationbar = no; 	// The location box with the site URL
	var directories = no; 	// the "What's New", "What Cool" links
	var resizable = no; 	// Can the window be resized?
	var statusbar = no; 	// Status bar (with "Document: Done")
	var toolbar = no;		// Back, Forward, Home, Stop toolbar
	windowprops = "fullscreen=yes, width=" + (screen.width-10) + ",height=" + (screen.height-50) + ",top=0,left=0";
	windowprops += (menubar ? ", menubars" : "") +
	(scrollbars ? ", scrollbars" : "") +
	(locationbar ? ", location" : "") +
	(directories ? ", directories" : "") +
	(resizable ? ", resizable" : "") +
	(statusbar ? ", status" : "") +
	(toolbar ? ", toolbar" : "");

	window.open(pPage, pName, windowprops);
}
