
function RIdent(ival) {
/* retourne 1: valeur du vecteur autorisations
            2: libellé de adhérent  */
if (ival != 1 && ival!= 2) {
 ival=2;
}
Lescookies = document.cookie.split("; ")
	for (i=0; i<Lescookies.length; i++) {
		if (Lescookies[i].split("=")[0] == AUT_Cook_Prfx + "GRCRI") {
		
                  break
		}
	}
	
	if (i==Lescookies.length) {
	 return "0000";                         	
	}
	for (j=0; j<GRCRI_Code_Util.length; j++)  {
		if ( GRCRI_Code_Util[j].split("#")[0] == Lescookies[i].split("=")[1]  ){
		
		break
		}
	}
	if ( j < GRCRI_Code_Util.length && GRCRI_Code_Util.length >= 1) {
	return GRCRI_Code_Util[j].split("#")[ival];
	} else {
	return "0000";
	}
}


function RNumRQ() {
Lescookies = document.cookie.split("; ")
	for (i=0; i<Lescookies.length; i++) {
		if (Lescookies[i].split("=")[0] == AUT_Cook_Prfx + "GRCRI") {
		
                  break
		}
	}
	if ( i < Lescookies.length && Lescookies.length >= 1) {
	return Lescookies[i].split("=")[1] ;
	} else {
	return "0000";
	}
}

function Deconn_Two() {

/* By Pass protection contre UN anti pop_up   */
if ((typeof  SymRealWinOpen) == "object" || (typeof  SymRealWinOpen) == "function" ) {
window.open=SymRealWinOpen;
}

/*
ExpDate= new Date
ExpDate.setDate(ExpDate.getDate()-1)
document.cookie = AUT_Cook_Prfx + "GRCRI=nullAuthent;expires=" + ExpDate.toGMTString() */
/* opener.close() */
/* location.href = AUT_Pag_Index;  */


lochost=""
if (location.hostname != "" ) {
lochost="http://" + location.hostname + "/";
}
self.location = lochost + AUT_Doss_Appli + "/" + "GRCRI_Annul.html";

}

function PagLoad_PDF() {

Pag_Act=location.href
/* alert(Pag_Act)
ipo=Pag_Act.indexOf(".")
alert(ipo)
N_Pag= Pag_Act.substring(0, ipo) + ".PDF"
alert(N_Pag) */
xxrex = /.html/gi;
N_Pag_Act=Pag_Act.replace(xxrex, ".PDF")
self.location=N_Pag_Act
}

function PagLoad_PDF_Opn() {

Pag_Act=location.href
/* alert(Pag_Act)
ipo=Pag_Act.indexOf(".")
alert(ipo)
N_Pag= Pag_Act.substring(0, ipo) + ".PDF"
alert(N_Pag) */
xxrex = /.html/gi;
N_Pag_Act=Pag_Act.replace(xxrex, ".PDF")
opener.location.href=N_Pag_Act
}
/*  pour popup sur element */
function PDW ( CElem) {
if (navigator.appName != "Microsoft Internet Explorer") {
document.getElementById(CElem).style.visibility = "hidden" ;
}
}
function PUP (evt, CElem) {
if (navigator.appName != "Microsoft Internet Explorer") {
if (document.all) {
document.getElementById(CElem).style.top = parseInt(evt.y)+2 ;
document.getElementById(CElem).style.left = Math.max(2,parseInt(evt.x)-125);
}
else {
document.getElementById(CElem).style.top = parseInt(evt.pageY)+2 + "px";
document.getElementById(CElem).style.left = Math.max(2,parseInt(evt.pageX)-125) +"px" ;
}
document.getElementById(CElem).style.visibility = "visible" ;
}
}


