
exversion = navigator.appVersion.substring(0,1);
if (exversion > 3)
	explor = true;
else
	explor = false;

today = new Date;
jour = today.getDay();
numero = today.getDate();
if (numero<10)
	numero = "0"+numero;
mois = today.getMonth();
if (explor)
	annee = today.getFullYear();
else
	annee = today.getYear();
LeJour = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
LeMois = new Array("janvier","f&eacute;vrier","mars","avril","mai","juin","juillet","aout","septembre","octobre","novembre","dé&eacute;embre");
messageDate = LeJour[jour] + " " + numero + " " + LeMois[mois] + " " + annee;

function LanceUrl(fichier)
{
document.Lance.action = '/programme/consult/scripts/' + fichier;
document.Lance.submit();
}
            
          function LanceUrlAgence(fichier, type)
            {
              document.Lance.IN_type.value = type;
              document.Lance.action = '/programme/consult/scripts/' + fichier; 
              document.Lance.submit();
            }
          
          function LanceAccesPro()
            {
              document.Lance.action = '/programme/consult/scripts/AccesPro.asp'
              document.Lance.submit();
            }


function LanceTestCode()
{
	window.dateField = document.Lance.IN_CODE;
	ref = 'Code_Test.asp?IN_code='+document.Liste.IN_Code.value;
	ouvre(ref);
}


function ouvre(ref)
     {
	   vSession = document.Liste.IN_SESSION.value;
       Somfen=window.open(ref,"TestCode","toolbar=0,location=0,status=0,resizable=0,menubar=0,width=280 ,height=225,marginwidth=0,marginheight=0");
      }


function LoadUrl( Sens )
{
  document.Liste.Sens.value=Sens;
  document.Liste.submit();
}


function AjoutePanier(ident, indice)
{
	// location.target = 'panier';
	//	alert(parent.panier);
	if (parent.panier == null) {
		alert ('la fonction de sélection a été désactivée : veuillez recharger le site');
	} else {
		 parent.panier.location.href = 'Panier_sauv.asp?ident=' + ident + "&Image=Memo" + indice + "&IN_SESSION=" + document.Liste.IN_SESSION.value + "&IN_CODE=" + document.Liste.IN_Code.value;
	}
}

