function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function big_pic(url_photo)
{
	html = '';
	html = html + '<HTML>';
	html = html + '<HEAD>';
	html = html + '<TITLE>Zoom</TITLE>';
	html = html + '</HEAD>';
	html = html + '<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">';
	html = html + '<CENTER>';
	html = html + '<A HREF="#" onClick="window.close();" TITLE="Click to close pop-up">';
	html = html + '<IMG SRC="'+url_photo+'" BORDER="0" NAME="big_pic" onLoad="window.resizeTo(document.big_pic.width+14,document.big_pic.height+32); window.moveTo((screen.width-document.big_pic.width)/2,(screen.height-document.big_pic.height)/2);">';
	html = html + '</A>';
	html = html + '</CENTER>';
	html = html + '</BODY>';
	html = html + '</HTML>';

	popupImage = window.open('','big_pic','toolbar=0, location=0, directories=0, menuBar=0, scrollbars=0, resizable=1');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.focus();
	popupImage.document.close()
};
function OpenPopUp(MyFile,MyWindow,MyWidth,MyHeight)
//MyFile : formulaire3.php 
//MyWindow : formulaire 
//MyWidth : 660 
//MyHeight : 540

{    
var ns4 = (document.layers)? true:false;    //NS 4 
var ie4 = (document.all)? true:false;   //IE 4 
var dom = (document.getElementById)? true:false;   //DOM 
var xMax, yMax, xOffset, yOffset;;    

    if (ie4 || dom)
        {
        xMax = screen.width;
        yMax = screen.height;
        }
    else if (ns4)
        {
        xMax = window.outerWidth;
        yMax = window.outerHeight;
        }
    else
        {
        xMax = 800;
        yMax = 600;
        }
    xOffset = (xMax - MyWidth)/2;
    yOffset = (yMax - MyHeight)/2;
    window.open(MyFile,MyWindow,'width='+MyWidth
+',height='+MyHeight
+',screenX='+xOffset
+',screenY='+yOffset
+',top='+yOffset
+',left='+xOffset
+',scrollbars=yes,resizable=yes');
}
