// Procédures globales du projet
function _ECR(c,p,s){var h = (c + "").substring(0, 50);var n = 0;switch (p){case -2147483645:;n = 1;case -2147483648:;if (!window.tabExtraitChaine){tabExtraitChaine = new Array()}tabExtraitChaine[h] = 1;return _EC(c,tabExtraitChaine[h],s,n)
case -2147483646:;n = 1;case -2147483647:;if (!window.tabExtraitChaine || !(tabExtraitChaine[h])){return "\b"}(tabExtraitChaine[h])++;var sRes = _EC(c,tabExtraitChaine[h],s,n);if ("\b" == sRes){delete tabExtraitChaine[h]}return sRes}}
function _EC(c,p,s,n){if ((p >= -2147483648) && (p <= -2147483645)){return _ECR(c,p,s)}var t=new Array();if(typeof(s)!=typeof(t))t[0]=s;else t=s;if (!(n == 1)){var d=0;for(var i=0;i<p-1;i++){var m=-1;var l=0;for(var j=0;j<t.length;j++){s=t[j]
var k=c.indexOf(s,d);if((k>-1)&&((m<0)||(k<m))){m=k;l=s.length}}d=m+l;if(d==-1)return(p==1?c:"\b")}var f=-1;for(var j=0;j<t.length;j++){var k=c.indexOf(t[j],d);if((k>-1)&&((f<0)||(k<f)))f=k}if(f==-1)f=c.length;return c.substring(d,f)}else{
var d = c.length;for(var i=0;i<p-1;i++){var m=-1;for(var j=0;j<t.length;j++){var k=c.lastIndexOf(t[j],d-1);if(k>m)m=k}d=m;if (d == -1)	return (p==1?c:"\b")}var f=-1;var l=0;for(var j=0;j<t.length;j++){s=t[j];var k=c.lastIndexOf(s,d-1);if(k>f){f=k
l=s.length}}f+=l;if (f == -1)return c.substr(0, d);return c.substr(f, d - f)}}
function _SAE(c,o){var d=0;c += "";var f=c.length-1;if(o&1)while(c.charAt(d)==" ")d++;if(o&2)while(c.charAt(f)==" ")f--;if (f < d) f= d;return c.substring(d,f+1)}
function PROCEDURESGLOBALESDEBILLETNAVIGATEUR_BVERIFEMAIL(VPSEMAIL, VPSLISTEEX){{var VSEMAIL=VPSEMAIL.toUpperCase();if((Position(VSEMAIL,"@",null)==0)){return(false)}var VSSUFFIXE=_EC(VSEMAIL,2,"@",0);if((Position(VSSUFFIXE,".",null)==0)){
return(false)}var VNDEBUT=0;var VNPOS=0;while(true){VNDEBUT=Position(VSSUFFIXE,".",(VNDEBUT+1));if((VNDEBUT==0)){break}VNPOS=VNDEBUT}VSSUFFIXE=(VSSUFFIXE + "").substr((VNPOS+1)-1);if((_SAE(VSSUFFIXE,3).toUpperCase()==_SAE("",3).toUpperCase())){
return(false)}VSSUFFIXE=(("."+_SAE(VSSUFFIXE,3))+"|");if((Position(VPSLISTEEX,VSSUFFIXE,null)==0)){return(false)}return(true)}}
function NavigateurLargeur()
{
	if (document.documentElement.clientWidth)
	return document.documentElement.clientWidth;
	else
	if (document.body.clientWidth)
	return document.body.clientWidth;
	else
	if (window.innerWidth)
	return window.innerWidth;
	else
	return window.clientWidth;
}
function NavigateurHauteur(bForDWW)
{
	var nH;
	
	if (document.body.clientHeight)
	nH = document.body.clientHeight;
	else
	if (window.innerHeight)
	nH = window.innerHeight;
	else
	nH = window.clientHeight;
	
	if (bForDWW == true)
	nH = document.body.scrollHeight;
	else
	if (nH == 0) nH = document.body.scrollHeight;	
	
	return nH;			
	
}


// Résumé : <indiquez ici ce que fait la procédure>
// Syntaxe :
//CentreCellule ()
//
// Paramètres :
//	Aucun
// Valeur de retour :
// 	Aucune
//
// Exemple :
// Indiquez ici un exemple d'utilisation.
//
//Procédure CentreCellule()
//
//
function CentreCellule(sCellule)
{
	var nNL, nNH;
	var nCL, nCH;
	
	// Récupère les dimensions du navigateur
	nNL = NavigateurLargeur();
	nNH = NavigateurHauteur();	
	if (nNH <= 10) nNH = 760;
	
	nCL = parseInt(document.getElementById("dww"+sCellule).offsetWidth);
	nCH = parseInt(document.getElementById("dww"+sCellule).offsetHeight);
	
	document.getElementById("dww"+sCellule).style.top = parseInt((nNH - nCH) / 2) + "px";
	document.getElementById("dww"+sCellule).style.left = parseInt((nNL - nCL) / 2) + "px";	
	
}

