<!--

var adresse = new String ("");
var details = new String("");
var largeur = new String("");
var hauteur = new String("");

var leftpos = 0;
var toppos = 0;

function ouvre (adresse,largeur, hauteur) {

//Calcul position fenêtre
/*
//Avec paramètres propres à chaque navigateur
if (ns4) {
winW = window.innerWidth;
winH = window.innerHeight;
  }
  else if (ie4) {
  winW = document.body.scrollWidth;
  winH = document.body.scrollHeight;
  }
  else if (ns6) {
  }
//Avec calcul sur l'écran standard

leftpos = (winW - largeur) / 2;
toppos = (winH - hauteur) / 2;

leftpos =(screen.width)?(screen.width-largeur)/2:100;
toppos =(screen.height)?(screen.height-hauteur)/2:100;
*/

leftpos = (screen.width - largeur) / 2;
toppos = (screen.height - hauteur) / 2;

leftpos = parseInt(leftpos,10);
toppos = parseInt(toppos,10);

if (leftpos < 0) {leftpos = 0};
if (toppos < 0) {toppos = 0};

details = ",status=no,resizable=yes,scrollbars=yes";
details = details + ",width=" + largeur + ",height=" + hauteur + ",top=" + toppos + ",left=" + leftpos;

var fenetre = window.open (adresse,'',details);
}

function photo (adresse,largeur, hauteur) {

//Calcul position fenêtre
/*
leftpos =(screen.width)?(screen.width-largeur)/2:100;
toppos =(screen.height)?(screen.height-hauteur)/2:100;
*/
leftpos = (screen.width - largeur) / 2;
toppos = (screen.height - hauteur) / 2;

leftpos = parseInt(leftpos,10);
toppos = parseInt(toppos,10);

if (leftpos < 0) {leftpos = 0};
if (toppos < 0) {toppos = 0};


details = ",status=no,resizable=yes";
details = details + ",width=" + largeur + ",height=" + hauteur + ",top=" + toppos + ",left=" + leftpos;

var fenetre = window.open(adresse,'',details);
}


var indexS = 0;
var strChoix = new String ("");

function change(formulaire){
	indexS = formulaire.choix.options.selectedIndex;
	strChoix = formulaire.choix.options[indexS].value;
	formulaire.nom.value = strChoix;
	formulaire.index.value = indexS;
	formulaire.action = formulaire.nomfichier.value;
	formulaire.submit();
return true;
}

var index1 = 0;
var index2 = 0;
var strChoix1 = new String ("");
var strChoix2 = new String ("");

function change2(formulaire){
	index1 = formulaire.choix1.options.selectedIndex;
	index2 = formulaire.choix2.options.selectedIndex;
	strChoix1 = formulaire.choix1.options[index1].value;
	strChoix2 = formulaire.choix2.options[index2].value;
	formulaire.nom.value = strChoix1;
	formulaire.annee.value = strChoix2;	
	formulaire.index1.value = index1;
	formulaire.index2.value = index2;	
	formulaire.action = formulaire.nomfichier.value;
	formulaire.submit();
return true;
}

//-->

