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 go2url(theURL,winName,features) { //v2.0
  ww=window.open(theURL,winName,features);
  ww.focus();
}
function Ouvrir(form,num) {
//alert(form.elements[num].options[form.elements[num].selectedIndex].value);
features='location=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=800,height=600'
if (form.elements[num].selectedIndex>0)
  MM_openBrWindow(form.elements[num].options[form.elements[num].selectedIndex].value,'',features)
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function resize(x,y,features) {
			parent.window.resizeTo(x,y,features);

}

function maximiser() {
	parent.window.moveTo(0,0);
	resize(screen.width-10,screen.height-30);
}

function openup()
	{
	if (window.showModalDialog) //si c est ie5 ou compatible IE5
		{
		top.window.showModalDialog("totocarte.html","","help:0;resizable:0;dialogLeft:1600;dialogTop:1200;dialogWidth:1px;dialogHeight:1px");
        }
    else
        {
        top.window.open("totocarte.html","","width=400px,height=400px,resizable=0,scrollbars=0"); 
        }
	}
function pleinEcran(URL,Name) {
	maximizeWindow();
	//opener=self;
	//self.close();
	win=window.open(URL,Name,'toolbar=no,scrollbars=no,resizable=yes');
	win.focus();
if (!pop) {
    alert("Votre antipopup est activé");
  }
}
function petitEcran(URL,Name) {
	//opener=self;
	//self.close();
	win=window.open(URL,Name,'toolbar=no,scrollbars=yes,resizable=yes');
	win.focus();
}

