//<script language=javascript>
//----------------------------------------------------------------------------
//				S U I V I  D E S  M O D I F I C A T I O N S 
//----------------------------------------------------------------------------
//Date		: 04/05/17		Auteur(e)	: Josée Gaudreault
//
//Chercher	: §JG-0517a
//
//Modification aux fonctions suivantes suite à l'ajout du paramètre facultatif
//C_CTX_ASSOCIATION:
//	- function PostPanier		: Ne pas tenir compte de l'ancre #
//  - function ExploseURL		: Ne pas tenir compte des paramètres de contexte
//								  facultatifs C_CTX_ASSOCIATION et 
//								  C_CTX_ASSOCIATION_SECT 
//----------------------------------------------------------------------------
//Date		: 04/11/30		Auteur(e)	: Ronny Custeau
//
//Chercher	: RC-1130
//
//Nouvelle fonction GererAffichageLienCompr() pour gérer l'affichage des liens vers la page
//de comparaison des professions.
//----------------------------------------------------------------------------


var arrFent = new Array();
var PATH_IMAGE="/mtg/inter/prxcache/contenu/images/";

//var strSettings = 'width=' + (window.screen.width - 50) + ',height=' + ((window.screen.height/2) - 120) + ',top=' + (window.screen.height/2 - 30) + ',left=10,status=yes,toolbar=no,menubar=yes,location=no,resizable=yes,scrollbars=yes';
var strSettings = 'width=' + (window.screen.width - 10) + ',height=' + ((window.screen.height/2)) + ',top=0,left=0,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes';
var CFG_FEN_LEX = strSettings;
var NOM_FEN_LEX = 'lexique';

var gblnPageComparePanier = false;

function ChangeSrcImage(pobjImage, pstrNewImg) {
	pobjImage.src = PATH_IMAGE + pstrNewImg;
	if (pstrNewImg == "mtg_cntxmeschoix2on_01.gif") {
		//ChangeSrcImageLibel(pobjImage, pstrNewImg);
	}
}

function CookieActif() {
	if (GetCookie(C_COOKIE_TEST) == "1") {
		return true;
	}
	else {
		return false;
	}
}

// name - name of the cookie
// * return string containing value
// of specified cookie or null if cookie does not exist
function GetCookie(name) {
    var prefix;
    var cookieStartIndex;
    var cookieEndIndex;
	var strValeur;

    prefix = "MTG" + name + "=";
    cookieStartIndex = document.cookie.indexOf(prefix);
    if (cookieStartIndex == -1) {
		return null;
	}
	else {
		cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length);
		if (cookieEndIndex == -1) {
			cookieEndIndex = document.cookie.length;
		}
		return CorrigeEspace(unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)));
	}
}

function SetCookie(name) {
	document.cookie = "MTG" + name + "=; path=/mtg";
}
function DeleteCookie(name) {
	var datExpire = new Date(2000, 0, 1);
	document.cookie = "MTG" + name + "=; path=/mtg; expires=" + datExpire.toGMTString();
}

function CorrigeEspace(chaine) {
	var strRetour = "";
	var strChar;
	var i;
	
	if (chaine.indexOf("+") == -1) {
		strRetour = chaine;
	}
	else {
		for (i=0; i<chaine.length; i++) {
			strChar = chaine.substring(i, i+1);
			if (strChar == "+") {
				strChar = " ";
			}
			strRetour = strRetour.concat(strChar);
		}
	}
	return strRetour;
}

function ObtenirMesChoix() {
	var strChoix;
	
//	if (CookieActif() && !gblnPageComparePanier) {
	if (CookieActif()) {
		strChoix = GetCookie(C_CTS_CHOIX_PROFESSION);
	}
	else {
		strChoix = ObtenirValeur(C_CTS_CHOIX_PROFESSION);
	}
	
	//RC - Netscape retournait une chaîne vide au lieu de "null"
	if (strChoix == "") strChoix = null;
	return strChoix;
}

function ObtenirDescCNP4(pstrCNP4) {
	var strChoix;
	
	if (CookieActif() && !gblnPageComparePanier) {
		if (pstrCNP4 == ObtenirValeur(C_CTS_PROFESSION)) {
			strChoix = CHOIXDESC[pstrCNP4];
		}
		else {
			strChoix = GetCookie("CHOIXDESC" + pstrCNP4);
		}
	}
	else {
		strChoix = CHOIXDESC[pstrCNP4];
	}
	
	return strChoix;
}

// --------------------------------------------------------------------------------
// permet d'alimenter le combobox contenant la liste des professions
// ajoutées au panier.
// --------------------------------------------------------------------------------
// §JG-0920a: Calculer le nombre de profession contenue au panier et l'afficher.
// --------------------------------------------------------------------------------
function RemplirMesChoix() {
	var strListe;
	var strLang;
	var strText;
	var arrCNP;
	var arrDesc;
	var i;
	var element;
	var objTagHtml;
	var intNbChoix;
		
	//Initialiser les variables
	intNbChoix = 0;
		
	if (typeof(document.MAIN_FORM.MESCHOIX) == "undefined") return;
	
		//Vider le combo et conserver la ligne blanche au début
		for (i=document.MAIN_FORM.MESCHOIX.length-1; i>0; i--) {
			document.MAIN_FORM.MESCHOIX.options[i] = null;
		}
		
		//Remplir le combo
		strListe = ObtenirMesChoix();
		
		if (strListe!=null) {
			arrCNP = strListe.split(":");
			
			arrDesc = new Array(arrCNP.length);
			for (i=0; i<arrCNP.length; i++) {
				intNbChoix++;
				//On concatène le code à la fin pour trier par description tout en gardant le CNP4 associé
				arrDesc[i] = ObtenirDescCNP4(arrCNP[i]) + arrCNP[i];
			}
			
			arrDesc = sortArray(arrDesc);
			for (i=0; i<arrDesc.length; i++) {
				element = new Option(arrDesc[i].substr(0, arrDesc[i].length-4) , arrDesc[i].substr(arrDesc[i].length-4, 4));
				document.MAIN_FORM.MESCHOIX.options[document.MAIN_FORM.MESCHOIX.options.length] = element;
			}
		}	
		
		//§JG-0920a: Afficher le nombre de profession contenu au panier
		if (intNbChoix > 0) {
			//RC - il y a maintenant deux libellés
			if (intNbChoix == 1)
			{
				strText = LBLUNCHOIX;
			}
			else
			{
				strText = LBLPLUSCHOIX.replace("%s1",intNbChoix);
			}
						
			objTagHtml = document.getElementById("meschoixcpt");
			objTagHtml.innerHTML = strText;
		}
		
		GererAffichageLienCompr(intNbChoix);
}

function GererAffichageLienCompr(pintNbChoix){
	//RC-1130 s'il n'y a pas de profession dans la liste "Mes choix" on désactive le lien pour la comparaison
	var objTagHtml;
	var strValActif;
	var strValInactif;
	
	if (pintNbChoix == 0)
	{
		strValActif = "none";
		strValInactif = "inline";
	}
	else
	{
		strValActif = "inline";
		strValInactif = "none";
	}
	
	//On cache le lien "Comparer les profession" et on le remplace par du texte statique
	//Les liens vers la page de comparaison (lien texte et lien image "><")
	objTagHtml = document.getElementById("lnkComprChoixActif");
	objTagHtml.style.display = strValActif;
	objTagHtml = document.getElementById("lnkImgComprChoixActif");
	objTagHtml.style.display = strValActif;
	
	//texte statique "Comparer les professions" et l'image statique "><"
	objTagHtml = document.getElementById("spnComprChoixInactif");
	objTagHtml.style.display = strValInactif;
	objTagHtml = document.getElementById("imgComprChoixInactif");
	objTagHtml.style.display = strValInactif;
}

function AjouterCNP(strCNP) {
	var strListe = ObtenirMesChoix();
	var arrCNP;
	var i;
	var blnExist = false;
	var blnPanierPlein = false;

	if (strListe!=null) {
		arrCNP = strListe.split(":");
		//Vérifier s'il existe déjà
		for(i=0; i<arrCNP.length; i++) {
			if (arrCNP[i]==strCNP) {
				blnExist = true;
			}
		}
	}
	if (!blnExist && typeof(document.MAIN_FORM.elements['MESCHOIX']) != "undefined") {
		if (strListe!=null) {
			if (arrCNP.length >= MAX_PANIER) {
				blnConfirm = ShowConfirm(DC956293, '', "");
				//Rediriger sur la page comparaison
				if (blnConfirm) {
					AppelComparerMesChoix(true, strCNP);
				}
				blnPanierPlein=true;
			}
		}

		if (!blnPanierPlein) {
			if (CookieActif() && !gblnPageComparePanier) {
				PostPanier("AJOUT", strCNP);
			}
			else {
				if (strListe==null) {
					strListe = strCNP;
				}
				else {
					arrCNP[arrCNP.length] = strCNP;
					strListe = arrCNP.join(":");
				}
				RedirectValeur(C_CTS_CHOIX_PROFESSION, strListe);
			}
		}
	}
	//Annule l'hyperlien
	return false;
}

function EnleverCNP(strCNP) {
	var strListe = ObtenirMesChoix();
	var arrCNP;
	var arrNewCNP;
	var blnExist = false;
	var i;
	var j;

	if (strListe!=null) {
		arrCNP = strListe.split(":");
		arrNewCNP = new Array();

		//Vérifier s'il existe
		for(i=0; i<arrCNP.length; i++) {
			if (arrCNP[i]==strCNP) {
				blnExist = true;
			}
		}
	}
	
	if (blnExist) {
		if (CookieActif() && !gblnPageComparePanier) {
			PostPanier("SUPPRESSION", strCNP);
		}
		else {
			j = 0;
			for(i=0; i<arrCNP.length; i++) {
				if (arrCNP[i]!=strCNP) {
					arrNewCNP[j] = arrCNP[i];
					j++;
				}
			}
			if (j==0) {
				strListe = null;
				DeleteCookie(C_CTS_CHOIX_PROFESSION);
			}
			else if (j==1) {
				strListe = arrNewCNP[0];
			}
			else {	
				strListe = arrNewCNP.join(":");
			}
			RedirectValeur(C_CTS_CHOIX_PROFESSION, strListe);
		}
	}
	//Annule l'hyperlien
	return false;
}

function SelectionPanier(strValr) {
	var arrRetour;
	var arrKeys;
	var arrVals;

	if (PANIER_RECH_PROF) {
		arrRetour = ExploseURL(URL_PROF_DETAIL);
		arrKeys = arrRetour[1];
		arrVals = arrRetour[2];
		arrKeys[arrKeys.length] = C_CTS_PROFESSION;
		arrVals[arrVals.length] = strValr;
		//Enlever les paramètres C_CTX_PLAC_VALR, C_CTX_PLAC_EXPR
		for (i=0; i<arrKeys.length; i++) {
			if ((arrKeys[i]==C_CTX_PLAC_VALR) || 
			    (arrKeys[i]==C_CTX_PLAC_EXPR)) {
			    arrVals[i] = "";
			}
		}
		go(CreerURL(arrRetour[0], arrKeys, arrVals, null));
	}
	else {
		if ((strValr != "") && (strValr != ObtenirValeur(C_CTS_PROFESSION))) {
			arrRetour = ExploseURL(null);
			arrKeys = arrRetour[1];
			arrVals = arrRetour[2];
			//Enlever les paramètres C_CTX_PLAC_VALR, C_CTX_PLAC_EXPR 
			for (i=0; i<arrKeys.length; i++) {
				if ((arrKeys[i]==C_CTX_PLAC_VALR) || 
				    (arrKeys[i]==C_CTX_PLAC_EXPR)) {
				    arrVals[i] = "";
				}
				else if (arrKeys[i]==C_CTS_PROFESSION) {
					arrVals[i] = strValr;	
				}
			}
			go(CreerURL(arrRetour[0], arrKeys, arrVals, null));
		}
		else {
			document.MAIN_FORM.MESCHOIX.selectedIndex = 0;
		}
	}
}

function PostPanier(pstrAction, pstrCNP) {
	var datNow = new Date;
	var arrURL;
	var trace="";

	//RC-1214 maintenant l'ajout peut également se faire à partir de la page de description  
	//détaillée d'une profession. Dans les deux cas on doit conserver l'ancre dans le URL
	//if (pstrAction=="AJOUT" && PANIER_RECH_PROF) {
	if (pstrAction=="AJOUT") {
		arrURL = window.top.location.href.split("#");
		document.PANIER_FORM.action = arrURL[0] + "#" + pstrCNP;
	}
	else {
		//§JG-0517a
		//document.PANIER_FORM.action = window.top.location.href;
		arrURL = window.top.location.href.split("#");
		document.PANIER_FORM.action = arrURL[0];
	}
	//document.PANIER_FORM.action = window.top.location.href;
	document.PANIER_FORM.PANIER_ACTION.value = pstrAction;
	document.PANIER_FORM.PANIER_CNP4.value = pstrCNP;
	document.PANIER_FORM.PANIER_TIMESTAMP.value = datNow.getTime();
	document.PANIER_FORM.submit();
}

function AppelComparerMesChoix(pblnPlein, pstrCNP) {
	var arrRetour = ExploseURL(URL_COMPARE_PANIER);
	var arrKeys = arrRetour[1];
	var arrVals = arrRetour[2];
	
	arrKeys[arrKeys.length] = C_CTS_CHOIX_PROFESSION;
	arrVals[arrVals.length] = ObtenirMesChoix();
	if (pblnPlein) {
		arrKeys[arrKeys.length] = C_CTX_PROF_SUSPEND_MES_CHOIX;
		arrVals[arrVals.length] = pstrCNP;
	}
	go(CreerURL(arrRetour[0], arrKeys, arrVals, null));
	
	//Annule l'hyperlien
	return false;
}

function ObtenirValeur(strKey) {
	var arrKey;
	var arrValr;
	var i;
	var arrRetour;
	var strValr;
	
	arrRetour = ExploseURL(null);
	arrKey = arrRetour[1];
	arrValr = arrRetour[2];

	strValr = null;
	for (i=0; i<arrKey.length; i++) {
		if (arrKey[i] == strKey) {
			strValr = arrValr[i];
			break;
		}
	}
	return strValr;
}

function RedirectValeur(strKey, strValr) {
	RedirectValeur(strKey, strValr, true); //-- to keep old version alive
}

function RedirectValeur(strKey, strValr, blnGarderSignet) {
	var arrKey;
	var arrValr;
	var i;
	var arrRetour;
	var blnExist;
	
	arrRetour = ExploseURL(null, blnGarderSignet);
	arrKey = arrRetour[1];
	arrValr = arrRetour[2];

	blnExist = false;
	for (i=0; i<arrKey.length; i++) {
		if (arrKey[i] == strKey) {
			arrValr[i] = strValr;
			blnExist = true;
			break;
		}
	}
	if (!blnExist) {
		arrKey[arrKey.length] = strKey;
		arrValr[arrValr.length] = strValr;
	}
	
	go(CreerURL(arrRetour[0], arrKey, arrValr, arrRetour[3]));

}

//Si pstrURL = null on prend l'URL de la page en cours
//Array[0] = Nom de la page
//Array[1] = Array des clés de l'URL
//Array[2] = Array des valeurs de l'URL
//Array[3] = Signet

function ExploseURL(pstrURL) {
	return ExploseURL(pstrURL, true); //-- keep old version alive
}

function ExploseURL(pstrURL, blnGarderSignet) {

	var arrPageParam;
	var arrParamSignet;
	var arrParam;
	var arrKeyValr;
	var i;
	var strPage;
	var arrKey;
	var arrValr;
	var strSignet;
	
	if (pstrURL==null) {
		arrPageParam = window.top.location.href.split("?");
	}
	else {
		arrPageParam = pstrURL.split("?");
	}
	strPage = arrPageParam[0];
	if (arrPageParam.length > 1) {
		arrParamSignet = arrPageParam[1].split("#");
		arrParam = arrParamSignet[0].split("&");
		if (arrParamSignet.length > 1) {
			strSignet = unescape(arrParamSignet[1]);
		}
		else {
			strSignet = null;
		}

		arrKey = new Array(arrParam.length);
		arrValr = new Array(arrParam.length);

		for (i=0; i<arrParam.length; i++) {
			arrKeyValr = arrParam[i].split("=");
//RC-0106 pour la page d'impression, on veut conserver l'association dans le URL pour que l'association
//sélectionnée soit présentée dans l'apperçu avant impression
//			if	(unescape(arrKeyValr[0]) != C_CTX_ASSOCIATION && unescape(arrKeyValr[0]) != C_CTX_ASSOCIATION_SECT) {
				arrKey[i] = unescape(arrKeyValr[0]);
				arrValr[i] = unescape(arrKeyValr[1]);
//			}		
		}
	}
	else {
		arrKey = null;
		arrValr = null;
		strSignet = null;
	}
	if (blnGarderSignet== false)
	{
		strSignet = null;
	}
	
	return Array(strPage, arrKey, arrValr, strSignet);
}

function CreerURL(strPage, arrKey, arrValr, strSignet) {
	var strURL = strPage;
	var i;
	var blnFirst = true;
	
	if (arrKey!=null) {
		for(i=0;i<arrKey.length;i++) {
			if (arrValr[i]!=null) {
				if (blnFirst) {
					strURL = strURL + "?";
					blnFirst = false;
				}
				else {
					strURL = strURL + "&";
				}
				strURL = strURL + escape(arrKey[i]) + "=" + escape(arrValr[i]);
			}
		}
	}
	
	if (strSignet!=null) {
		strURL = strURL + "#" + escape(strSignet);
	}
	
	return strURL;
}

function Focus(pstrNomCtrl) {
	document.MAIN_FORM.elements[pstrNomCtrl].focus();
}

function ShowAlert(pstrMsg, parrParmMsg, pstrNomCtrl) {
	var strMsg = BuildMsg(pstrMsg, parrParmMsg);

	window.alert(strMsg); 
	if (typeof(pstrNomCtrl) != "undefined" && pstrNomCtrl != "")
	{
		Focus(pstrNomCtrl);
	}
}

function ShowConfirm(pstrMsg, parrParmMsg, pstrNomCtrl) {
	var blnRetour = true;
	var strMsg = BuildMsg(pstrMsg, parrParmMsg);

	blnRetour = window.confirm(strMsg); 
	if (typeof(pstrNomCtrl) != "undefined" && pstrNomCtrl != "")
	{
		Focus(pstrNomCtrl);
	}
	return blnRetour;
}

function BuildMsg(pstrMsg, parrParmMsg) {
	var strMsg = pstrMsg;
	var i;

	if (typeof(parrParmMsg) != "undefined" && parrParmMsg != "") {
		for (i = parrParmMsg.length; i > 0; i--)
		{
			strMsg = strMsg.replace("%s" + i, parrParmMsg[i-1]);
		}
	}
	return strMsg;
}

function ancre(objSelect) {
	window.location = "#" + objSelect[objSelect.selectedIndex].value;
}

function SubmitPage(strBtnName)
{
	var blnValid = true;
		var strPosted = document.MAIN_FORM.posted.value;
		
		document.MAIN_FORM.posted.value = strBtnName;
		blnValid = ValiderPage("all");
		if (blnValid)
		{
			document.MAIN_FORM.submit();
		}
		else
		{
			document.MAIN_FORM.posted.value = strPosted;
		}
	return blnValid;
}

//RC-1124 nouvelle fonction pour les pages de recherche. Appelée sur le onSubmit 
//du formulaire	
function SubmitPage_Recherche()
{
	var blnValid = true;
	var strPosted = document.MAIN_FORM.posted.value;
		
	document.MAIN_FORM.posted.value = "submit";
	blnValid = ValiderPage("all");
	if (!blnValid)
	{
		document.MAIN_FORM.posted.value = strPosted;
	}
	return blnValid;
}

function changeMenu(objTd, strColor, strCurseur) {
	objTd.style.backgroundColor=strColor; 
	changeCurseur(strCurseur);
}

function go(strUrl) {
	window.top.location.href = strUrl;
}

function ouvFen(pstrURL,pstrName,pstrSpec)
{
	var blnIE4 = false;
	var blnNewWindow;
	var sName;

	if (navigator.userAgent.indexOf("MSIE 4") != -1) {
		blnNewWindow = true;
		blnIE4 = true;
		sName = "_blank";
	}
	else {
		blnNewWindow = (typeof(arrFent[pstrName]) == "undefined" || arrFent[pstrName].closed);
		sName = pstrName;
	}
	if (blnNewWindow) {
		arrFent[pstrName] = window.top.open(pstrURL,sName,pstrSpec,false);
	}
	else {
		arrFent[pstrName].top.location.href = pstrURL;
		arrFent[pstrName].focus();
	}
	// Retourner false pour annuler le "HREF" de l'hyperlien
	return false;
}


function changeCurseur(strCurseur) {
	if (strCurseur!="") {
		document.body.style.cursor="hand";
		if (document.body.style.cursor!="hand"){
			document.body.style.cursor=strCurseur;
		}
	}
	else {
		document.body.style.cursor=strCurseur;
	}
}

function sortArray(parrArray)
{
	var iCount = parrArray.length;
	var strTemp;

	/****
	 * Copie du array avec nettoyage des accents (je met tout en lowercase itou)
	 */
	var compItems = new Array(parrArray.length);
	for (var t=0; t<iCount; t++) 
	{
		compItems[t] = fgCorrText(parrArray[t]);
	}

	/****
	 * Le tri s'effectue sur les donnée réelles mais selon les données nettoyées
	 */
	for (var j=0; j<iCount; j++)
	{
		for (var i=0; i<iCount; i++)
		{
			if (compItems[i] > compItems[i+1])
			{
				strTemp = parrArray[i+1];
				parrArray[i+1] = parrArray[i];
				parrArray[i] = strTemp;
				strTemp = compItems[i+1];
				compItems[i+1] = compItems[i];
				compItems[i] = strTemp;
			}
		}
	} 
	delete compItems;	
	return parrArray;	
}

function fgCorrText(pstrText)
{	
	
	var CARC_A_REMPLACER  = "éèêëàâäûùüçîìïôöòÿ";
	var CARC_REMPLACEMENT = "eeeeaaauuuciiioooy";

	var i = 0;
	var strCarc = "";
	var lngPost = 0;
	var strCorr = "";

	//pstrText = fgTrimStr(pstrText,"B");
	pstrText = pstrText.toLowerCase();
	for(i=0;i<pstrText.length;i++)
	{
		//strCarc = pstrText.substr(i,1);
		strCarc = pstrText.charAt(i);
		lngPost = CARC_A_REMPLACER.indexOf(strCarc);
		if (lngPost > -1)
		{
		    //strCarc = CARC_REMPLACEMENT.substr(lngPost,1);
		    strCarc = CARC_REMPLACEMENT.charAt(lngPost);
		}
		/*else
		{
		    strCarc = strCarc.toLowerCase();
		}*/
		strCorr += strCarc;
	}

	while (strCorr.indexOf("  ",1) > -1)
	{
		strCorr = strCorr.replace("  "," ");
	}
	return strCorr;
}

function Trim(strValeur)
{
	var strRetour = new String(strValeur);
	return( strRetour.replace(/^\s*([\s\S]*\S+)\s*$|^\s*$/,'$1') ); 

}

function Impression()
{	
	var arrKey;
	var arrValr;
	var arrRetour;
	
	arrRetour = ExploseURL(null);
	arrKey = arrRetour[1];
	arrValr = arrRetour[2];

	arrKey[arrKey.length] = "imp";
	arrValr[arrValr.length] = "1";
	
	ouvFen(CreerURL(arrRetour[0], arrKey, arrValr, null), "imprimer", strSettings);
	
	return false;
}

//RC-0106
function DesactiverPageImpr()
{
	var colObjet;
	var intIndex;
	
	//désactive les "input"
	colObjet = document.getElementsByTagName("input");	
	for (intIndex=0;intIndex<colObjet.length;intIndex++)
	{
		colObjet[intIndex].disabled = true;
	}
	
	//désactive les listes déroulantes
	colObjet = document.getElementsByTagName("select");	
	for (intIndex=0;intIndex<colObjet.length;intIndex++)
	{
		colObjet[intIndex].disabled = true;
	}
	
	
	//désactive les liens (sauf celui pour l'impression)
	colObjet = document.getElementsByTagName("a");
	for (intIndex=0;intIndex<colObjet.length;intIndex++)
	{
		if (colObjet[intIndex].id != "lnkImpr")
		{
			colObjet[intIndex].onclick = RetournerFalse;
			colObjet[intIndex].onmouseover = "";
			colObjet[intIndex].onmouseout = "";
		}
	}
	
}

function RetournerFalse()
{	
	return false;
}

//permet de cacher les lien "Imprimer la page" et "Fermer la page" lors de l'impression (en utilisant
//le lien "Imprimer la page". Suite à l'impression les liens sont réaffichés. 
//****(Internet Explorer seulement)****
function GererLienImpr(blnAffiche)
{
	if (blnAffiche)
	{
		document.getElementById("spnImprimer").style.display = "inline";
		document.getElementById("spnFermer").style.display = "inline";
	}
	else
	{
		document.getElementById("spnImprimer").style.display = "none";
		document.getElementById("spnFermer").style.display = "none";	
	}
	
}

//</script>

