function select_plan()
{
	document.upload_fichier.selectplan.value='1';
	document.upload_fichier.ajoutdefichier.value=1;
	document.upload_fichier.submit();
}

function au_revoir()
{
	window.opener.actualise_ecran();
}

function ajoutfichier()
{
	document.tableau_fichier.ajoutdefichier.value=1;
	document.tableau_fichier.submit();
}

var x=0
function popup_fixe(x)
{
newWin = window.open(x,'','resizable=1,scrollbars=1,toolbar=1,location=1,height=630,width=650,top=10,left=10');
}

var y=0
function popup_ref(y)
{
newWin = window.open(y,'','resizable=1,scrollbars=1,toolbar=1,location=1,height=590,width=950,top=10,left=10');
}

var z=0
function popuplarge(z)
{
newWin = window.open(z,'','resizable=1,scrollbars=1,toolbar=1,location=1,height=630,width=850,top=10,left=10');
}

function valider_acces_cpt() 
{
	document.cnx.valider_cnx.value=1;
	document.cnx.submit();
}

function valider_acces_espace_reserve() 
{
	document.cnx_espace_reserve.valider_cnx.value=1;
	document.cnx_espace_reserve.submit();
}

function dcnx() 
{
	document.cnx.deconnexion.value=1;
	document.cnx.submit();
}

function msg_bientot()
{
alert('Service bientôt disponible.');
}

var msg=0;
function popup_msg(msg)
{
var popmsg = window.open('popup_msg.php?msg='+msg,'popupmsg','resizable=1,scrollbars=1,toolbar=0,location=0,menubar=1,height=250,width=400,top=0,left=0');
popmsg.focus();
}

function Is() {
   var agent = navigator.userAgent.toLowerCase();
   this.major = parseInt(navigator.appVersion);
   this.minor = parseFloat(navigator.appVersion);
   this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
   this.ns4 = (this.ns && (this.major >= 4));
   this.ns6 = (this.ns && (this.major >= 5));
   this.ie = (agent.indexOf("msie") != -1);
   this.ie4 = (this.ie && (this.major >= 4));
   this.ie5  = (this.ie && (agent.indexOf("msie 5")!=-1));
   this.op3 = (agent.indexOf("opera") != -1);
   this.win = (agent.indexOf("win")!=-1);
   this.mac = (agent.indexOf("mac")!=-1);
   this.unix = (agent.indexOf("x11")!=-1);
}

var is = new Is();
function addBookmark() {
   var titre = "GESICAD - Numérisation optimisation fichier de dessin";
   var url   = "http://www.gesicad.fr/";
   if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {
      window.sidebar.addPanel(titre, url, "");
   } else if (is.ie) {
      window.external.AddFavorite(url, titre);
   } else {
      alert("Pour ajouter 'titre' à  vos favoris, utilisez <CTRL>+D.");
   }
}


