
function promos(URL,Name) {
var largeurFen=400;
var hauteurFen=400;
var xFen=(screen.width-largeurFen)/2;
var yFen=(screen.height-hauteurFen-50)/2;
var Size="width="+largeurFen+",height="+hauteurFen+",screenX="+xFen+",screenY=200,top="+yFen+",left="+xFen;

	prom=window.open(URL,Name,Size);
	prom.focus();
}

function pagereload(){
        history.back;
}

function openWindow(URL,Win,Feats){
        window.open(URL,Win,Feats);
}

function maximizeWindow() {
 if (parseInt(navigator.appVersion)>3) {
  if (navigator.appName=="Netscape") {
   if (top.screenX>0 || top.screenY>0) top.moveTo(0,0);
   if (top.outerWidth < screen.availWidth)
      top.outerWidth=screen.availWidth;
   if (top.outerHeight < screen.availHeight) 
      top.outerHeight=screen.availHeight;
  }
  else {
   top.moveTo(-4,-4);
   top.resizeTo(screen.availWidth+8,screen.availHeight+8);
  }
 }
}

function pleinEcran(URL,Name) {
	maximizeWindow();
	//opener=self;
	//self.close();
	win=window.open(URL,Name,'toolbar=no,scrollbars=no,resizable=yes');
	win.focus();
}

function PopupImage(img) {
titre="...::: Photos/Pictures :::...";
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');
w.document.write("<html><head><title>"+titre+"</title>");
w.document.write('<link rel="stylesheet" href="css/style_csomme.css" type="text/css" />');
w.document.write("</head>");
w.document.write("<script language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"script>");
w.document.write("<body onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><img src='"+img+"' border=0>");
w.document.write("<br /><table id='tablefushia'><tr><td><div id='tablefushialiens'><a href='javascript:window.close();'>fermer cette fen&ecirc;tre</a></div></td></tr></table>");
w.document.write("</body></html>");
w.document.close();
}