//Fonction qui ouvre une popup centrée
function popupCentre( fichier, nom, largeur, hauteur, options ) {
	var gauche = ( screen.width - largeur ) / 2;
 	var haut = ( screen.height - hauteur ) / 2;
	if ( options ) {
		options = 'width=' + largeur + 'px, height=' + hauteur + 'px,  top=' + haut + ', left=' + gauche + ', ' + options;
	}
	else {
		options = 'width=' + largeur + 'px, height=' + hauteur + 'px,  top=' + haut + ', left=' + gauche;
	}
	window.open( fichier, nom, options );
}

//Fonction qui redimensionne le header swf lors du clique sur une combo
function ResizeHeadH(iHeight){	
	var oDiv = document.getElementById("header");
	oDiv.style.height = iHeight+'px';
  document.getElementById("headerFlash").style.height=iHeight+'px';
  //alert(oDiv.style.height);
  //alert(oDiv.innerHTML);
}

function getCodeEta() {
	if (document.getElementById("codeETA")) {
  	return (document.getElementById("codeETA").value);
  }
  else {
  	return ('');
  }
}

function getCodeApp() {
	if (document.getElementById("codeAPP")) {
  	return (document.getElementById("codeETA").value);
  }
  else {
  	return ('');
  }
}
