var newwindow = '';
//
function popitup( url, fenetre, param )
	//	param est optionnel et peut être 'pleinEcran'
	{
	if( !newwindow.closed && newwindow.location )
		newwindow.location.href = url;
	else
		{
		if( arguments.length < 3 )
			{
			//param = 'top=0,left=0,width=580,height=540,scrollbars=1,status=0,toolbar=0,menubar=0,directories=0';
			height = 540;
			width = 580;
			//	centering
			posY = ( screen.height - height ) / 2;
			posX = ( screen.width - width ) / 2;
			param = 'top=' + posY + ',left=' + posX + ',width=' + width
				+ ',height=' + height
				+ ',status=0,scrollbars=1,toolbar=0,menubar=0,directories=0';
			}
		else if( param == 'pleinEcran' )
			param = 'fullsize,scrollbars,top=0,left=0,status=0,toolbar=0,menubar=0,width=' + screen.width + ',height=' + screen.height;
		if( url.indexOf( "?" ) != -1 )
			url += "&";
		else
			url += "?";
		url += "screenHeight=-" + screen.height;
		newwindow=window.open( url, fenetre, param );
		//	pour voir barre adresse : ajouter location=yes
		if (!newwindow.opener) newwindow.opener = self;
		}
	if (window.focus) { newwindow.focus() }
	return false;
	}

