function OuvrePopup(page, w, h)
{
	var winl = ((screen.width - w) / 2) - 6;
	var wint = ((screen.height - h) / 2) - 36;
	
	if ( winl < 0 )
	{
		winl = 0;
	}
	
	if ( wint < 0 )
	{
		wint = 0;
	}
	
	fenetreOuvrePopup = window.open(page,'','top=' + wint + ',left=' + winl + ',width=' + w + ',height=' + h + ',location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no');
	fenetreOuvrePopup.focus();
}

function OpenPhotoPopup(strImagePath, strPageTitle, w, h, ysnShrinkPopup, hShrink)
{
	var winl = ((screen.width - w) / 2) - 6;
	var wint = ((screen.height - h) / 2) - 36;
	var objPopupWindow = null;
	
	if ( winl < 0 )
	{
		winl = 0;
	}
	
	if ( wint < 0 )
	{
		wint = 0;
	}
	
	if (ysnShrinkPopup == true)
	{
		objPopupWindow = window.open(strImagePath,'','top=' + wint + ',left=' + winl + ',width=' + (w + 20) + ',height=' + hShrink + ',location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');
	}
	else
	{
		objPopupWindow = window.open(strImagePath,'','top=' + wint + ',left=' + winl + ',width=' + w + ',height=' + h + ',location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no');	
	}
	objPopupWindow.document.write('<html>');
	objPopupWindow.document.write('<head>');
	objPopupWindow.document.write('<title>' + strPageTitle + '</title>');
	objPopupWindow.document.write('</head>');
	objPopupWindow.document.write('<body style="margin:0px;padding:0px;background-color:#FFFFFF;">');
	objPopupWindow.document.write('<img border="0" src="' + strImagePath + '" width="' + w +'" height="' + h + '">');
	objPopupWindow.document.write('</body>');
	objPopupWindow.document.write('</html>');
	
	objPopupWindow.focus();
}