function popupPlan(img) {
var winW = 0, winH = 0;
var tailleH = 800, tailleW = 600;
titleImg = img.substring(22);
	  if( typeof( window.innerWidth ) == 'number' ) {
	    //Non-IE
	    winW = window.innerWidth;
	    winH = window.innerHeight;
	    var posX = (winH/2)-(tailleH/2), posY = (winW/2)-(tailleW/2);
	    window.open (''+img+'', ''+titleImg+'', config='height='+tailleH+', width='+tailleW+', toolbar=no, menubar=no, scrollbars=yes, resizable=no, status=no,top='+posX+',left='+posY+'');
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    winW = document.documentElement.clientWidth;
	    winH = document.documentElement.clientHeight;
	    var posX = (winH/2)-(tailleH/2), posY = (winW/2)-(tailleW/2);
	    window.open (''+img+'', '', config='height='+tailleH+', width='+tailleW+', toolbar=no, menubar=no, scrollbars=yes, resizable=no, status=no,top='+posX+',left='+posY+'');
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    //IE 4 compatible
	    winW = document.body.clientWidth;
	    winH = document.body.clientHeight;
	    var posX = (winH/2)-(tailleH/2), posY = (winW/2)-(tailleW/2);
	    window.open (''+img+'', '', config='height='+tailleH+', width='+tailleW+', toolbar=no, menubar=no, scrollbars=yes, resizable=no, status=no,top='+posX+',left='+posY+'');
	  }	
}

function myPopupPub (myurl, mytitle, w, h) {
  
	var posx = (screen.width - w) / 2;
	var posy = (screen.height - h) / 2;
	var browserName=navigator.appName; 
	
	if (browserName == "Microsoft Internet Explorer") {
		options = 'dependent=1,height='+h+',width='+w+',top='+posy+',left='+posx+',scrollbars=yes ,resizable=yes, status=no';
		window.open(myurl, '', options);
	}
	else {
		options = 'dependent=1,height='+h+',width='+w+',top='+posy+',left='+posx+',scrollbars=yes ,resizable=yes, status=no';
		popup = window.open(myurl, mytitle, options);
	}
  
	if (parseInt(navigator.appVersion) >= 4) {
		popup.window.focus();
	}
  
}
function myPopup (myurl, mytitle, w, h) {
  
	var posx = (screen.width - w) / 2;
	var posy = (screen.height - h) / 2;
	var browserName=navigator.appName; 
	
	if (browserName == "Microsoft Internet Explorer") {
		options = 'dependent=1,height='+h+',width='+w+',top='+posy+',left='+posx+',scrollbars=auto ,resizable=yes, status=no';
		window.open(myurl, '', options);
	}
	else {
		options = 'dependent=1,height='+h+',width='+w+',top='+posy+',left='+posx+',scrollbars=auto ,resizable=yes, status=no';
		popup = window.open(myurl, mytitle, options);
	}
  
	if (parseInt(navigator.appVersion) >= 4) {
		popup.window.focus();
	}
  
}
