function popup_affiche( id_gain, w, h)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	url = '/front/pages/common/pop_up_gain.php?id_gain='
	window.open(url+id_gain , 'popup_gain', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width = '+w+', height = '+h+' , top='+TopPosition+', left='+LeftPosition	);
}



function popup_flash( url, w, h)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	window.open(url, 'popup_gain', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width = '+w+', height = '+h+' , top='+TopPosition+', left='+LeftPosition	);
}

