function DisplayPopup(i, d, f, w, h)
{
	url_banner	= 'http://www2.adserverpub.com/banner.php?id='+ i + '&data=' + d;
	url_click	= 'http://www2.adserverpub.com/click.php?id='+ i + '&data=' + d;
	url_redirect= 'http://www2.adserverpub.com/redirect.php?id='+ i + '&data=' + d;


	if(w==1 || h==1){
		if (document.all && window.print)
		  eval("window.showModelessDialog(url_redirect, window, 'dialogLeft:5000;dialogTop:5000;help:0;resizable:0;status:false;dialogWidth:1px;dialogHeight:1px');");
		else
		  eval("window.open(url_banner,'_blank','toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1,width=800,height=600');");

	}
	else{

		var ads_w = parseInt(w) +12;
		var ads_h = parseInt(h) + 50;
		var screen_h = screen.height;
		var screen_w = screen.width;

		if (ads_w > screen_w) {ads_w = screen_w;}
		if (ads_h > screen_h) {ads_h = screen_h;}
			
		var pop_w = parseInt((screen_w - ads_w)/2);
		var pop_h = parseInt((screen_h - ads_h)/2);
		var ads_top = 5000;
		
		var banner = '<html><head><title>Publicité AdServerPub</title></head>'+'<body bgcolor=#000000 leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0 marginheight=0 marginwidth=0><a href="'+url_click+'" target="_blank"><img src="'+url_banner+'" width="'+w+'" height="'+h+'" border=0></a></body>';
		
		var ads_param = 'status=yes,scrollbars=no,width=10,height=10,left=100,top='+ads_top;
			
		ads_pub = window.open('','',ads_param);
		self.focus();
		if (ads_pub != null)
		{
			ads_pub.blur(); 
			window.focus();		
			ads_pub.moveTo(pop_w,pop_h);
			ads_pub.resizeTo(ads_w,ads_h);
			ads_pub.document.write(banner);
			ads_pub.status='AdServerPub';
		}
	}
}