/*
  * @explication : Fonction permettant de remplir un champs à partir des données saisies au fur et à mesure dans un autre champs
  * @paramètre from : Champs source
  * @paramètre to : Champs de destination
  */
function update_field(from, to) {
	if(document.getElementById(from) && document.getElementById(to)){
		document.getElementById(to).value = document.getElementById(from).value;
	}
}

/*
  * @explication : Fonction appelée pour effacer la couleur des champs requis et non renseignés
  * @paramètre targetedInput : Id de l'input cible
  */
function restoreColor(targetedInputId){
	document.getElementById(targetedInputId).className= "";
}


function center_popup(page, width, height, options){
  var top=(screen.height-height)/2;
  var left=(screen.width-width)/2;
  window.open(page,'',"top="+top+",left="+left+",width="+width+",height="+height+","+options);
}
